'LinKin Posted September 21, 2014 Posted September 21, 2014 Hello, I have a window, 400x300 I found an issue, when I try to set its width to 0 using guiSetSize, it doesn't work. It reaches a point where its width doesn't decrease, why? I even tried using high negative values as the 2nd argument of guiSetSize (the width).
'LinKin Posted September 21, 2014 Author Posted September 21, 2014 Try this: It won't even work like that, I think this is a bug of MTA. addCommandHandler("ss", function() local sW, sH = guiGetScreenSize() local width, height = 455, 415 local left = sW - width - 1 local top = sH/2 - height/2 local w = guiCreateWindow(left, top, 10, height, "", false) --guiSetSize(w, 1, height, false) end) In my case it creates the window, but it's width can't be less than 96
MTA Team qaisjp Posted September 21, 2014 MTA Team Posted September 21, 2014 (edited) Edited September 27, 2014 by Guest
#RooTs Posted September 21, 2014 Posted September 21, 2014 try using the value "000" and "001" never value "0" guiSetSize (w, 001, altura, false)
'LinKin Posted September 22, 2014 Author Posted September 22, 2014 Tried that, tried using relative GUI, and nothing makes what it should make. Seems the width and height of a GUI is limited or something like that..... I tried creating a window with 0 width and 0 height and this is what I got:
#RooTs Posted September 22, 2014 Posted September 22, 2014 Tried that, tried using relative GUI, and nothing makes what it should make.Seems the width and height of a GUI is limited or something like that..... I tried creating a window with 0 width and 0 height and this is what I got: why not create, in DX ( DX Panel )???
Moderators IIYAMA Posted September 25, 2014 Moderators Posted September 25, 2014 @LekRoots Because write the code manualy is always better in quality, performance and managing. and it is hard to move dx gui's. @'LinKin What if you try a black static image as background? But you lose the move/scale ability with the cursor.
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