KaMeR Posted January 18, 2008 Share Posted January 18, 2008 why it doesnt work? size doesnt change WindowForm = guiCreateWindow ( 0.15, 0.2, 0.60, 0.50, "GUI", true ) editX = guiCreateEdit( 0.1, 0.5, 0.10, 0.06, "0.1", true, WindowForm ) editY = guiCreateEdit( 0.1, 0.6, 0.10, 0.06, "0.2", true, WindowForm ) button = guiCreateButton( 0.1, 0.2, 0.15, 0.06, "B TEST", true, WindowForm ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function () if (source == button) then local textX = guiSetText ( editX ) local textY = guiSetText ( editY ) guiSetSize ( WindowForm, textX, textY, true ) end end ) btw is any gui editor? Link to comment
eAi Posted January 18, 2008 Share Posted January 18, 2008 I don't know, but you know you can attach events to single elements, avoiding the need for your 'if ( source == button) then' check. Link to comment
lil Toady Posted January 19, 2008 Share Posted January 19, 2008 local textX = guiSetText ( editX ) local textY = guiSetText ( editY ) You probably meant guiGetText? Link to comment
KaMeR Posted January 19, 2008 Author Share Posted January 19, 2008 i just want sizes from editboxes to form Link to comment
ryden Posted January 19, 2008 Share Posted January 19, 2008 http://development.mtasa.com/index.php?title=GuiGetText 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