home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6755 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.7 KB

  1. Path: sparky!uunet!olivea!pagesat!netsys!agate!doc.ic.ac.uk!uknet!cf-cm!news
  2. From: spxsjm@thor.cf.ac.uk (Mr S J Morris 92)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Help! Anybody know about TPW Dialog windows?
  5. Summary: Advice required, please.
  6. Message-ID: <14478.9211201013@thor.cf.ac.uk>
  7. Date: 20 Nov 92 10:13:23 GMT
  8. Sender: spxsjm@thor.cf.ac.uk (Steve Morris)
  9. Organization: University of Wales College at Cardiff
  10. Lines: 23
  11. X-Mailer: Cardiff Computing Maths PP Mail Open News Gateway
  12.  
  13. Hello, I wonder if I can pick somebody's brains...
  14.  
  15. I'm a beginner at trying to program in Turbo Pascal for Windows. I have
  16. an application where I want to open a dialog box with just three
  17. checkboxes in it. I managed to get everything working by defining a
  18. descendant object of TDialog which included a method for responding to a
  19. message caused by the clicking of each checkbox individually. However,
  20. this took quite a lot of code to do something really quite simple, and I
  21. read in the manual that I could avoid having to define a descendant
  22. object by using a transfer buffer to determine the states of the check
  23. boxes at the beginning and end of the dialog.
  24.  
  25. I duly set the thing up, paying close attention to the manual and to the
  26. example program given on the disk. My new program works fine, except for
  27. one thing - when I click the mouse on a check box, the box doesn't
  28. toggle. It registers (i.e. the box is highlighted to show that it is
  29. being clicked), but no check appears. Has anybody else had this problem?
  30. If so, what caused it, and how did you resolve it? I'd be really
  31. grateful for any advice you could give.
  32.  
  33. Thanks in advance,
  34. Steve Morris,
  35. Department of Physics, Coleg Prifysgol Cymru Caerdydd.
  36.