Option/combo menus crashing Rev
gwalias-rev at yahoo.com
Thu Jan 13 20:04:55 CST 2005
Working on WinXP with rev 2.5 I have created an option
menu and a combo box on a substack to set the fontname
and fontsize respectively, of a scrolling text window
on the main stack.
They both work just fine - sometimes ...
but if I click on them more than once or scroll up and
down in them too much, they freeze and I get a "Not
Responding" warning followed by a delay and then the
rev runtime crashes completely.
Am I doing something stupid?
Here is the code I use in the preOpenStack handler to
set them up:
put the fontnames into tfonts
sort lines of tfonts
put tfonts into button "Input Fonts"
repeat with fsize = 8 to 48 step 2
put fsize & cr after fsizes
put fsizes into button "Input Font Sizes"
set the menuHistory of button "Input Fonts" to
lineOffset(the CommandWindowFont of stack
"myStack",button "Input Fonts")
set the menuHistory of button "Input Font Sizes" to
lineOffset(the CommandWindowFontSize of stack
"myStack",button "Input Font Sizes")
This is really weird. Has anyone had any similar
prolems with combo/option menus?
:::::::::: Gordon Webster ::::::::::
More information about the use-livecode