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

Home » Public Forums » archive » Re: changing colors of widget-buttons
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: changing colors of widget-buttons [message #54177 is a reply to message #54153] Thu, 24 May 2007 07:59 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
BavarianMike86 writes:

> We have written several programs which analyse image files. E.g.
> "Saturation Check" or "Aux. Data Check".
> The main program executes these analyses consecutively.
>
> Now I want to create a widget showing the current analysis status.
> The requirements demand a yellow (non-sensitive) button for each
> check. After one check is completed this button has to turn into light-
> colored yellow.
>
> Any suggestions how i can accomplish this?

I typically use a draw widget that is made to look and act
like a button. That is to say, it is a compound widget with
a function event handler. I take the draw widget event into
the event handler, and repackage it as a button event, so
the end-user can treat it as a button and not a draw widget.

When the button is "selected", I either change the colors
I draw the button with, or I reverse the edge/shadow/normal
colors so that it has a "depressed" look to it.

http://www.dfanning.com/widget_tips/depressed.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Color Tools Update for 24-bit Z-Buffer
Next Topic: Re: Need hint to use FOR loops using 3-D arrays

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

Current Time: Sun Nov 30 15:51:20 PST 2025

Total time taken to generate the page: 0.80500 seconds