Jump to content

Switching between guiEdits bug?


pa3ck

Recommended Posts

Posted

No, otherwise everyone would have the same issue.

Does it happen on every server or only on your own? In case of the second case: Could you provide us a piece of your GUI code?

Posted

It works if they're not attached to a parent. I used dxDraw to draw the background, but changed to guiStaticImage and set the edits as children. The code is just simple guiCreateStaticImage and 2 edits and 2 buttons, but sure, here's my code:

local sizeX, sizeY = 0.64, 0.9 
local tPic = math.random(1, #pics) 
img = guiCreateStaticImage (0.5 - sizeX / 2, 0, sizeX, sizeY, unpack(pics[tPic]), true) 
user = guiCreateEdit ( 0.376, 0.417, 0.218, 0.042, "", true, img ) 
pass = guiCreateEdit ( 0.376, 0.507, 0.218, 0.042, "", true, img ) 
reg = guiCreateButton ( 0.385, 0.563, 0.094, 0.042, "", true, img ) 
login = guiCreateButton ( 0.5265, 0.563, 0.067, 0.044, "", true, img ) 
  
guiSetAlpha(login,0) 
guiSetAlpha(reg, 0) 
     
guiEditSetMaxLength(user, 50) 
guiEditSetMaxLength(pass, 50) 
     
guiEditSetMasked ( pass, true ) 

Posted
Oh, are you talking about the tab key?

Yea, sorry if I haven't explained it clearly.

EDIT: It only happens when they're attached to an element as a child ( even though they're attached to 2 different ones ).

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...