AW: [Fxruby-users] popup menus
Status: Inactive
Brought to you by:
lyle
From: Recheis M. <Mei...@av...> - 2003-08-04 09:27:01
|
ok i found out now, but have annother problem now. below i filled in my = code. it works (somehow): the popupmenu shows up on the mouseevent. if i move = on the menu with my mouse i can click on the "cancel" entry and it = disappeares. but if i move my mouse out of the popupmenu on the canvas the whole = application blocks. what s the problem here?=20 =20 here ist the documentation of the FXPopup.popup method: =20 <FOX doc> virtual void=20 popup (FXWindow *grabto, FXint x, FXint y, FXint w=3D0, FXint h=3D0) Popup the menu and grab to the given owner. </FOX doc> =20 i dont know what "grab to" means. w what went wrong here??? =20 > enhanced original message here: i have not fully understood the fox api yet, and it is not easy to tell = from the doxygen-FOX docu what to do here:=20 i want to have a popup menu (with menu entries and submenus) that = becomes only visible when i rightclick on my fxglcanvas. popup =3D FXPopup.new(parent ) cancel =3D FXMenuCommand.new(popup, "cancel") cancel.connect(SEL_COMMAND) { popup.popdown } =20 @glcanvas.connect( SEL_RIGHTBUTTONPRESS ) { | sender, sel, event | =20 popup.popup( @glcanvas, event.rootx, event.rooty) # mypopup.create=20 }=20 still, any help will be very appreciated, Meinrad=20 |