GuiWindowIsMovable

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

This function checks if a GUI window is movable.

Syntax

bool guiWindowIsMovable ( gui-window guiWindow )

Required Arguments

  • guiWindow: the window to check the movable flag of

Returns

Returns true if the window is movable, 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, "isMovable window", true )
        guiWindowSetMovable( window, false ) -- make it unmovable
        addCommandHandler( "isMovable",
            function( )
                local movable = guiWindowIsMovable( window ) -- check the window movable flag
                outputChatBox( "Window is " .. ( movable and "movable" or "unmovable" ) ) -- show info about the window
            end
        )
    end
)

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Fields

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows

GUI events