GuiScrollBarSetScrollPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: {{client function}} This function is used to set the scroll amount of a scrollbar as a percentage. ==Syntax== <syntaxhighlight lang="lua"> bool guiScrollBarSetPosition ( gui-scrollBar theScrollBar, floa...)
 
m (Syntax was incorrect, name of this page was.)
Line 4: Line 4:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool guiScrollBarSetPosition ( gui-scrollBar theScrollBar, float amount )
bool guiScrollBarSetScrollPosition ( gui-scrollBar theScrollBar, float amount )
</syntaxhighlight>
</syntaxhighlight>



Revision as of 17:39, 14 January 2008

This function is used to set the scroll amount of a scrollbar as a percentage.

Syntax

bool guiScrollBarSetScrollPosition ( gui-scrollBar theScrollBar, float amount )

Required Arguments

  • theScrollBar: The scrollbar you want to change the progress of
  • amount: a float ranging from 0 - 100 representing the amount you wish to set the scroll bar.

Returns

Returns true if the scroll position was successfully set, false otherwise.

Example

This page lacks an example

--add an example here

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

Catogory:Needs_Example