Re: Associating color-table with widget application [message #8846 is a reply to message #8754] |
Thu, 24 April 1997 00:00  |
tim
Messages: 9 Registered: July 1994
|
Junior Member |
|
|
I think I understand what you're describing, but forgive me if
I don't!
You have one application window that contains a number of other
widgets (buttons, etc.) It's when you move the mouse into
and out of this window (the application) that you want to change
colour table, but at present it's changing as you move around
WITHIN this application. Is that correct?
have you tried creating a large base widget for the whole application
in which all the otehr widgets sit and turn on event_tracking
for this base widget, and turn it off for all the others. (I use
event_tracking in a similar way for a context sensitive help,
and I group a set of widgets in this way and connect the help to
their base widget instead of each individual widget so that I
can desribe them all in one go).
I don't know. This sounds like something you probably tried.
But then it might just be one of those obvious DUH! things :)
Tim
David Foster (foster@bial1.ucsd.edu) wrote:
: The problem is simple: in a widget application, I want the widget to
: load its own color-table whenever the cursor is "in" the application,
: and load a pre-existing color-table when the cursor is "out" of the
: application. Sounds easy right? Please tell me it is...what keyword
: did I miss this time?
: I tried using tracking events, but you get color-flashing whenever
: you leave one widget and enter another, even if you enable tracking
: events for ALL widgets. If you enable tracking events for only the
: TLB, you lose your colors whenever you move into, say, a slider
: widget which adjust a plot which you really need to see in the
: correct colors...
: Then I saw the KBRD_FOCUS_EVENTS keyword to the WIDGET_BASE()
: function, and I thought I was quite clever. But of course you
: lose your colors again when, say, you press a slider widget that
: adjusts a plot which you really need to see in the correct colors...
: This seems so basic. It's easy to do for, say, a draw widget. But
: how do you do it for an entire widget heirarchy? RTFM's welcome!
: Dave
: --
: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
: David S. Foster Univ. of California, San Diego
: Programmer/Analyst Brain Image Analysis Laboratory
: foster@bial1.ucsd.edu Department of Psychiatry
: (619) 622-5892 8950 Via La Jolla Drive, Suite 2200
: La Jolla, CA 92037
: [ UCSD Mail Code 0949 ]
: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|