GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Apr 23, 2014 5:46 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: tooltip
PostPosted: Fri Dec 01, 2006 9:35 am 
Offline
GTK+ Guru

Joined: Thu Nov 16, 2006 5:08 am
Posts: 259
Location: INDIA
hi everyone
can i change tooltip color
if it is, what code i have to use
will u please showme the way
thank you


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 01, 2006 3:21 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
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 ... 01531.html

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject: hi
PostPosted: Thu Jan 11, 2007 12:18 pm 
Offline
GTK+ Guru

Joined: Thu Nov 16, 2006 5:08 am
Posts: 259
Location: INDIA
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


Top
 Profile  
 
 Post subject: hi
PostPosted: Thu Jan 11, 2007 1:19 pm 
Offline
GTK+ Guru

Joined: Thu Nov 16, 2006 5:08 am
Posts: 259
Location: INDIA
can u please send an example


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 4:58 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
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.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group