|
-
Jul 3rd, 2000, 11:36 AM
#1
Thread Starter
Addicted Member
Hi,
I'm developing an OCX (a Command Button).
Then I create the Button.ocx and put it in a Form to test it.
When I put a Label over my OCX, the Label stays "behind" of it.
How can I avoid this? I need the Label over the OCX, like when we put a Label over a Picturebox...
Is there any property that I should set up to solve this?
I already spent a lot of time and didn't get any solution...any ideas are welcome.
Thanks for any help...
Michel Jr.
-
Jul 3rd, 2000, 01:33 PM
#2
Unfortunately, I think you cannot do that. As MSDN states: There are 3 layers associated with Forms and Containers. The Back layer is the drawing space, the Middle layer is for Graphical Controls and the Label, and lastly, the Front layer is for Non-graphical Controls such as the CommandButton, CheckBox, OptionButton etc.
Your OCX Control is in the Front layer, therefor, it will be covering the Label regardless of the ZOrder because the ZOrder will only affect the object's in the same layer of the object you specify.
-
Jul 3rd, 2000, 02:55 PM
#3
transcendental analytic
There's two ways out of it:
Either use somethings instead of labels, ie, pictureboxes to draw text on
or,
To make your usercontrol Windowless, like image control and label it self
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jul 3rd, 2000, 03:32 PM
#4
A PictureBox uses up a lot of Resources. Your second approach seems more reasonable.
-
Jul 3rd, 2000, 04:11 PM
#5
transcendental analytic
Yes, i agree but I have Vb5, and it wont support it.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|