How to set a widget invisible with xlib interface?

I create a button and in some case I want it is invisible in the GUI. What function should I use?
Thank you.
If you don't want it to be visible, you shouldn't draw it or erase it by painting the background over it if you already have.
XtManageChild/XtUnmanageChild?
http://linux.die.net/man/3/xtmanagechild
Moorecm, Thank you. Yes, XtUnmanageChild will set a realized widget invisible.
Mmm... There's another question:
What parameters can be used by XtVaSetValues(Widget, ...)? Some I know are like: XmNleftAttachment, XmNtopAttachment, XmNlabelString...
Dose anyone know all of the parameters? I can't find them from the google...
Thanks again.
I'm not aware of any online index of possible Xlib parameters. If you know the specific name of one, it's information can be easily found online. For more information, consider picking up a set of The Definitive Guides to the X Window System (O'Reilly).
Topic archived. No new replies allowed.