
BBjSysGui::setScale
Description
In BBj 15.0 and higher, this method sets the scale used for controls created on the SYSGUI device.
Syntax
Return Value |
Method |
void |
setScale(number x, number y) |
Parameters
Variable |
Description |
x |
X-axis multiplier. |
y |
Y-axis multiplier. |
Return Value
None.
Remarks
This is equivalent to the SCALE mnemonic.
Example
rem ' BBjSysGui::setScale sysgui = unt open (sysgui)"X0" sysgui! = bbjapi().getSysGui() sysgui!.setScale(2,2) print "getScale:",sysgui!.getScaleX(),sysgui!.getScaleY() title$ = "BBjSysGui::setScale" window! = sysgui!.addWindow(100,100,150,125,title$,$00090003$) window!.setCallback(window!.ON_CLOSE,"eoj") window!.addButton(1,25,25,100,25,"OK",$$) window!.addEditBox(101,25,75,100,25,"Edit",$$) process_events eoj: release |
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.