home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!yale.edu!newsserver.jvnc.net!newsserver.technet.sg!nuscc!nusunix2.nus.sg!eng40050
- From: eng40050@nusunix1.nus.sg (HENG LI SAN)
- Newsgroups: comp.windows.x
- Subject: how to check for pushbutton event while looping...
- Summary: stopping an video loop by pressing an image
- Keywords: multitasking, video loop...
- Message-ID: <1993Jan28.083524.8150@nuscc.nus.sg>
- Date: 28 Jan 93 08:35:24 GMT
- Sender: usenet@nuscc.nus.sg
- Organization: National University of Singapore
- Lines: 28
- X-Newsreader: TIN [version 1.1 PL6]
-
- Anybody out there know how can I stop a video loop when I press a
- pushbutton. I have tried to use commands like
- XtPending/XPending,XtProcessing etc but somehow, the progress run into
- any infinite loop.
-
- any comment on my algorithm....
-
- while(!Terminated)
-
- {
- if i>(no of image) i=0;
- diplay image(i)
- check for pushbutton event
- if pushbutton , handle the event callback
- i++;
- }
-
-
-
- EventCB{
- Terminated = True
- }
-
-
- If anybody has done this , or have an idea on how to do this, please
- leave me a note. Thanking in advance.
-
- Lisan.
-