Re: [Fxruby-users] Proper way to display a right-click context menu
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@kn...> - 2004-03-03 04:20:45
|
On Mar 2, 2004, at 6:15 PM, Matthew Miller wrote: > I'm still learning and have a new question ;) I want my file manager > application > to display a menu when an item in a FXList is right-clicked. The menu > displays > fine, but once it is displayed my window manager freezes up and I have > to go > to a console and kill my application, after which my X session is back > to normal. <snip> > Well, any insight or pointers to an example would be very helpful. As often as this question gets asked (both here and on the foxgui-users mailing list) I figured someone would have posted some code to the FOX community Wiki site for this by now. But they had not. So I just did ;) Here is a recipe for how to get this done in FXRuby: http://www.fifthplanet.net/cgi-bin/wiki.pl?Cookbook/ Right_Mouse_Context_Menu Hope this helps, and please follow up if there are some details that could be added to the online explanation. Lyle |