Jump to content

dx edit


Speak

Recommended Posts

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

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

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