Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!emory!att!pacbell.com!pacbell!sactoh0!unify!openlook!openlook-request From: kbj@jupiter.risc.com (Ken Johnson) Newsgroups: comp.windows.open-look Subject: Panels and events ( I think!!! ) Message-ID: <4nez4c5@openlook.Unify.Com> Date: 9 Nov 90 00:23:20 GMT Lines: 45 I have a base frame that contains a panel and three canvases. The panel c contains three buttons and four text items. Basically everything works, but, as always, I need improved functionality and I can't figure out how to do it. Here's what I have and then what I want. 1) One of the menuitem call back procedures launches a compute intensive procedure that calls three canvas repaint procedures every few seconds. This takes about 100 times. When in the compute routine the panel items are dead - except that the 4 text tiems are updated by the compute routine. This scenario is OK most of the time. Sometimes I want to interrupt the compute routine - this is what the 'pause' button on the panel is supposed to do. The problem is that it is dead during the time the compute routine is busy. Questions: 1) Is there a call I can once every few seconds from inside my compute routine that will service the panel? This is the approach the Mac seems to take. 2) What is the story with the panel_repaint_procedure? 3) Do I have to handle events myself? God, I hope not? 4) Should I fork the compute process and send it signals? Lions and Tigers and Bears Oh my.... What is most conventional and intelligent way to do this? /* ------ Another question ------ */ Ah, for get this. I'll deal with it later..... Ken J. Ken Johnson Phone: 805-373-4487 Rockwell International Science Center Comnet: 273-4487 1049 Camino Dos Rios A-18 e-mail: kbj@risc.com Thousand Oaks, CA 91360 If enough data is collected anything may be proven by statistical methods....