mark@torch.UUCP (Mark Howells) (04/12/88)
I'm having trouble using XUnmapWidget() and XMapWidget(). What I'm trying to do goes roughly like this :- toplevelwidget = XtInitialize(............); mywidget = XtCreateManagedWidget(name,class,toplevelwidget.......); mynestedwidget = XtCreateManagedWidget(name,class,mywidget......); XtRealize(toplevelwidget); DrawPicturesIn(mynestedwidget); /* OK so far, Now I want all my widgets (and picture) to disappear */ XtUnmap(toplevelwidget); /* Still OK, they've gone , but now I want them back */ XtMapWidget(toplevelwidget); /* All I get is a black window the size of my toplevel widget */ Help !! what am i doing wrong? The XtMapWidget (which I know to be XMapWindow) does not seem to be causing the subwidgets (windows) to be redrawn. I have an expose handler for my pictures. The actual widgets I'm using are : toplevel viewport core I would expect the viewport, at least to redraw the scroll bars, but I am getting absolutely zilch. Thanks in advance, mark. ============================================================================== * Torch computers Ltd, mark@torch.co.uk * Abberley House, * Great Shelford, seismo!mcvax!ukc!stc!datlog!torch![mark|root] * Cambridge, * England. =============================================================================
swick@ATHENA.MIT.EDU (Ralph R. Swick) (04/22/88)
I can't reproduce your problem. Example code and a description of your environment, including window manager, submitted to xbugs would help.