Jump to content

Problem with dgsCreateWindow


syn0nym

Recommended Posts

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
  • 3 weeks later...

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 by sFxMTA
Added the correct BBCode to my code
  • Thanks 1
Link to comment
  • Scripting Moderators

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 by thisdp
  • Thanks 2
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...