home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!watson!
- From: cnadler@vnet.ibm.com (Cliff Nadler)
- Subject: Re: Product Information Dialog Box
- Sender: @watson.ibm.com
- Message-ID: <1992Aug26.205904.25246@watson.ibm.com>
- Date: Wed, 26 Aug 92 20:59:04 GMT
- News-Software: IBM OS/2 PM RN (NR/2) v0.037 by O. Vishnepolsky and R. Rogers
- Lines: 23
- Reply-To: cnadler@vnet.ibm.com (Cliff Nadler)
- References: <weinkam.714853662@sfu.ca>
- Organization: IBM T. J. Watson Research
-
- In <weinkam.714853662@sfu.ca> weinkam@fraser.sfu.ca (James Lawrence Weinkam) writes:
- >
- > How do you find out how long the product information is supposed to
- > be displayed for?
- >
- > How do you make the dialog box close after the desired time?
- >
- I believe that the toolkit has a sample program which does this, however,
- one way to do this is to spin off another thread which displays the product
- information (while the other thread continues to initialize). During your
- WM_CREATE processing, you set a timer (using WinStartTimer) to send yourself
- a WM_TIMER message. When you get that message (or the user clicks on the OK
- button), you use WinStopTimer to stop the timer, destroy the window, and exit
- from the thread.
-
- I would also suggest that you use the INI query function to get the timeout
- value from the "PM_ControlPanel" application, key name "LogoDisplayTime".
- See Appendix H in the Programming Ref volume 3 for details of this variable.
-
- Cliff Nadler (cnadler@vnet.ibm.com)
- IBM Federal Systems Company - TEAM OS/2
-
- Disclaimer: This post represents the views of the poster, not IBM Corporation.
-