Irhymer Posted March 20, 2011 Author Share Posted March 20, 2011 Hey, I finally decided to mess around with EOv2.0 while waiting to build my game in PV. But when I jumped in to edit the GUI I ran into a (probably easy) problem.Whenever I moved picture boxes like HP/MP/EXP over the picscreen they would go under the pile of objects. Even when I hit 'bring to front' nothing changed. I was wondering If anyone could help me out with getting this to work please?Thanks in Advanced, ;)-Jake Link to comment Share on other sites More sharing options...
The New World Posted March 20, 2011 Share Posted March 20, 2011 Example:```picHP.zOrder(0)```This is like bring to front. I use it for drag-gable menus.And you're never on msn anymore, shame on you. Link to comment Share on other sites More sharing options...
Irhymer Posted March 20, 2011 Author Share Posted March 20, 2011 Thanks alot, I'll mess around with it. I just need to change the 'picHP' part to whatever item its ordering right?Oh and does 0 represent the top? As in if I want Hp/Mp/Exp to be on top, would it be ex:```picHP.zOrder(0) picMP.zOrder(1)picEXP.zOrder(2)```? or just all set to 0? Link to comment Share on other sites More sharing options...
The New World Posted March 20, 2011 Share Posted March 20, 2011 ZOrder is not only for forms but any control within the form that has a handle (hWnd property).Just play with it. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 20, 2011 Share Posted March 20, 2011 @[Jake:> link=topic=70260.msg755921#msg755921 date=1300588416]> Thanks alot, I'll mess around with it. I just need to change the 'picHP' part to whatever item its ordering right?> Oh and does 0 represent the top? As in if I want Hp/Mp/Exp to be on top, would it be ex:> > ```> picHP.zOrder(0) > picMP.zOrder(1)> picEXP.zOrder(2)> ```> ? or just all set to 0?zOrder only accepts two numbers. 0 = set to (very) front, and 1 = set to (very) back. So your code is:```[code]picHP.zOrder(0) picMP.zOrder(0)picEXP.zOrder(0)[/code]``` Link to comment Share on other sites More sharing options...
Irhymer Posted March 20, 2011 Author Share Posted March 20, 2011 @Soul:> zOrder only accepts two numbers. 0 = set to (very) front, and 1 = set to (very) back. So your code is:> > ```> [code]picHP.zOrder(0) > picMP.zOrder(0)> picEXP.zOrder(0)[/code]> > Haha yea, I noticed that from trial and error.> --------------------> > Well, I did this and It managed to move the img over the 100/100 label, but not the actual screen:> [quote]> Private Sub imgEXPBar_Click()> imgEXPBar.ZOrder (0)> End Sub> > Private Sub imgHPBar_Click()> imgHPBar.ZOrder (0)> End Sub> > Private Sub imgMPBar_Click()> imgMPBar.ZOrder (0)> End Sub[/quote]> Not sure if those are in right. But after it didn't work, I did the same for the picscreen/bank etc, but set those to ZOrder (1) so it would go under, but still nothing..> > What am I doing wrong? :huh:> ``` Link to comment Share on other sites More sharing options...
The New World Posted March 20, 2011 Share Posted March 20, 2011 Well it's executing the command when you click the graphic. Why not add the simple Zorder commands to the forms loading event handler? Link to comment Share on other sites More sharing options...
Irhymer Posted March 20, 2011 Author Share Posted March 20, 2011 Still not working no matter where I put it:```imgHPBar.ZOrder (0) imgMPBar.ZOrder (0) imgEXPBar.ZOrder (0) picScreen.ZOrder (1) picTrade.ZOrder (1) picBank.ZOrder (1)```I tried placing it here:```Public Sub loadGUI(Optional ByVal loadingScreen As Boolean = False)Dim i As Long```And got defining errors. Then here:```Private Sub Form_Load()```It compiled and placed the Bars over the labels but never over the picScreen. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now