GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

tooltip

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
ramesh
GTK+ Geek


Joined: 16 Nov 2006
Posts: 69

PostPosted: Fri Dec 01, 2006 9:35 am    Post subject: tooltip Reply with quote

hi everyone
can i change tooltip color
if it is, what code i have to use
will u please showme the way
thank you
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 386
Location: Fairfax, Virginia

PostPosted: Fri Dec 01, 2006 3:21 pm    Post subject: Reply with quote

You have to do it with an RC file or by changing the GtkStyle. More information can be found at this thread: http://www.ale.org/archive/ale/ale-2003-08/msg01531.html
Back to top
ramesh
GTK+ Geek


Joined: 16 Nov 2006
Posts: 69

PostPosted: Thu Jan 11, 2007 12:18 pm    Post subject: hi Reply with quote

hi everyone

how could i know coordinates of tooltip
can i arrange tooltip in perticular coordinates
am using f4
gtk/c

can u plese show me the way

thank you
Back to top
ramesh
GTK+ Geek


Joined: 16 Nov 2006
Posts: 69

PostPosted: Thu Jan 11, 2007 1:19 pm    Post subject: hi Reply with quote

can u please send an example
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 386
Location: Fairfax, Virginia

PostPosted: Thu Jan 11, 2007 4:58 pm    Post subject: Reply with quote

The tooltip location is calculated in a private function in gtktooltips.c called gtk_tooltips_draw_tips(). It first sets the x & y coordinates to the GdkWindow's top-left corner. Then, it moves it according to the widget's allocation. Then, it calculates the correct location based upon the widget's allocated size and whether it will be visible on the screen in that state.

Since this is internally done, I don't think there is anything provided that allows you to set the position of the tooltips manually. I would recommend creating your own AppTooltips GObject for this, where App is an abbreviation of your application. You could possibly just derive it from GtkTooltips and inherit everything important except for the positioning.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP