Results 1 to 9 of 9

Thread: [RESOLVED] Configuring Order Of Display During Runtime - Any Solution???

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Location
    Toronto, Canada
    Posts
    357

    Resolved [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??
    Hey... If you found this post helpful please rate it.

  2. #2
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    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
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  3. #3
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Configuring Order Of Display During Runtime - Any Solution???

    use
    VB Code:
    1. [i]control[/i].ZOrder
    to 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

  4. #4
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    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 :-)
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Location
    Toronto, Canada
    Posts
    357

    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
    Hey... If you found this post helpful please rate it.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Location
    Toronto, Canada
    Posts
    357

    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:
    1. frmMusic.lblPlayList(intObjectCount).ZOrder = 0
    Hey... If you found this post helpful please rate it.

  7. #7
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    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:
    1. frmMusic.lblPlayList(intObjectCount).ZOrder

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Location
    Toronto, Canada
    Posts
    357

    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
    Hey... If you found this post helpful please rate it.

  9. #9
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    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 :-)
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width