OnDgsElementRender: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client event}} This event is triggered every time after a dgs element renders with property renderEventCall. ==Parameters== ''None'' ==Source== The source i...")
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client event}}  
{{Client event}}  
This event is triggered every time after a dgs element renders with property [[renderEventCall]].
This event is triggered every time after a dgs element renders with property [[DGS_General_Basic_Properties#renderEventCall]].


==Parameters==
==Parameters==

Revision as of 05:31, 16 October 2018

This event is triggered every time after a dgs element renders with property DGS_General_Basic_Properties#renderEventCall.

Parameters

None

Source

The source is the dgs element that renders.

Example

DGS = exports.dgs
window = DGS:dgsCreateWindow(200,200,500,200,"test",false)
dgsSetProperty(window,"renderEventCall",true)

function drawAboveWindow ()
	local x,y = DGS:dgsGetPosition(window,false)
	dxDrawRectangle(x,y,500,200,tocolor(0,0,0,200),true) -- POSTGUI is always set to true
end
addEventHandler ( "onDgsElementRender", window, drawAboveWindow )

See Also

DGS events

General

Check Box

Combo Box

Drag'N Drop

Edit

Grid List

Menu

Selector

Mouse

Radio Button

Switch Button

Tab

Animation

Plugin

Media

Color Picker

QRCode

Remote Image

Client event functions