DgsWindowSetCloseButtonSize

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

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

Custom Cursor Functions

Multi Language Supports

Animation

3D Element

3D Interface

3D Line

3D Image

3D Text

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Drag'N Drop

Grid List

Image

Memo

Menu

Label

Layout

Line

Progress Bar

Radio Button

Scale Pane

Scroll Bar

Scroll Pane

Selector

Style

Switch Button

Tab Panel

Window

Plugin

Blur Box

Canvas

Chart

Circle

Color Picker

Effect 3D

Gradient

Mask

Media Browser

Nine Slice

Object Preview Supports

Paste Handler

QRCode

Remote Image

Rounded Rectangle

Screen Source

SVG

Tooltips