Option/combo menus crashing Rev

Gordon Webster gwalias-rev at yahoo.com
Thu Jan 13 22:04:17 EST 2005


Dear Revolutionaries

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
example)?

Best

Gordon



--- Gordon Webster <gwalias-rev at yahoo.com> wrote:

> Dear Revolutionaries
> 
> 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:
> 
> 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"
> to
> 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?
> 
> Best
> 
> Gordon
> 
> 
> =====
> :::::::::: Gordon Webster ::::::::::
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
>
http://lists.runrev.com/mailman/listinfo/use-revolution
> 


=====
:::::::::: Gordon Webster ::::::::::


More information about the Use-livecode mailing list