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 
Return to the default flat view Create a new topic Submit Reply
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
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: Sun Oct 12 01:04:49 PDT 2025

Total time taken to generate the page: 3.27840 seconds