[RESOLVED] Configuring Order Of Display During Runtime - Any Solution???
I am creating these controls during runtime for a menu of mine... Then I am moving them to show on the screen. However, the controls seem to go behind a shape when I move them. I tried configuring the view order of the first control but the controls that load during runtime go behind the shape... only the first control (Index 0) stays in the front... Is there any way this could be configured during runtime?? :confused:
Re: Configuring Order Of Display During Runtime - Any Solution???
As you add the items, change their .zorder to 0...this brings them to the front
Re: Configuring Order Of Display During Runtime - Any Solution???
useto bring a control to the front. bear in mind that lightweight controls (label, shape, etc.) can never be placed in front of windowed controls (buttons, textboxes, etc)
edit: too slow it seems
Re: Configuring Order Of Display During Runtime - Any Solution???
You gotta be quicker on the draw in these here parts, pardner...I'm the fastest gun in the west :-)
Additional: I believe you're right in your pointing out about not being able to bring shapes and such to the front BUT there is a workaround for some of that...putting shapes inside a frame means you can change zorder of the frame, although the frame isn't transparent (and I don't think you can make it so) so it may be visible...it's one way of attempting to do it though :-)
Re: Configuring Order Of Display During Runtime - Any Solution???
Thanx... I have a little problem in mind... but I might be able to solve it personally using the info you have given... If not then I'll post again in here... Otherwise I'll mark the thread resolved...
Thanx a lot Smux and Bushmobile
Re: Configuring Order Of Display During Runtime - Any Solution???
Well I am getting the error:
Code:
Compile Error:
Expected: Function or variable
with the following line... anything wrong?
VB Code:
frmMusic.lblPlayList(intObjectCount).ZOrder = 0
Re: Configuring Order Of Display During Runtime - Any Solution???
ZOrder is a method, not a property. just call it as i described in my post:
VB Code:
frmMusic.lblPlayList(intObjectCount).ZOrder
Re: Configuring Order Of Display During Runtime - Any Solution???
Ohh... lol... I thought SmUX meant that he wanted me to make it equal to 0... lol...
Thanx a lot mushmobile
Re: [RESOLVED] Configuring Order Of Display During Runtime - Any Solution???
My fault...I actually meant .ZOrder 0 (which is what I always use)...the = is my fault...I'm just so used to using it before a number with the properties I forget that it isn't needed :-)