"margin" - obsolete with version 3.12
The attribute "margin" specifies the distance between the innermost pixel of the frame and the outermost pixel of the rectangle inside the frame.
Synopsis
setValue(string shape,"margin", int mWidth);
getValue(string shape,"margin",int &mWidth);
this.margin(int mwidth);
Parameter
Parameter | Description |
---|---|
shape | Name of the object |
mWidth | The width of the margin |
Description
The attribute "margin"; specifies the distance between the innermost pixel of the frame and the outermost pixel of the rectangle inside the frame.
Example
In the following example the margin is set to 20.
main(bool enter)
{
string objT = "TEXT_EDIT1";
int mVal = 20;
setValue(objT,"margin",mVal);
/* margin = 20. For thumb wheel , for example, margin = 6 */
int mwid;
getValue(objT,"margin",mwid);
DebugN("Margin width", mwid);
}
Assignment
TextEdit, Thumb wheel, Progress bar, Tree Widget, Zoom Navigator, DpTreeView