Speak Posted December 20, 2013 Share Posted December 20, 2013 such as dash "|" that flashes within this edit function dxCreateEdit(x,y,width,height,text,relative,parent) if x and y and height and width and text then if relative then if parent then x = x*getElementData(parent,"x") y = y*getElementData(parent,"y") else x = x * sx y = y* sy end end local element = createElement("dxEdit") setElementParent(element,parent or dxRootElement) setElementData(element,"x",x) setElementData(element,"y",y) setElementData(element,"width",width) setElementData(element,"height",height) setElementData(element,"text",text) setElementData(element,"parent",parent) setElementData(element,"state","normal") setElementData(element,"font","default") addEventHandler("onClientDXClick",element,moveCursor) return element else outputDebugString("ERROR: expected arguments are missing (dxCreateEdit)") end end quando clicar na edit aparece um traço como esse "|" Link to comment
K4stic Posted December 20, 2013 Share Posted December 20, 2013 Not Avaible any Event handler with name 'onClientDXClick' avaible 'onClientGUIClick' Link to comment
myonlake Posted December 20, 2013 Share Posted December 20, 2013 You can use getTickCount function and make a line flash in and out for a certain amount of time. Also make sure you calculate the width properly so it shows in the right position. Not Avaible any Event handler with name 'onClientDXClick' avaible 'onClientGUIClick' He has a custom event for that. 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