Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 03:05
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Need to make custom gtkDialog TableBox right click menu.
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: 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
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: 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) Very Happy
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: 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
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5699
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0438s ][ Queries: 11 (0.0035s) ][ GZIP on ]