Option/combo menus crashing Rev
gwalias-rev at yahoo.com
Thu Jan 13 21:04:17 CST 2005
As a test I reduced the number of items in each menu
so that all items could be displayed in the dropdown
view, without scrolling. Now the menus are stable and
no amount of clicking in them or selecting items
causes rev to crash.
The problem seems to be the scrollbars that are needed
when there are more items than the dropdrown can
display. Is there some scrollbar timimg or delay
parameter that can be reset to make the behavior of
these menus more stable or are combo/option menus with
scrollbars inherently buggy?
I guess it could also be some special character that
is no longer loaded into the menu list. Is there a
problem with certain characters in menus (like @ for
--- Gordon Webster <gwalias-rev at yahoo.com> wrote:
> Dear Revolutionaries
> Working on WinXP with rev 2.5 I have created an
> menu and a combo box on a substack to set the
> and fontsize respectively, of a scrolling text
> on the main stack.
> They both work just fine - sometimes ...
> but if I click on them more than once or scroll up
> 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
> set them up:
> on preOpenStack
> 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
> end repeat
> 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"
> lineOffset(the CommandWindowFontSize of stack
> "myStack",button "Input Font Sizes")
> end preOpenStack
> This is really weird. Has anyone had any similar
> prolems with combo/option menus?
> :::::::::: Gordon Webster ::::::::::
> use-revolution mailing list
> use-revolution at lists.runrev.com
:::::::::: Gordon Webster ::::::::::
More information about the use-livecode