Discussions related to Visual Prolog
User avatar
Ferenc Nagy
VIP Member
Posts: 215
Joined: 24 Apr 2007 12:26

Maximal number of lines in Scilex control and in Message control

Unread post by Ferenc Nagy »

I can set the maximal number of lines for a message control.
It is a nice feature when I want to throw away old message lines and retain only the last 500 ones.
Can I do it in a Scilex control?
How many lines can handle a Scilex control?
TIA, Regards,
Frank Nagy
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

The messageControl in the messageForm have a limit line facility (setLines).

Code: Select all

... MessageForm = messageForm::display(This), MessageControl = MessageForm:getMessageControl(), MessageControl:setLines(200), ...
But the sciLexer does not (itself) have such a limit possibilities.

The sciLexer does not really have a limit on the number of lines (a line number can at most be 4 * 10 ^ 9). There may be some unknown limits, but in general it is limited by available memory.
Regards Thomas Linder Puls
PDC
Post Reply