|
|
| Author |
Message |
|
|
ramesh GTK+ Geek
Joined: 16 Nov 2006 Posts: 69
|
Posted: Fri Dec 01, 2006 9:35 am Post subject: tooltip |
|
|
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
|
|
| Back to top |
|
 |
ramesh GTK+ Geek
Joined: 16 Nov 2006 Posts: 69
|
Posted: Thu Jan 11, 2007 12:18 pm Post subject: hi |
|
|
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
|
Posted: Thu Jan 11, 2007 1:19 pm Post subject: hi |
|
|
| can u please send an example |
|
| Back to top |
|
 |
openldev Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 386 Location: Fairfax, Virginia
|
Posted: Thu Jan 11, 2007 4:58 pm Post subject: |
|
|
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 |
|
 |
|