"horizontalScrollBarPolicy" / "hScrollBarMode"
The attribute "horizontalScrollBarPolicy"; sets the horizontal scroll bar mode of an object, for example, textEdit, tree widget or a table. (Until Version 3.10 "hScrollBarMode")
Synopsis
setValue(string shape, "horizontalScrollBarPolicy", string
scMode);
getValue( string shape, "horizontalScrollBarPolicy", string &
ScMode);
shape.horizontalScrollBarPolicy( string scMode);
Parameter
Parameter | Description |
---|---|
shape | Name of the object |
scMode |
The scroll bar mode: Possible modes for horizontalScrollBarPolicy:
Possible modes for hScrollBarMode: "Auto" (horizontal scroll bar is automatically shown if the text cannot be displayed in the visible area) Default mode. "AlwaysOff" (horizontal scroll bar is never displayed) "AlwaysOn" (horizontal scroll bar is always shown) |
Description
The attribute "horizontalScrollBarPolicy" sets the horizontal scroll bar mode of an object , for example, textEdit, tree widget or a table.
Example
In the following example the horizontal scroll bar mode of a textEdit is set to "ScrollBarAlwaysOn".
main(bool enter)
{
string sn = "TEXT_EDIT1";
string scrM = "ScrollBarAlwaysOn"
string scV;
this.horizontalScrollBarPolicy(scrM);
getValue(sn,"horizontalScrollBarPolicy",scV);
DebugN("Scroll bar mode",scV);
}
Assignment
TextEdit, Table, Tree widget, DpTreeView