Sorry, I redo my request for help....

BY frankq
DATE 05/05/03 1037
SUBJECT Extension for tip "Making Netscape-style Toolbars"
Hi,
I`ve used the tip code to obtain buttons netscape-like style.
I would obtain also the following behavior (using the same functions mapAC and shadowAC) when the cursor is over a button it is changed not only the button`s shadow but also the button`s pixmap (windows style).
Would you like to help me?
Thanks.


ICS_support

ICS_support's picture

Sorry, I redo my request for help....

In short, you`d have to track the Enter/Leave and not only pop up the tip information but also change the pixmap. It can be done "by hand" because the tip code handles most of the overhead automatically.

I`d modify the tip code to do one of these

1) where you register the help string, also register two pixmaps (to be installed assuming that the widget is an XmLabel subclass) and have the tip code track Enter/Leave and make the change in pixmap.

2) where you register the help string, also register a callback-like function per widget. The tip code then tracks Enter/Leave and calls the function, which does the change in pixmap for each widget.


Anonymous

Anonymous's picture

Sorry, I redo my request for help....

The help string?
The tip allows to buttons to gain shadow only when they have focus in...translations are overrided to obtain raised button when the mouse is over them...Where do I register the two pixmaps?
Can you help me? It is very important...

Thank you for all...