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

Home » Public Forums » archive » Re: color of button
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: color of button [message #18482 is a reply to message #18471] Thu, 06 January 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Ian Dean (Ian.Dean@Gecm.com) writes:

> I've achieved a workaround for this using Motif X-windows under OpenVMS.
>
> This entailed creating two bases in the same position. Each of these bases
> contains an identical button, but with a different RESOURCE colour for its
> background. The event handler for the button then maps/unmaps the relevant
> bases to give the effect of changing button colour.

Years ago I wrote a "color button" widget that was really
a draw widget disguised as a button. (But it returned
button events, so it was just a drop-in replacement for
button widgets.) This would work so much better these
days with object graphics.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Make TV a function of X?
Next Topic: IDL.5.2.1

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

Current Time: Sun Oct 12 05:11:16 PDT 2025

Total time taken to generate the page: 1.68347 seconds