On Wed, 12 Feb 1997, Nir Levy wrote:

> At 02:46 PM 11/02/1997 -0500, you wrote:
> >
> >As far as I understand, menus can be one of the following types:
> >cascade, command, checkbutton, or radiobutton. I'll like to setup a
> >menu button (or any clickable button that will give me the same
> >effect) that, when pressed, will display a popup scrollable listbox of
> >items to pick from (the list of items will be over 100 items long, and
> >can change from button press to button press). I would like the
> >scrollable listbox to be part of the same window as the button if at
> >all possible. Is this possible using vt, and if so, how would you do
> >it?
> 
> TRS.
> I don't know about doing this with vTcl but I have a thought on how
> to do it generally:
> Create a button (or somthing like that).
> when the button is clicked create a transiant toplevel and
> put the listbox on it. set up sizes etc. and you're done. when
> an option is picked from the listbox "wm withdraw" the toplevel until
> next time.
> 
> Hope that helps.

I've thought of another way of doing this. It involves using the "placer"
to place a frame where you've clicked the button. You are obviously
constrained by the parent window which is not the case with a popup.
The only reason I can think of for doing this is so that it would run
inside the plugin in netscape (which does not allow toplevels and thus
menus).

 -stewart-

Reply via email to