Path: utzoo!attcan!uunet!husc6!bloom-beacon!WHEATIES.AI.MIT.EDU!sundar From: sundar@WHEATIES.AI.MIT.EDU (Sundar Narasimhan) Newsgroups: comp.windows.x Subject: question regarding toolkit callback functions Message-ID: <8807172352.AA17403@special-k.ai.mit.edu> Date: 17 Jul 88 23:52:12 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 42 a. I have an application that has a rather complicated function bound to a command button's callback. Since this function takes a long time, ideally I would like to be able to provide feedback to the user at intermediate points like: command_init(server) char *server; { update_status("Contacting remote host ..."); contact_host(server); update_status("Contacting remote host ... Done"); group_request(); update_status("Checking validity ..."); group_check(); update_status("Checking validity ...Done"); /* etc, etc ...*/ } update_status(), could for example change the text string associated with a static text widget. Now, the way the toolkit functions are set up, one would have to write one's own XtMainLoop()/select() to do this, am I right? (or is there some other way of intercepting this loop)? Currently, I get to seeing only the last of the update status messages.. XFlush() doesn't help. Ah.. if only I had something like (tv:noting-progress.. b. Regarding translation tables: How does one invoke a function normally in a translation table of a widget from within a program? For example, I would like to scroll a text window's display one page up from within my program. There must be a simple way of doing this, which I am obviously too dense to decipher.. -Sundar ps. this is just a request: nowadays I dread sending messages to xpert because of the 20 or so bounceback messages that get generated for every msg I send out. I know this is kind of a pain, but people, could everyone garbage collect their mailing lists at least once in a while ... Thanks.