OnDgsRender: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 13: | Line 13: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
DGS = exports.dgs | DGS = exports.dgs | ||
edit = DGS: | edit = DGS:dgsCreateEdit(200,200,500,200,"test",false) | ||
function drawAboveDGS () | function drawAboveDGS () | ||
dxDrawRectangle(200,200,500,200,tocolor(0,0,0,200),true) -- POSTGUI is always set to true | dxDrawRectangle(200,200,500,200,tocolor(0,0,0,200),true) -- POSTGUI is always set to true | ||
end | end | ||
addEventHandler ( " | addEventHandler ( "onDgsRender", root, drawAboveDGS ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 13:34, 20 January 2018
This event is triggered every time after dgs renders.
Parameters
None
Source
The source of this event is the client's root element.
Example
This example shows that we can draw a rectangle above dgs gui.
DGS = exports.dgs edit = DGS:dgsCreateEdit(200,200,500,200,"test",false) function drawAboveDGS () dxDrawRectangle(200,200,500,200,tocolor(0,0,0,200),true) -- POSTGUI is always set to true end addEventHandler ( "onDgsRender", root, drawAboveDGS )
See Also
DGS events
General
- onDgsBlur
- onDgsCreate
- onDgsCursorTypeChange
- onDgsCursorStateChange
- onDgsDestroy
- onDgsElementRender
- onDgsElementMove
- onDgsElementSize
- onDgsElementEnter
- onDgsElementLeave
- onDgsFocus
- onDgsKey
- onDgsPositionChange
- onDgsPreRender
- onDgsRender
- onDgsElementScroll
- onDgsSizeChange
- onDgsTextChange
- onDgsWindowClose
- onDgsPropertyChange
Check Box
Combo Box
Drag'N Drop
Edit
Grid List
Menu
Selector
Mouse
- onDgsMousePreClick
- onDgsMouseClick
- onDgsMouseClickDown
- onDgsMouseClickUp
- onDgsMouseDrag
- onDgsMouseDoubleClick
- onDgsMouseDoubleClickDown
- onDgsMouseDoubleClickUp
- onDgsMouseDown
- onDgsMouseHover
- onDgsMouseEnter
- onDgsMouseLeave
- onDgsMouseMultiClick
- onDgsMouseMove
- onDgsMouseStay
- onDgsMouseUp
- onDgsMouseWheel
Radio Button
Switch Button
Tab
Animation
Plugin
Media
- onDgsMediaPlay
- onDgsMediaPause
- onDgsMediaStop
- onDgsMediaLoaded
- onDgsMediaTimeUpdate
- onDgsMediaBrowserReturn
Color Picker
QRCode
Remote Image
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled