home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4461 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.6 KB  |  37 lines

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