I want a popup menu instead of buttons, being as the TableBox is the object of the app.
Menu = ROX, mount, boot. I searched zigbert`s tips but it`s sooo looong...
Also... Does gtkDialog need the list item selected with a left click first, and then right click?
I`ve seen this behavior in some apps. and it`s a real pain that a right click doesn`t select also.
Need to make custom gtkDialog TableBox right click menu.
Sunburnt,
Maybe you could trap the "<action signal="on-click" or "button-press-event" action and then trap the right-click by a test-
Cheers,
s
(How's the Driveman Driving)
Maybe you could trap the "<action signal="on-click" or "button-press-event" action and then trap the right-click by a test-
Code: Select all
if [ $BUTTON = 3 ]; then POPYOURMENU
Cheers,
s
(How's the Driveman Driving)
External menus is not described in the 'Tips and Tricks' post, but it is possible. I am in a hurry right now, so can't explain, but if you want to see it in action, you should look at Ptheme. - a script in the Stardust desktop environment.
Sigmund
Sigmund
Thanks zigbert; It looks like a TreeBox screen positioned to popup over the main GUI.
I didn`t think of using a plain gtkDialog control for it, very clever...
Obviously some screen calculations are required to get which TreeBox item was selected.
This "more complicated" gtkDialog related code makes having a library even more valuable.
Lets "can" these routines into a function library to extend gtkDialog for easier development.
I didn`t think of using a plain gtkDialog control for it, very clever...
Obviously some screen calculations are required to get which TreeBox item was selected.
This "more complicated" gtkDialog related code makes having a library even more valuable.
Lets "can" these routines into a function library to extend gtkDialog for easier development.