Rectangle Property


set the {rectangle | rect} of <object> to
<left>, <top>, <right>, <bottom> Applies to all objects, backgrounds, card windows, message box, toolbar


The rectangle property determines or changes the size and location of an object. The rectangle property consists of four offsets, which are separated by commas and measured in pixels from the top-left corner of the current card (for objects) or of the screen (for the toolbar and windows). The first and third numbers measure the horizontal offsets, the second and fourth numbers measure the vertical offsets. The rectangle property can be abbreviated rect.


The rectangle property can be used to move a button 50 pixels to the right of its present location. Create a button named "Test". Type the following lines into the Message Box: put the rectangle of button "test" into myRect add 100 to item 1 of myrect add 100 to item 3 of myrect set the rectangle of button "test" to myRect
This text has been mechanically extracted from the Oracle Media Objects MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.