[comp.windows.x] twm & popup menus

saraiya@SUMEX-AIM.STANFORD.EDU (Nakul P. Saraiya) (12/20/90)

I would like to be able to customize the behavior of twm menus (i.e.,
those defined in my .twmrc) so that:

	one button press will pop up the menu (& the corresponding
	button release is ignored)

	another button press will select the item under the pointer &
	deexpose the menu

I find that the default depress-drag-release sequence is rather
unwieldy for long menus; besides, my application uses the above
behavior for all its popup menus.  So, can this be done with twm, and
how?

Thanks,
						nakul saraiya

toml@ninja.Solbourne.COM (Tom LaStrange) (12/25/90)

   I would like to be able to customize the behavior of twm menus (i.e.,
   those defined in my .twmrc) so that:

	   one button press will pop up the menu (& the corresponding
	   button release is ignored)

	   another button press will select the item under the pointer &
	   deexpose the menu

   I find that the default depress-drag-release sequence is rather
   unwieldy for long menus; besides, my application uses the above
   behavior for all its popup menus.  So, can this be done with twm, and
   how?


I have patches in hand that implement this for tvtwm.  The next version
of tvtwm should have them integrated so you might be able to extract 
what you need.

--
Tom LaStrange

Solbourne Computer Inc.    ARPA: toml@Solbourne.COM
1900 Pike Rd.              UUCP: ...!{boulder,sun}!stan!toml
Longmont, CO  80501