DgsWindowGetCloseButtonSize

From Multi Theft Auto: Wiki

This functions gets the size of dgs-dxwindow close(off) button.

Syntax

bool dgsWindowGetCloseButtonSize( element dgsElement [, bool relative ] )

Required Arguments

  • dgsElement: The DGS window element you wish to get close button size.

Optional Arguments

  • relative: This is whether sizes and positioning are relative. If this is true, then all width,height floats must be between 0 and 1, representing sizes/positions as a fraction of the window size. If false, then the size and co-ordinates are based on client's resolution.

Returns

Returns two floats, which indicate the length and height of the close button

Example

DGS = exports.dgs
local dgsWindow = DGS:dgsCreateWindow(200,200,400,400,"dgs window",false)
local width,height = DGS:dgsWindowGetCloseButtonSize(dgsWindow,false)
outputChatBox("width:"..width.."; height:"..height)

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