OnDgsMouseStay

From Multi Theft Auto: Wiki
Revision as of 11:01, 24 December 2022 by Thisdp (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is fired when the cursor first stays at a DGS element without moving for a period.

Parameters

int absoluteX, int absoluteY, element leftGUI
  • absoluteX: the X position of the mouse cursor, in pixels, measured from the left side of the screen.
  • absoluteY: the Y position of the mouse cursor, in pixels, measured from the top of the screen.

Source

The source of this event is the DGS element that the cursor stays at.

Example

This example shows a message when the cursor first stays at a DGS element.

DGS = exports.dgs
label = DGS:dgsCreateLabel(200,200,300,50,"Test DGS Element",false)

addEventHandler( "onDgsMouseStay", label, function(aX, aY)
	outputChatBox( "Your cursor stays at a DGS element at ("..tostring(aX)..", "..tostring(aY)..")")
end)

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