andrew@resam.dk (Leif Andrew Rump) (03/20/91)
The code below, which is part of a Guide generated XView program with two buttons does not perform as expected and documented in Volume Seven of XView Programming Manual (Version 2) page 399. The second paragraph on page 399 states: "... the user might be attempting to interact with the application by selecting a panel button." which is exactly what we want. After activating the Search button the user should be able to press the Stop button. Which (s)he isn't! /* * Notify callback function for `search_but'. */ void fs_search_notify(item, event) Panel_item item; Event *event; { Display *dpy; dpy = (Display *)xv_get(fs_popup_win->popup_win, XV_DISPLAY); fs_stop_search = false; XFlush(dpy); while (!fs_stop_search) { notify_dispatch(); XFlush(dpy); Odin_search_batch(...); /* This returns every now and then */ } } /* * Notify callback function for `stop_but'. */ void fs_stop_notify(item, event) Panel_item item; Event *event; { fs_stop_search = true; } Leif Andrew Leif Andrew Rump, AmbraSoft A/S, Stroedamvej 50, DK-2100 Copenhagen OE, Denmark UUCP: andrew@ambra.dk, phone: +45 39 27 11 77 / Currently at Scandinavian Airline Systems =======/ UUCP: andrew@resam.dk, phone: +45 32 32 51 54 \ SAS, RESAM Project Office, CPHML-V, P.O.BOX 150, DK-2770 Kastrup, Denmark NOTICE: 'Cause of SendMail ConFiGuRation FaultS weee may experiienc ProBleeems wiiiiiiith our return add<zap> andrew@resam.dk whiccccch may BeCoMe sOmEthIng like <wheee>w@cph<click> !%#@# @$$%$%(&**&(^%$ $#%%^&)(&^T^%^%^^# login: