home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / apple2 / 25886 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.4 KB

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: Pauley@vnet.ibm.com (Paul Benson)
  3. Message-ID: <19921222.062531.971@almaden.ibm.com>
  4. Date: Tue, 22 Dec 92 09:17:25 EST
  5. Newsgroups: comp.sys.apple2
  6. Subject: Re: Need help with LineEdit Control flags
  7. Organization: IBM Personal Computer Co. - PS/1 Development
  8. Disclaimer: This posting represents my views, not necessarily IBM's.
  9. News-Software: UReply 3.0
  10. References: <123400005@hpindda.cup.hp.com>
  11.             <123400006@hpindda.cup.hp.com>
  12. Lines: 18
  13.  
  14. In <123400006@hpindda.cup.hp.com> David Tribby writes:
  15. >    I'm trying to do things very much like a control in SynthLab...an
  16. >"increment" and "decrement" icon button with the numeric result shown
  17. >in a 3-character LE Text field. I use a Line Edit control rather than
  18. >static text because (1) there's an easy way for the program to change
  19. >the value of the control and (2) the enclosing rectangle look cool :-).
  20.  
  21.    Hmmm, I know what you mean by the ease of changing LEcontrols.  I
  22. was recently trying to change a static text control on the fly.  The
  23. string would appear, but sometimes would be preceded by a garbage
  24. byte (like it was printing the length byte).  Looking through GSBug
  25. the pointers & the strings were fine.  I ended up using DrawString
  26. with the penmode set to XOR.  I guess you could do something similar
  27. (i.e. draw the rect and then the value, taking care of hiliting, etc.),
  28. but then you may as well use a LEControl ;).
  29.  
  30. Pauley
  31. GEnie: P.Benson1
  32.