From: Lyle J. <jl...@cf...> - 2003-08-04 15:30:15
|
Recheis Meinrad wrote: > 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: > i want to have a popup menu (with menu entries and submenus) that > becomes only visible when i rightclick on my fxglcanvas. There is an example of how to do this in the glviewer.rb example program that is distributed with FXRuby. Look at the code inside the onQueryMenu() method for that example program as a model for what to do in your application. Note that I usually like to tie this to the SEL_RIGHTBUTTONRELEASE event (as opposed to the SEL_LEFTBUTTONPRESS event). > 1) do i need a FXPopup or a FXMenuPane A menu pane (which is of course a subclass of FXPopup). > 2) what should be the parent for mypopup? glcanvas or application. The canvas window. |