For Programmers: Free Programming Magazines  


Home > Archive > Tcl > June 2006 > Re: Jump to menu item









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Jump to menu item
Kaitzschu

2006-06-27, 10:00 pm

On Tue, 26 Jun 2006, tickle007 wrote:

> I have a menubutton which populates a menu on the fly, with 75 items. It
> does not fit in the screen completely, so there are mini scrolling
> rectangle thingies at the top and bottom of the menu. Then I can scroll
> using the mouse or the arrow keys. Scrolling over the pop-up menu is
> difficult, however.
>
> Is there a way to jump to a pre-selected location, like to the item in
> the middle, or a given location based on first-letter? At a minimum, I
> would like to orient the menu so that the previously selected item is
> visible.


You could try adding "-columnbreak 1" to some of your [menu add]s. 75
entries sounds like a number that would fit to a few columns.

--
-Kaitzschu
s="TCL ";while true;do echo -en "\r$s";s=${s:1:${#s}}${s:0:1};sleep .1;done
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com