Page 5 of 6

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 3:13 pm
by richmond62
Oh my... :shock:
Shocked you may be: but what may not be clear to Thee is that I am trying to work out a way to both:

1. determine the maximum number of MessageBox lines the revpreferences stack can store.

2. Work out how to set that value to whatever one wants.

The preferences in the IDE missing a whole slew of useful things . . .

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 3:35 pm
by Klaus
There is a LOT going on in the message box stack. :shock:
I run my "Analyze it" stack over it and here the contents of the stack, maybe it will help you find what you are looking for...

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 3:43 pm
by richmond62
OK: so I downloaded, unzipped and opened your stack:
-
SShot 2022-04-10 at 17.40.45.png
-
SShot 2022-04-10 at 17.41.00.png
-
and cannot work out how to get it to load the information for my system.

All of the buttons seem not to function.

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 3:45 pm
by Klaus
This is just the resutling stack after "Analyze it" did its work, it will output a stack with all these info!
Find the "Analyze it" stack here on my website: https://www.major-k.de/xtalk.html

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 3:57 pm
by richmond62
Alles is duidelijk en erg grappig:
-
SShot 2022-04-10 at 17.56.00.png

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 4:14 pm
by Klaus
Dat klopt! :-)

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 4:25 pm
by richmond62
Not really:
-
SShot 2022-04-10 at 18.19.39.png
-
An I found naethin at all.

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 4:45 pm
by Klaus
Unfortunately my stack was created when I had no idea yet what a custom property may be.
Must have been alsmost 20 years ago, that's why they are not listed, and the revpreferences obviously only contains CPs.

The secret you are after must lie somewhere in the many scripts of the message box itself, or its behavior, if it has one.

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 5:01 pm
by richmond62
And my attempt to saturate the Message Box did NOTHING:
-
SShot 2022-04-10 at 18.59.32.png

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 5:16 pm
by richmond62
This:

Code: Select all

on mouseUp
set the IDESingleLineMessageHistory of stack "revpreferences" to empty
put empty into fld "fCRAP"
   put 1 into XXX
repeat until XXX > 10000
   put (XXX & cr) after fld "fCRAP"
add 1 to XXX
end repeat
set the IDESingleLineMessageHistory of stack "revpreferences" to fld "fCRAP" of stack "MSG Chopper"
end mouseUp
filled the IDESingleLineMessageHistory of stack "revpreferences" with 10,000 lines, and took about 3 minutes to do that.

So, it is anyone's guess to what the limit might be. 8)

It does seem that any customKey can have as many values as . . . well, at least 10,000 . . . bonkers! :roll:

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 5:19 pm
by Klaus
You know how the MSG works? You enter a command and it will be executed immediately? 8)
No, you have to hit ENTER or RETURN before that happens.
And that is missing in your script.

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 5:21 pm
by Klaus
richmond62 wrote: Sun Apr 10, 2022 5:16 pm ...
filled the IDESingleLineMessageHistory of stack "revpreferences" with 10,000 lines, and took about 3 minutes to do that.
This is the overhead of putting the text into a field!
Only use a variable, or maybe lock the screen, and it will be instantaneous!

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 5:22 pm
by richmond62
I do ken full well how the MSG works: but the point of my recent 'mental patch' was to
find out the LIMIT on how many items entered in the Messge Box could be remembered,

and then, to find a way to set a maximum number of items.

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 5:23 pm
by richmond62
the overhead of putting the text into a field!
Klaus: our relationship has lasted more than 20 years, and you should know my
obsession with fields by now . . . mainly because I like to see things going on.

This is a by-product of working with children . . . well, that's my excuse anyway. 8)

Re: Clear the MessageBox

Posted: Sun Apr 10, 2022 5:31 pm
by Klaus
So you really watched the field for 3 minutes straight?
OhhhhhhKayyyyyyyy... :D