home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!csus.edu!csusac!unify!openlook!openlook-request
- From: fgreco@fis1026.shearson.com (Frank Greco)
- Newsgroups: comp.windows.open-look
- Subject: Re: Xview popup problem
- Message-ID: <x3xfuo8@openlook.Unify.Com>
- Date: 31 Jul 92 15:07:55 GMT
- Sender: news@Unify.Com
- Lines: 42
-
- > I create a popup window with its pushpin out. When ever a button is pressed,
- > the popup *always* disappears, even if I explicitly set the XV_SHOW attribute
-
- This is a feature.
-
- > for the frame to TRUE in the notify proc for the button, before the return
- > to the Notifier. I even tried sticking in the following code before setting
- > XV_SHOW, in the hope that executing the Notifier loop once might reset things,
- > but it still didn't work:
-
- First, if you can, use OW 3.0 and devguide 3.0. It's so much
- easier to do.
-
- First of all, the pushpin has a lot to do with the popup's visibility.
-
- Here's some code that might help you:
-
- _showpopup(f, flag)
- Frame f;
- int flag;
- {
- return xv_set(f,
- FRAME_CMD_PUSHPIN_IN, flag,
- XV_SHOW, flag,
- NULL;
- }
-
- showpopup(f)
- Frame f;
- {
- _showpopup(f, TRUE);
- }
-
- unshowpopup(f)
- Frame f;
- {
- _showpopup(f, FALSE);
- }
-
-
- Frank G.
- =-=-=-=-=-=-=-=-=-=
-