Child pages
  • PRINTSLIDING

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Hidden
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE


HTML Table
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Constants Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#ALLOW_MOVE_X
Constant to be used when specifiying the print sliding for components.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#ALLOW_MOVE_Y
Constant to be used when specifiying the print sliding for components.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#GROW_HEIGHT
Constant to be used when specifiying the print sliding for components.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#GROW_WIDTH
Constant to be used when specifiying the print sliding for components.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#NO_SLIDING
Constant to be used when specifiying the print sliding for components.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#SHRINK_HEIGHT
Constant to be used when specifiying the print sliding for components.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#SHRINK_WIDTH
Constant to be used when specifiying the print sliding for components.

HTML Table
idconstant
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Constants Details
Table Body (tbody)
idALLOW_MOVE_X
classnode
Table Row (tr)
idname
Table Cell (td)
ALLOW_MOVE_X
Table Row (tr)
iddes
Table Cell (td)
Constant to be used when specifiying the print sliding for components.
The component will move horizontally to align with its left neighbor,
if that left neighbor moves or increases/decreases its size.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.newForm('printForm', '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();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idALLOW_MOVE_Y
classnode
Table Row (tr)
idname
Table Cell (td)
ALLOW_MOVE_Y
Table Row (tr)
iddes
Table Cell (td)
Constant to be used when specifiying the print sliding for components.
The component will move vertically to align with its top neighbor,
if that neighbor moves or increases/decreases its size.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.newForm('printForm', '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();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idGROW_HEIGHT
classnode
Table Row (tr)
idname
Table Cell (td)
GROW_HEIGHT
Table Row (tr)
iddes
Table Cell (td)
Constant to be used when specifiying the print sliding for components.
The component will increase its height to adapt its content, if
the content is too large.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.newForm('printForm', '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();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idGROW_WIDTH
classnode
Table Row (tr)
idname
Table Cell (td)
GROW_WIDTH
Table Row (tr)
iddes
Table Cell (td)
Constant to be used when specifiying the print sliding for components.
The component will increase its width to adapt its content, if the
content is too large.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.newForm('printForm', '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();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idNO_SLIDING
classnode
Table Row (tr)
idname
Table Cell (td)
NO_SLIDING
Table Row (tr)
iddes
Table Cell (td)
Constant to be used when specifiying the print sliding for components.
Makes the component not slide during printing. The component will
maintain its designtime location and size.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.newForm('printForm', '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();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idSHRINK_HEIGHT
classnode
Table Row (tr)
idname
Table Cell (td)
SHRINK_HEIGHT
Table Row (tr)
iddes
Table Cell (td)
Constant to be used when specifiying the print sliding for components.
The component will decrease its height to adapt its content, if
the content is too small.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.newForm('printForm', '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();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idSHRINK_WIDTH
classnode
Table Row (tr)
idname
Table Cell (td)
SHRINK_WIDTH
Table Row (tr)
iddes
Table Cell (td)
Constant to be used when specifiying the print sliding for components.
The component will decrease its width to adapt its content, if the
content is too small.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.newForm('printForm', '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();
Table Row (tr)
classlastDetailRow
Table Cell (td)