GuiWindowIsSizable

From Multi Theft Auto: Wiki
Revision as of 16:03, 29 July 2018 by Myonlake (talk | contribs)
Jump to navigation Jump to search

This function checks if a GUI window is sizable.

Syntax

bool guiWindowIsSizable ( gui-window guiWindow )

Required Arguments

  • guiWindow: the window to check the sizable flag of

Returns

Returns true if the window is sizable, false if not, nil if an invalid window was provided.

Example

addEventHandler( "onClientResourceStart", resourceRoot,
    function( )
        local window = guiCreateWindow( 0.5, 0.5, 0.22, 0.22, "isSizable window", true )
        guiWindowSetSizable( window, false ) -- make it unsizable
        addCommandHandler( "isSizable",
            function( )
                local sizable = guiWindowIsSizable( window ) -- check the window sizable flag
                outputChatBox( "Window is " .. ( sizable and "sizable" or "unsizable" ) ) -- show info about the window
            end
        )
    end
)

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows

Input

GUI