CAL Box Manipulation Commands

To work with a box or subform on the form, you specify a keyword followed by a box identifier. A box is identified in one of two ways:

  • By point--Give the coordinates of a point anywhere within the box. When coordinates fall in more than one box, the most recently created box is used.
  • By text--Give a string that matches the text associated with the box (fieldname, static text, filename, or scriptname). The identifier string does not need to match the entire box text, but must match at least the first part of it.
Command Description
FORMEDIT ON|OFF Controls the behavior of the SELECT command. With FORMEDIT ON, SELECT affects boxes. With FORMEDIT OFF, SELECT affects the contents of those boxes.ontrols the behavior of the SELECT command. With FORMEDIT ON, SELECT affects boxes. With FORMEDIT OFF, SELECT affects the contents of those boxes.
SELECT box/ 
UNSELECT box
Choose boxes to be modified by editing operations.
DELBOX box Shortcut for FORMEDIT ON, followed by SELECT, followed by Edit Clear.
SETFIELD box fieldname Connects a database field to an existing box; for a button, it attaches a script name (see above regarding script names). 
SETTEXT box text Attaches a text string to a box or replaces the one currently attached; see box creation commands (above) for a list of what the text strings mean for various box types.
ACTIVATE subform/ DEACTIVATE The same as SELECT and UNSELECT, but work on subforms. 
SCALE Scales all items in the current form by the percentage factor you specify. Use this to fit your forms to different size screens.
SCALE TO FIT Scales all elements in the form such that the string you specify will fit in the form at the currently selected font size. See FONT.

Examples

Command Action
SELECT 11 11 Select formula frame created above.
SELECT formu Select formula data box created above.
SETFIELD 21 21 molweight Change field for formula data box to molweight.


2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email   info@cambridgesoft.com
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA