home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!opl.com!scott
- From: scott@opl.com (Scott Evernden)
- Newsgroups: comp.os.ms-windows.programmer.tools
- Subject: Re: VB 2.0 bug?
- Message-ID: <1512@ottawa.opl.com.opl.com>
- Date: 25 Jan 93 16:09:48 GMT
- References: <1993Jan18.225912.9347@hssiarl.uucp>
- Sender: news@opl.com
- Distribution: usa
- Organization: OPL., Inc.
- Lines: 24
-
- In article <1993Jan18.225912.9347@hssiarl.uucp> ford@hssiarl.uucp (Bill Ford) writes:
- >
- > An application written in VB 1.0 uses labels overlapping
- >picture boxes, works correctly labels are no top at run time., when
- >Converted to erted to VB 2.0 the labels are covered up by picture boxes.
- >The labels where visible in 1.0 on top of the picture boxes.
- >Tried in edit menu to push label to front, also tried using
- >Z-order to push label to front. Neither method worked.
- >Tried pushing picture box into background, still not correct.
- >Works with all other controls correctly only labels are not
- >controllable in front or back of picture box.
-
- I suspect the problem because VB 2.0 handles labels like graphic objects
- and not as Static windows anymore. Since graphic objects are actually
- drawn into their parent window before child windows get a chance to paint,
- this would explain why your previously top-level labels are now under
- everything.
-
- I think the VB folks did this to limit resource consumption for simple labels.
-
- A q&d solution might be to put the labels each into a Picture object
- (which _is_ a window) and turn the Picture borders off...
-
- -scott
-