GuiScrollPaneSetScrollBars: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: {{Client function}} __NOTOC__ This function allows a scrollpane's scrollbars to be forced '''on''', or returned to default. ==Syntax== <syntaxhighlight lang="lua"> element guiScrollPaneSetScrollBars(el...)
 
 
(6 intermediate revisions by 5 users not shown)
Line 5: Line 5:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
element guiScrollPaneSetScrollBars(element scrollPane, bool horizontal, bool vertical)
bool guiScrollPaneSetScrollBars ( element scrollPane, bool horizontal, bool vertical )
</syntaxhighlight>  
</syntaxhighlight>  


Line 14: Line 14:


===Returns===
===Returns===
Returns ''true'' if the call was successfully, ''false'' otherwise.


==Example==  
==Example==  
This example just checks to see if the scrollpane is created then sets the scrollbars. (TESTED!)
<syntaxhighlight lang="lua">scrollpane = guiCreateScrollPane(332,195,286,249,false)
if(scrollpane)then
guiScrollPaneSetScrollBars(scrollpane,true,true)
end</syntaxhighlight>


==See Also==
==See Also==
{{GUI functions}}
{{GUI functions}}
[[Category:Incomplete]]
{{GUI_events}}

Latest revision as of 14:19, 20 May 2018

This function allows a scrollpane's scrollbars to be forced on, or returned to default.

Syntax

bool guiScrollPaneSetScrollBars ( element scrollPane, bool horizontal, bool vertical )

Required Arguments

  • scrollPane: the GUI scrollpane element you want to set the scrollbars of.
  • horizontal: A bool where true forces the horizontal scrollbar on, and false returns them to default.
  • vertical: A bool where true forces the vertical scrollbar on, and false returns them to default.

Returns

Returns true if the call was successfully, false otherwise.

Example

This example just checks to see if the scrollpane is created then sets the scrollbars. (TESTED!)

scrollpane = guiCreateScrollPane(332,195,286,249,false)

if(scrollpane)then
	guiScrollPaneSetScrollBars(scrollpane,true,true)
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