DgsGetMouseLeaveGUI

From Multi Theft Auto: Wiki

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

Syntax

element dgsGetMouseLeaveGUI ( )

Returns

Returns an existing DGS element that the the cursor has just left from, 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

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Blur Box

Color Picker

Canvas

Effect 3D

Media Browser

Mask

Nine Slice

Object Preview Supports

QRCode

Remote Image

Rounded Rectangle