comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Associating color-table with widget application
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Associating color-table with widget application [message #8844 is a reply to message #8754] Thu, 24 April 1997 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Foster <foster@bial1.ucsd.edu> writes:

> 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...

Hi David. I think you are right to be thinking about color "protection",
especially as we move into IDL 5 and an accessable command line
while widget programs are running. I've been giving this idea
a lot of thought, too. (See the new example programs that I
put I my web page overnight.)

But I guess I don't fully understand the problem you are having.
I don't, for example, seem to have problems when I move into
a slider. Perhaps because I have been taking a different
approach. My idea is that each widget program ought to
"know" its own colors, but be unconcerned with everyone
else's colors. This way, when you enter a widget (via
tracking on the TLB or a draw widget [although tracking
on TLBs seems to be broken in the IDL 5 beta]) the widget
program can restore its colors. This is what I mean by
color protection.

You necessarily have color flashing as you move from
one widget to another, since the various widgets
are using the same color indices, but I don't find it
annoying in the slightest. In fact, it is exactly what
I want!

Anyway, perhaps an example of what you are stuggling
with will help us find a solution.

Cheers!

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
Customizable IDL Programming Courses
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IUnknown
Next Topic: Empirical Orthogonal Functions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:33:16 PDT 2025

Total time taken to generate the page: 0.00507 seconds