getting a popup menue to work...



Hello!

i have a window with a TreeView object in it, i added a button-press
eventhandler which catches the click events on the list- lines...

i wanted now to add a contextual menue with right-click...

so in the click-catch routine i check for button 3 and want to pop up a
menue in that case...

didn't found if there was any menuebuilder as for the menuebar, so i
build the menue by hand...

had some trouble getting the syntax for the popup call right, and now i
am stuck...

i am giving the menue a title with:
$popup_menu->set_title($treestore->get($iter,0));

especially since if i click rapidly on the right button (means without
    holding it) it triggers the first menueitem....

so i suppose there is somewhere an option to activate telling that it
should popup with window decorations etc, but couldn't find it yet...

-- 
ciao bboett
==============================================================
bboett adlp org
http://inforezo.u-strasbg.fr/~bboett
===============================================================



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]