home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / tools / 2224 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.5 KB

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