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

Home » Public Forums » archive » Re: How to HIDE a WIDGET_BUTTON and dont hide the widget hierarchy ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: How to HIDE a WIDGET_BUTTON and dont hide the widget hierarchy ? [message #60222] Mon, 12 May 2008 09:04 Go to next message
Justus Skorps is currently offline  Justus Skorps
Messages: 20
Registered: April 2007
Junior Member
why don't you use an own widget_base for the widget_button and then
hide/unhide this base?
Re: How to HIDE a WIDGET_BUTTON and dont hide the widget hierarchy ? [message #60225 is a reply to message #60222] Mon, 12 May 2008 07:50 Go to previous messageGo to next message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
> Chris wrote:
>
> Is this what you mean?
> WIDGET_CONTROL, ButtonID, SENSITIVE = 0

No. I would hide the button completely but I think is not possible.
The SENSITIVE option is not bad...
Thanks for your suggestion..

3rs
Re: How to HIDE a WIDGET_BUTTON and dont hide the widget hierarchy ? [message #60226 is a reply to message #60225] Mon, 12 May 2008 07:27 Go to previous messageGo to next message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On May 12, 3:10 pm, 3Rs <bernat.puigdomen...@gmail.com> wrote:
> Hi group,
>
> my question is really simple but I dont know if there are any
> solutions for this...
> I want to know how to HIDE a WIDGET_BUTTON and dont hide the widget
> hierarchy ?
>
> Is it possible ?
>
> Thanks
>
> 3rs

Is this what you mean?
WIDGET_CONTROL, ButtonID, SENSITIVE = 0

If you want it *completely* hidden while insensitive, create an 8-bit
bitmap image as your button icon (this may only work on Windows).

Regards,
Chris
Re: How to HIDE a WIDGET_BUTTON and dont hide the widget hierarchy ? [message #60227 is a reply to message #60226] Mon, 12 May 2008 07:22 Go to previous messageGo to next message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
On May 12, 10:20 am, David Fanning <n...@dfanning.com> wrote:
> 3Rs writes:
>> my question is really simple but I dont know if there are any
>> solutions for this...
>> I want to know how to HIDE a WIDGET_BUTTON and dont hide the widget
>> hierarchy ?
>
>> Is it possible ?
>
> I don't know. I doubt it is possible in a platform-independent
> way. I think the best you can reasonably hope for is to make
> your button insensitive (SENSITIVE=0).
>
> 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.")



Ok I will do that !

Thanks
Re: How to HIDE a WIDGET_BUTTON and dont hide the widget hierarchy ? [message #60228 is a reply to message #60227] Mon, 12 May 2008 07:20 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
3Rs writes:

> my question is really simple but I dont know if there are any
> solutions for this...
> I want to know how to HIDE a WIDGET_BUTTON and dont hide the widget
> hierarchy ?
>
> Is it possible ?

I don't know. I doubt it is possible in a platform-independent
way. I think the best you can reasonably hope for is to make
your button insensitive (SENSITIVE=0).

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.")
Re: How to HIDE a WIDGET_BUTTON and dont hide the widget hierarchy ? [message #60343 is a reply to message #60222] Mon, 19 May 2008 07:54 Go to previous message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On May 12, 5:04 pm, Justus Skorps <ju...@gmx.de> wrote:
> why don't you use an own widget_base for the widget_button and then
> hide/unhide this base?

Great idea, Justus, works a treat!

From the helpfiles:
While it is possible to call WIDGET_CONTROL, MAP=0 with the widget ID
of any widget, only base widgets can actually be unmapped. If you
specify a widget ID that is not from a base widget, IDL searches
upward in the widget hierarchy until it finds the closest base widget.
The map operation is applied to that base.

So you can actually hide the button itself, and so long as it has its
own associated child base that it doesn't share with anything else, by
using
WIDGET_CONTROL, Button_ID, MAP = 0

Works for me. Thanks for this great tip!
Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Diverging Brewer Color Tables Fixed
Next Topic: Re: Diverging Brewer Color Tables Fixed

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

Current Time: Wed Oct 08 15:15:42 PDT 2025

Total time taken to generate the page: 0.00477 seconds