syn0nym Posted March 14, 2022 Share Posted March 14, 2022 I have some problem with a dgsCreateWindow, so i make a dgswindow and a show cursor,when my cursor is clicking on outside the dgswindow area, the dgswindow is not visible, how to make dgswindow keep visible when cursor is clicking on outside area of the dgswindow. Here the code dgsCreateWindow( 440 , 160 , 300 , 400 , " " , false) showCursor(true) Link to comment
sFxMTA Posted March 30, 2022 Share Posted March 30, 2022 (edited) If you're clicking on some other dgs elements make sure to disable them, because otherwise on click they will get on top DGS:dgsSetProperty({ element1, element2 }, "enabled", false) -- Add as much elements as you want Edited March 30, 2022 by sFxMTA Added the correct BBCode to my code 1 Link to comment
Scripting Moderators thisdp Posted April 1, 2022 Scripting Moderators Share Posted April 1, 2022 (edited) Here's a lot of trick to achieve that. besides what is mentioned by sFxMTA, we can also do one of the following methods. 1. dgsSetLayer(window,"top") 2. dgsSetProperty(theElementYouWantThemStayAsBackground,"changeOrder",false) 3. dgsSetParent(window,theElementYouWantThemStayAsBackground) 4. dgsSetLayer(theElementYouWantThemStayAsBackground,"bottom") Edited April 1, 2022 by thisdp 2 Link to comment
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