Child pages
  • PRINTSLIDING

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

padding0px
width80px

...

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Constants Summary

...

Table Cell (td)
Number

...

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.
Enter additional information related to this 'class' inside the {div} macro with 'id=description'
Divcache
styleindexdisplay:none

...

iddescription

...

true
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClient

servoy sSummary12%30%58%height: 30px;3Constants SummaryConstant to be used when specifiying the print sliding for components.

...

Table Cell (td)
Number
Constant to be used when specifiying the print sliding for components.

...

Table Cell (td)
Number

...

...

Constant to be used when specifiying the print sliding for components.

...

Table Cell (td)
Number

...

Constant to be used when specifiying the print sliding for components.

...

Table Cell (td)
Number

...

Constant to be used when specifiying the print sliding for components.

...

Table Cell (td)
Number

...

Constant to be used when specifiying the print sliding for components.

...

Table Cell (td)
Number

...

Constant to be used when specifiying the print sliding for components.

...

...

constant

...

servoy sDetail

...

padding0px
width100%

...

2100%height:30px

...

colspan1

...

2Constants Details

...

ALLOW_MOVE_X

...

name

...

ALLOW_MOVE_X

...

...

des

...

sIndent
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.

...

ret

...

Returns

...

sIndentclients

...

Supported Clients

sIndent

...

idsam

...

classlastDetailRow

...

SmartClient,WebClientsam

Sample

...

classsIndent

...

Code Block
languagejavascript
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();
sIdentjavascriptlastDetailRowALLOW_MOVE_Y

...

name

...

ALLOW_MOVE_Y

...

des

...

sIndent
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.

...

ret

...

Returns

...

sIndentclients

...

Supported Clients

sIndent

...

SmartClient,WebClientsam

...

classlastDetailRow

...

idGROW_HEIGHT

...

idname

...

Sample

...

classsIndent

...

Code Block
languagejavascript
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();

...

sIdentjavascriptlastDetailRowGROW_HEIGHTname

GROW_HEIGHT

...

des

...

sIndent
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.

...

ret

...

Returns

...

sIndentclients

...

Supported Clients

sIndent

...

idsam

...

classlastDetailRow

...

idGROW_WIDTH
Table Row (tr)
idname
Table Cell (td)
GROW_WIDTH
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
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();

...

classlastDetailRow

...

idNO_SLIDING
Table Row (tr)
idname
Table Cell (td)
NO_SLIDING
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
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();

...

classlastDetailRow

...

idSHRINK_HEIGHT
Table Row (tr)
idname
Table Cell (td)
SHRINK_HEIGHT
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
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();

...

classlastDetailRow

...

idSHRINK_WIDTH
Table Row (tr)
idname
Table Cell (td)
SHRINK_WIDTH
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
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();

...

classlastDetailRow

...

SmartClient,WebClientsam

Sample

...

classsIndent

...

Code Block
languagejavascript
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();
sIdentjavascriptlastDetailRowGROW_WIDTHname

GROW_WIDTH

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
NO_SLIDINGname

NO_SLIDING

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
SHRINK_HEIGHTname

SHRINK_HEIGHT

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
SHRINK_WIDTHname

SHRINK_WIDTH

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow