DgsGetMouseLeaveGUI

From Multi Theft Auto: Wiki

This function gets the DGS Dx GUI element that the cursor has just left from.

Syntax

bool dgsGetMouseLeaveGUI ( )

Returns

Returns a DGS Dx GUI element if the GUI element which the cursor has just left from exists, false otherwise.

Example

DGS = exports.dgs
-- create our button
button = DGS:dgsCreateButton( 0.7, 0.1, 0.2, 0.1, "Output!", true )

addEventHandler("onClientRender",root,function()
	local str = "Last Entered DGS Dx GUI Type :"
	local theType = "None"
	local dxgui = DGS:dgsGetMouseLeaveGUI ( )
	if isElement(dxgui) then
		theType = DGS:dgsGetType(dxgui)
	end
	dxDrawText(str..theType,400,400)
end)

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

Edit

Ellipse Detect Area

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Media Browser

Rounded Rectangle

Color Picker

Blur Box

Effect 3D