Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to change zOrder property?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
usernotfound
Expert Cheater
Reputation: 0

Joined: 21 Feb 2016
Posts: 115

PostPosted: Mon Sep 26, 2016 11:49 pm    Post subject: How to change zOrder property? Reply with quote

I'm trying to add little icon image for my buttons but don't know how to bring the image object on top, looking in main.lua it seems zOrder is what I want but not quite sure how to use it. Is there an option to change this property in the object inspector?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Tue Sep 27, 2016 6:01 am    Post subject: Reply with quote

in the formdesigner you can rightclick in the object tree to bring it to front

with code there is currently nothing for it yet, but the last created object is always on top, so you could try to work with that

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
usernotfound
Expert Cheater
Reputation: 0

Joined: 21 Feb 2016
Posts: 115

PostPosted: Tue Sep 27, 2016 9:07 am    Post subject: Reply with quote

Yeah I tried using the bring to front & send to back options last night but it didn't work for my images. Just tried it now with other objects and it does work, and making them in order works too but only for other objects, not images.



No matter what I do it just doesn't seem to want to go on top :/
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Tue Sep 27, 2016 9:13 am    Post subject: Reply with quote

Is the image by any chance inside another object ? (E.g panel)
If so, change the zorder of the panel instead

(And if not, put it in a panel and change the zorder of that)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
usernotfound
Expert Cheater
Reputation: 0

Joined: 21 Feb 2016
Posts: 115

PostPosted: Tue Sep 27, 2016 4:04 pm    Post subject: Reply with quote

Nope it was just on the form itself, but thanks for the panel idea I ended up just putting my image on there and placing it on top of the button, looks a bit weird but it works Very Happy
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Tue Sep 27, 2016 4:17 pm    Post subject: Reply with quote

the panel has by default bevelOuter set as bvRaised. Just set it to bvNone and it won't be visible
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites