home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / apple2 / 25702 < prev    next >
Encoding:
Internet Message Format  |  1992-12-18  |  1.6 KB

  1. From: tribby@hpindda.cup.hp.com (David Tribby)
  2. Date: Thu, 17 Dec 1992 17:53:33 GMT
  3. Subject: Need help with LineEdit Control flags
  4. Message-ID: <123400005@hpindda.cup.hp.com>
  5. Organization: HP Info Networks Div/Cupertino CA
  6. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!usc!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpcss01!hpindda!tribby
  7. Newsgroups: comp.sys.apple2
  8. Lines: 28
  9.  
  10. Here's a question that (probably) can only be answered by someone
  11. who knows the internals of the Apple IIGS toolbox:
  12.  
  13. I'm writing a desktop program that displays text values that the 
  14. program (not the user) updates in a window. The new SetLETextByID 
  15. control manager call fits the bill, so I created line edit text
  16. control resources for the window using rez. The program has to do 
  17. a HiliteControl(0x00FF, ... ) for each of the line edit controls in 
  18. the window so that users can't modify the text.
  19.  
  20. This works fine! However, I would like to avoid the calls to HiliteControl 
  21. in my program, and am wondering why (according to Toolbox Reference Vol. 3, 
  22. p.28-55) the Highlight field (bits 15-8 of the "flag" word) must be set to 
  23. 0. As an experiment, I compiled the resources with "flag" set to 0xFF00 
  24. and didn't do the HiliteControl in the program. Everything seems to work 
  25. the same.
  26.  
  27. My question: Is Vol. 3 in error when requiring the hilight field to
  28. be 0 for line edit controls? 
  29.  
  30. Getting rid of those HiliteControls would greatly simplify my window
  31. creation code, but I don't want to use a "feature" that Apple does
  32. not support.
  33.  
  34. -- Dave Tribby
  35.  
  36. Dave Tribby            Internet: tribby@cup.hp.com   GEnie: D.TRIBBY
  37. Hewlett-Packard Information Networks Division, Cupertino, California
  38.