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

Home » Public Forums » archive » Re: Keeping Button Pressed In?
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: Keeping Button Pressed In? [message #45258 is a reply to message #45253] Thu, 25 August 2005 20:16 Go to previous messageGo to previous message
Richard French is currently offline  Richard French
Messages: 173
Registered: December 2000
Senior Member
>
> My approach to this problem is to write a compound widget
> (usually an object widget, but it doesn't have to be). The
> "button" is really a draw widget. I create the draw widget
> using PLOTS and POLYFILL in such a way that it actually
> *looks* like a button. And I assign a event handler *function*
> (not procedure) to the draw widget. When an event occurs
> I take it into the event handler and strip out all the
> draw widget stuff, and make the event look like a button
> event structure. I pass this back as the return value of
> the event handler function and IDL treats it as though it
> were an event bubbling up the widget hierarchy. Thus,
> anyone who *uses* the compound widget *thinks* it is a
> button, although it isn't.
>
> When the button is "pressed", I invert the colors I used
> to draw the button, and use light highlighting where before
> I used dark, etc. I really does look as if the button was
> depressed.
>
> Cheers,
>
> David

Wow, that sounds easy! :)

If you tell us the name of the color picking program that was slow on the
mac, we can test it on a firebreathing G5 and see if it is any quicker than
on the laptops.

Dick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Constrained Optimization routine
Next Topic: Bases de datos

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

Current Time: Thu Oct 09 02:59:18 PDT 2025

Total time taken to generate the page: 1.51722 seconds