Newsgroups: comp.windows.open-look Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!news.cs.indiana.edu!msi.umn.edu!cs.umn.edu!brsmith From: brsmith@cs.umn.edu (Brian R. Smith) Subject: Re: xview confusion - command frames disappearing (ANSWERED) Message-ID: <1991Apr10.193633.11960@cs.umn.edu> Keywords: xview, buttons, panels, command frames Organization: University of Minnesota, Minneapolis, CSci dept. References: <1991Apr9.215503.20523@cs.umn.edu> Date: Wed, 10 Apr 91 19:36:33 GMT Lines: 47 In <1991Apr9.215503.20523@cs.umn.edu> brsmith@cs.umn.edu (Brian R. Smith) writes: >Now here's the weird part: Whenever any of these four buttons is >pressed and released the command frame is taken down. (XV_SHOW set to >FALSE.) Even if there isn't a callback for that button. >Is this supposed to happen? I can find no mention of it in O'Reilly >volume 7 - which isn't to say it isn't there. It appears to happen >consistently, so I am not sure if it's a bug or a feature. Apparently it's a feature. So, how do you circumvent it? Answer #1 Two different folks at sun (David Berry (dtb@Eng.sun.com) and Larry Wake (Larry.Wake@West.Sun.COM)) provided a simple answer. Just set the button's PANEL_NOTIFY_STATUS to XV_ERROR before returning from the notify procedure, and the command frame will be left up. I.E. (pasted right out of Larry Wake's note): void some_button_notify(item, event) Panel_item item; Event *event; { [... your code here ...] xv_set(item, PANEL_NOTIFY_STATUS, XV_ERROR, NULL); } This is what I'm using now. Answer #2 Force the push-pin in when you make the command frame. (Marc Ramsey (autodesk!sunra!marc@fernwood.mpk.ca.us) and Frame Hage (fhage@brainiac.rap.ucar.edu)) Larry Wake also pointed out that it IS indeed in the XVPM - bottom of page 148 and top of page 149. I had read that chapter, but missed that little tidbit completely... Thanks to all who replied. I wasn't expecting such a fast response. I got a working answer within an hour of my post... And to think some consider reading news a waste of time. Take care, -- Brian brsmith@cs.umn.edu