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