DgsGetMouseEnterGUI

From Multi Theft Auto: Wiki

This function gets the DGS Dx GUI element that the cursor is hovering on.

Syntax

bool dgsGetMouseEnterGUI ( )

Returns

Returns a DGS Dx GUI element if the cursor is hovering on a DGS Dx GUI that is enabled, 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 = "Current Entered DGS Dx GUI Type :"
	local theType = "None"
	local dxgui = DGS:dgsGetMouseEnterGUI ( )
	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