| Author |
Message |
sunburnt

Joined: 08 Jun 2005 Posts: 4001 Location: Arizona, U.S.A.
|
Posted: Sat 03 Apr 2010, 15:26 Post subject:
Need to make custom gtkDialog TableBox right click menu. |
|
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.
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 832
|
Posted: Mon 05 Apr 2010, 17:13 Post subject:
|
|
Sunburnt,
Maybe you could trap the "<action signal="on-click" or "button-press-event" action and then trap the right-click by a test-
| Code: | | if [ $BUTTON = 3 ]; then POPYOURMENU |
Cheers,
s
(How's the Driveman Driving)
|
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4001 Location: Arizona, U.S.A.
|
Posted: Mon 05 Apr 2010, 18:13 Post subject:
|
|
Hi seaside; DriveMan is what this is for, the buttons aren`t needed if there`s a context menu.
Near as I can tell DriveMan is finished, I can`t find any more nasty interactions in settings.
I`ll give your suggestion a go, I have terrible luck with gtkDialog ( undocumented syntax ).
|
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5241 Location: Valåmoen, Norway
|
Posted: Tue 06 Apr 2010, 11:22 Post subject:
|
|
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
_________________ Stardust resources
|
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4001 Location: Arizona, U.S.A.
|
Posted: Tue 06 Apr 2010, 16:50 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
|