DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR
{column:width=80px|padding=0px}{column}{column}{column}
Constants Summary
ALLOW_MOVE_X
Constant to be used when specifiying the print sliding for components.
ALLOW_MOVE_Y
Constant to be used when specifiying the print sliding for components.
GROW_HEIGHT
Constant to be used when specifiying the print sliding for components.
GROW_WIDTH
Constant to be used when specifiying the print sliding for components.
NO_SLIDING
Constant to be used when specifiying the print sliding for components.
SHRINK_HEIGHT
Constant to be used when specifiying the print sliding for components.
SHRINK_WIDTH
Constant to be used when specifiying the print sliding for components.
{column:width=100%|padding=0px}{column}
Constants Details
Sample
var form = solutionModel.newForm('printForm', 'db:/example_data/parent_table', null, false, 400, 300); var growHorizLabel = form.newLabel('Grow horizontal -- long text', 10, 30, 30, 20); growHorizLabel.printSliding = SM_PRINT_SLIDING.GROW_WIDTH; growHorizLabel.background = 'blue'; var moveHorizRightLabel = form.newLabel('Move horizontal right', 50, 30, 100, 20); moveHorizRightLabel.printSliding = SM_PRINT_SLIDING.ALLOW_MOVE_X; moveHorizRightLabel.background = 'pink'; var shrinkHorizLabel = form.newLabel('Short', 10, 50, 100, 20); shrinkHorizLabel.printSliding = SM_PRINT_SLIDING.SHRINK_WIDTH; shrinkHorizLabel.background = 'green'; var moveHorizLeftLabel = form.newLabel('Move horizontal left', 100, 50, 150, 20); moveHorizLeftLabel.printSliding = SM_PRINT_SLIDING.ALLOW_MOVE_X; moveHorizLeftLabel.background = 'magenta'; forms['printForm'].controller.showPrintPreview();
Sample
var form = solutionModel.newForm('printForm', 'db:/example_data/parent_table', null, false, 400, 300); var growVertLabel = form.newLabel('Grow vertical', 10, 70, 100, 5); growVertLabel.printSliding = SM_PRINT_SLIDING.GROW_HEIGHT; growVertLabel.background = 'orange'; var moveVertDownLabel = form.newLabel('Move vertical down', 10, 75, 100, 20); moveVertDownLabel.printSliding = SM_PRINT_SLIDING.ALLOW_MOVE_Y; moveVertDownLabel.background = 'cyan'; var shrinkVertLabel = form.newLabel('Shrink vertical', 10, 110, 100, 40); shrinkVertLabel.printSliding = SM_PRINT_SLIDING.SHRINK_HEIGHT; shrinkVertLabel.background = 'yellow'; var moveVertUpLabel = form.newLabel('Move vertical up', 10, 160, 100, 20); moveVertUpLabel.printSliding = SM_PRINT_SLIDING.ALLOW_MOVE_Y; moveVertUpLabel.background = 'purple'; forms['printForm'].controller.showPrintPreview();
Sample
var form = solutionModel.newForm('printForm', 'db:/example_data/parent_table', null, false, 400, 300); var growVertLabel = form.newLabel('Grow vertical', 10, 70, 100, 5); growVertLabel.printSliding = SM_PRINT_SLIDING.GROW_HEIGHT; growVertLabel.background = 'orange'; forms['printForm'].controller.showPrintPreview();
Sample
var form = solutionModel.newForm('printForm', 'db:/example_data/parent_table', null, false, 400, 300); var growHorizLabel = form.newLabel('Grow horizontal -- long text', 10, 30, 30, 20); growHorizLabel.printSliding = SM_PRINT_SLIDING.GROW_WIDTH; growHorizLabel.background = 'blue'; forms['printForm'].controller.showPrintPreview();
Sample
var form = solutionModel.newForm('printForm', 'db:/example_data/parent_table', null, false, 400, 300); var noSlidingLabel = form.newLabel('No sliding -- long text', 10, 10, 30, 20); noSlidingLabel.printSliding = SM_PRINT_SLIDING.NO_SLIDING; noSlidingLabel.background = 'red'; forms['printForm'].controller.showPrintPreview();
Sample
var form = solutionModel.newForm('printForm', 'db:/example_data/parent_table', null, false, 400, 300); var shrinkVertLabel = form.newLabel('Shrink vertical', 10, 110, 100, 40); shrinkVertLabel.printSliding = SM_PRINT_SLIDING.SHRINK_HEIGHT; shrinkVertLabel.background = 'yellow'; forms['printForm'].controller.showPrintPreview();
Sample
var form = solutionModel.newForm('printForm', 'db:/example_data/parent_table', null, false, 400, 300); var shrinkHorizLabel = form.newLabel('Short', 10, 50, 100, 20); shrinkHorizLabel.printSliding = SM_PRINT_SLIDING.SHRINK_WIDTH; shrinkHorizLabel.background = 'green'; forms['printForm'].controller.showPrintPreview();