stack menu

Mark Schonewille m.schonewille at economy-x-talk.com
Mon Feb 15 13:23:30 CST 2010


Hi Peter,

I had the same problem. Use a front script, which catches the  
rawKeyDown message if the target is the short name of a relevant  
object in the stack that you use as menu.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Economy-x-Talk is always looking for new projects.

Op 15 feb 2010, om 20:14 heeft Peter Brigham MD het volgende geschreven:

> This is the first time I've really tried to use stack menus. I'm  
> building a stack menu during the course of user operations in a  
> stack -- it's a menu of recent images accessed, with thumbnails and  
> stored data associated with them. I've assigned a menustack as the  
> menuName of a pulldown menu button, and all the scripts for handling  
> user input are in the menustack stack script. I resize the menustack  
> every time I add a "menuitem" (actually a group consisting of a  
> thumbnail and a field) or choose an item from the menu (it deletes  
> more recent menuitems, as a "recent" menu should).
>
> Things are working fine, but a problem arises when the menustack  
> gets too tall. Clicking on the pulldown menu button pops up the  
> menu, but the bottom of it is chopped off, as it would descend below  
> the screenrect. I tried putting a rawkeydown handler in the  
> menustack to handle scrolling, and this works fine if I open the  
> menustack as toplevel -- I can use my scrollwheel to scroll the  
> stack up and down to see the whole list -- but when I click the  
> pulldown menu button and try to scroll the popped-up stack, nothing  
> happens.
>
> Is there some way to allow scrolling of a stack menu that is too  
> large to display fully?
>
> -- Peter




More information about the use-livecode mailing list