DgsWindowSetCloseButtonSize

From Multi Theft Auto: Wiki

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

Syntax

bool dgsWindowSetCloseButtonSize( element dgsElement, int width, int height[, bool relative] )

Required Arguments

  • dgsElement: The DGS window element you wish to set close button size.
  • width: A float of the width of the close button. This is affected by the relative argument.
  • height: A float of the height of the close button. This is affected by the relative argument.

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, accessible using guiGetScreenSize.

Returns

Returns true if successful, false otherwise.

Example

DGS = exports.dgs
local dgsWindow = DGS:dgsCreateWindow(200,200,400,400,"dgs window",false)
DGS:dgsWindowSetCloseButtonSize(dgsWindow,5,5,true)

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

Custom Renderer

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

Nine Slice

Object Preview

QRCode

mask