[Paraview] Re: [KWWidgets] How do I make a widget disappear?

Peter F Bradshaw pfb at exadios.com
Fri Jun 2 06:56:49 EDT 2006


Hi;

On Fri, 2 Jun 2006, Peter F Bradshaw wrote:

> Hi;
>
> Coincidentally we were discussing this issue on this list (KWWidgets)
> on about Apr / 20 / 2006. Unfortunately April has not been archived on
> the KWWidgets site.
>
> You need to execute a Tcl 'pack forget' on the widget. For some sample
> code see:
>
> http://multibeam.cvs.sourceforge.net/*checkout*/multibeam/src/Gui/Plan/Aquisition/ssMultibeamLWWindow.C

A better link is:

http://multibeam.cvs.sourceforge.net/multibeam/src/Gui/Plan/Aquisition/ssMultibeamLWWindow.C?view=markup

(Has attractive colors. :-)

>
> Look at ssMultibeamLWWindow::UnputOptionsDisplay() which is near the
> bottom.
>
> BTW the 'pack forget' will cause the widget to immediately disappear
> from the GUI. There is no need to Delete() the underlying widget. So it
> is possible to maintain the widget's current state. You can redisplay
> the widget with a Tcl 'pack' at a later time with its current state
> intact.
>
> On Thu, 1 Jun 2006 beth at portugalmail.pt wrote:
>
> > Hi,
> >
> > I created a panel, then I attached to it a vtkKWColumnList.
> > Well, I want to make it disappear after the user has pressed a button.
> > How I do this?
> > I deleted the vtkKWColumnList pointer object and then called the panel Update
> > method, however, it is still there!!! (useless, but still there...).
> >
> > Thanks for any help...
> >
> > Best regards,
> >
>
> Cheers
>
>

Cheers

-- 
Peter F Bradshaw, http://www.exadios.com
Public key at www.exadios.com/pfb.pgp.key and www.exadios.com/pfb.gpg.key
Personal site: http://personal.exadios.com
"I love truth, and the way the government still uses it occasionally to
 keep us guessing." - Sam Kekovich.


More information about the ParaView mailing list