Page History
Wiki Markup |
---|
{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{hidden} {sub-section:description|text=}{sub-section}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#ALL] Constant to be used when specifying anchoring for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#DEFAULT] Constant to be used when specifying anchoring for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#EAST] Constant to be used when specifying anchoring for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#NORTH] Constant to be used when specifying anchoring for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#SOUTH] Constant to be used when specifying anchoring for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#WEST] Constant to be used when specifying anchoring for components.{td}{tr}{tbody}{table}\\ {table:id=constant|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=ALL|class=node}{tr:id=name}{td}h6.ALL{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:ALL_des|trigger=button|text=}{sub-section}{sub-section:ALL_des|trigger=none|class=sIndent}ConstantReplace to be used when specifying anchoring for components. Makes the component anchored on all sides. This means that the component will keep a constant distance from all sides of the window and will grow/shrink as the window is resized.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ALL_sncwith description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ALL_snc|trigger=button|text=}{sub-section}{sub-section:ALL_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ALL_prs|trigger=button|text=}{sub-section}{sub-section:ALL_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ALL_ret|trigger=button|text=}{sub-section}{sub-section:ALL_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ALL_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:ALL_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ALL_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:ALL_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ALL_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:ALL_sam|trigger=none}{code:language=javascript} var form = solutionModel.newForm('mediaForm', 'db:/example_data/parent_table', null, false, 400, 300); var strechAllDirectionsLabel = form.newLabel('Strech all directions', 10, 10, 380, 280); strechAllDirectionsLabel.background = 'red'; strechAllDirectionsLabel.anchors = SM_ANCHOR.ALL; {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DEFAULT|class=node}{tr:id=name}{td}h6.DEFAULT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:DEFAULT_des|trigger=button|text=}{sub-section}{sub-section:DEFAULT_des|trigger=none|class=sIndent}ConstantReplace to be used when specifying anchoring for components. It is equivalent to a combination of NORTH and WEST anchoring.{sub-section}{td}{tr}{with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:DEFAULT_snc|trigger=button|text=}{sub-section}{sub-section:DEFAULT_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DEFAULT_prs|trigger=button|text=}{sub-section}{sub-section:DEFAULT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DEFAULT_ret|trigger=button|text=}{sub-section}{sub-section:DEFAULT_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DEFAULT_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DEFAULT_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DEFAULT_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_sam|trigger=none}{code:language=javascript} var form = solutionModel.newForm('mediaForm', 'db:/example_data/parent_table', null, false, 400, 300); var stickToTopLeftCornerLabel = form.newLabel('Stick to top-left corner', 10, 10, 200, 100); stickToTopLeftCornerLabel.background = 'orange'; stickToTopLeftCornerLabel.anchors = SM_ANCHOR.DEFAULT; {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EAST|class=node}{tr:id=name}{td}h6.EAST{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:EAST_des|trigger=button|text=}{sub-section}{sub-section:EAST_des|trigger=none|class=sIndent}ConstantReplace to be used when specifying anchoring for components. Makes the component anchored to the right side of the window, which means that the component will keep a constant distance from the right side of the window. If WEST anchoring is also enabled, then the component will grow/shrink as the window is horizontally resized. This constant is used also for setting tab orientation on tab panels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:EAST_snc|trigger=button|text=}{sub-section}{sub-section:EAST_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:EAST_prs|trigger=button|text=}{sub-section}{sub-section:EAST_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:EAST_ret|trigger=button|text=}{sub-section}{sub-section:EAST_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EAST_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:EAST_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EAST_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:EAST_link|trigger=none}{sub-section}{div}{with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:EAST_snc|trigger=button|text=}{sub-section}{sub-section:EAST_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:EAST_samprs|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:EAST_sam|trigger=none}{code:language=javascript} var form = solutionModel.newForm('mediaForm', 'db:/example_data/parent_table', null, false, 400, 300); var strechHorizontallyLabel = form.newLabel('Strech horizontally', 10, 10, 380, 140); strechHorizontallyLabel.background = 'blue'; strechHorizontallyLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST | SM_ANCHOR.EAST; var stickToBottomRightCornerLabel = form.newLabel('Stick to bottom-right corner', 190, 190, 200, 100); stickToBottomRightCornerLabel.background = 'pink'; stickToBottomRightCornerLabel.anchors = SM_ANCHOR.SOUTH | SM_ANCHOR.EAST; {code_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:EAST_ret|trigger=button|text=}{sub-section}{sub-section:EAST_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EAST_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:EAST_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{trbuilder-show:classpermission=lastDetailRowedit}{tdtr:id=link}{td}{tr}{tbody}{tbody:id=NORTH|class=node}{tr:id=name}{td}h6.NORTH{td}{tr*External links*\\{sub-section:EAST_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:EAST_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=dessam}{td}*Sample*\\{sub-section:NORTHEAST_dessam|trigger=button|text=}{sub-section}{sub-section:NORTH_des|trigger=none|class=sIndent}Constant to be used when specifying anchoring for components. Makes the component anchored to the top side of the window, which means that the component will keep a constant distance from the top side of the window. If SOUTH anchoring is also enabled, then the component will grow/shrink as the window is vertically resized. This constant is used also for setting tab orientation on tab panels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:NORTH_snc|trigger=button|text=}{sub-section}{sub-section:NORTH_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:NORTH_prs|trigger=button|text=}{sub-section}{sub-section:NORTH_prs|trigger=none|class=sIndent}{sub-sectiondiv:class=sIndent}{sub-section:EAST_sam|trigger=none}{code:language=javascript} var form = solutionModel.newForm('mediaForm', 'db:/example_data/parent_table', null, false, 400, 300); var strechHorizontallyLabel = form.newLabel('Strech horizontally', 10, 10, 380, 140); strechHorizontallyLabel.background = 'blue'; strechHorizontallyLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST | SM_ANCHOR.EAST; var stickToBottomRightCornerLabel = form.newLabel('Stick to bottom-right corner', 190, 190, 200, 100); stickToBottomRightCornerLabel.background = 'pink'; stickToBottomRightCornerLabel.anchors = SM_ANCHOR.SOUTH | SM_ANCHOR.EAST; {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{builder-showtbody}{trtbody:id=ret}{td}*Returns*\\{sub-section:NORTH_ret|trigger=button|text=}{sub-section}{sub-section:NORTH_ret|trigger=none|class=sIndent}[Number]{sub-section}class=node}{tr:id=name}{td}h6.NORTH{td}{tr}{builder-show:permission=edit}{tr:id=seedes}{td}*Also see*\\{sub-section:NORTH_seedes|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:NORTH_seedes|trigger=none|class=sIndent}Replace with description{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksnc}{td}*External linksSince*\\{sub-section:NORTH_linksnc|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:NORTH_linksnc|trigger=none|class=sIndent} Replace with version info{sub-section}{divtd}{tdtr}{trbuilder-show}{builder-show:permission=edit}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:NORTH_samprs|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:NORTH_samprs|trigger=none}{code:language=javascript} var form = solutionModel.newForm('mediaForm', 'db:/example_data/parent_table', null, false, 400, 300); var strechVerticallyLabel = form.newLabel('Strech vertically', 10, 10, 190, 280); strechVerticallyLabel.background = 'green'; strechVerticallyLabel.anchors = SM_ANCHOR.WEST | SM_ANCHOR.NORTH | SM_ANCHOR.SOUTH; var stickToTopLeftCornerLabel = form.newLabel('Stick to top-left corner', 10, 10, 200, 100); stickToTopLeftCornerLabel.background = 'orange'; stickToTopLeftCornerLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST; {code|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:NORTH_ret|trigger=button|text=}{sub-section}{sub-section:NORTH_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:NORTH_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:NORTH_see|trigger=none}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=SOUTH|class=node}{tr:id=name}{td}h6.SOUTH}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:NORTH_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:NORTH_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=des}{td}{sub-section:SOUTH_des|trigger=button|text=}{sub-section}sam}{td}*Sample*\\{sub-section:SOUTH_des|trigger=none|class=sIndent}Constant to be used when specifying anchoring for components. Makes the component anchored to the bottom side of the window, which means that the component will keep a constant distance from the bottom side of the window. If NORTH anchoring is also enabled, then the component will grow/shrink as the window is vertically resized. This constant is used also for setting tab orientation on tab panels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:SOUTH_snc|trigger=button|text=}{sub-section}{sub-section:SOUTH_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:SOUTH_prs|trigger=button|text=}{sub-section}{sub-section:SOUTH_prs|trigger=none|class=sIndent}{sub-section}NORTH_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:NORTH_sam|trigger=none}{code:language=javascript} var form = solutionModel.newForm('mediaForm', 'db:/example_data/parent_table', null, false, 400, 300); var strechVerticallyLabel = form.newLabel('Strech vertically', 10, 10, 190, 280); strechVerticallyLabel.background = 'green'; strechVerticallyLabel.anchors = SM_ANCHOR.WEST | SM_ANCHOR.NORTH | SM_ANCHOR.SOUTH; var stickToTopLeftCornerLabel = form.newLabel('Stick to top-left corner', 10, 10, 200, 100); stickToTopLeftCornerLabel.background = 'orange'; stickToTopLeftCornerLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST; {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=SOUTH|class=node}{tr:id=name}{td}h6.SOUTH{td}{tr}{builder-show:permission=edit}{tr:id=retdes}{td}*Returns*\\{sub-section:SOUTH_retdes|trigger=button|text=}{sub-section}{sub-section:SOUTH_retdes|trigger=none|class=sIndent}[Number]Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=seesnc}{td}*Also seeSince*\\{sub-section:SOUTH_seesnc|trigger=button|text=}{sub-section}{div:class=sIndent-section}{sub-section:SOUTH_seesnc|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkprs}{td}*External linksParameters*\\{sub-section:SOUTH_linkprs|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:SOUTH_linkprs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=samret}{td}*SampleReturns*\\{sub-section:SOUTH_samret|trigger=button|text=}|text=}{sub-section}{sub-section:SOUTH_ret|trigger=none|class=sIndent}[Number]{sub-section}{div:class=sIndenttd}{tr}{subbuilder-section:SOUTH_sam|trigger=noneshow:permission=edit}{codetr:languageid=javascript} var form = solutionModel.newForm('mediaForm', 'db:/example_data/parent_table', null, false, 400, 300); var strechVerticallyLabel = form.newLabel('Strech vertically', 10, 10, 190, 280); strechVerticallyLabel.background = 'green'; strechVerticallyLabel.anchors = SM_ANCHOR.WEST | SM_ANCHOR.NORTH | SM_ANCHOR.SOUTH; var stickToBottomRightCornerLabel = form.newLabel('Stick to bottom-right corner', 190, 190, 200, 100); stickToBottomRightCornerLabel.background = 'pink'; stickToBottomRightCornerLabel.anchors = SM_ANCHOR.SOUTH | SM_ANCHOR.EAST; {codesee}{td}*Also see*\\{sub-section:SOUTH_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:SOUTH_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:SOUTH_link|trigger=button|text=}{sub-section}{div:class=sIndent}{tdsub-section:SOUTH_link|trigger=none}{trsub-section}{tr:class=lastDetailRowdiv}{td}{td}{tr}{tbody}{tbody:id=WEST|class=nodebuilder-show}{tr:id=namesam}{td}h6.WEST{td}{tr}{tr:id=des}{td}{*Sample*\\{sub-section:SOUTH_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:WESTSOUTH_dessam|trigger=button|text=}{sub-section}{sub-section:WEST_des|trigger=none|class=sIndent}Constant to be used when specifying anchoring for components. Makes the component anchored to the left side of the window, which means that the component will keep a constant distance from the left side of the window. If EAST anchoring is also enabled, then the component will grow/shrink as the window is vertically resized. This constant is used also for setting tab orientation on tab panels.none}{code:language=javascript} var form = solutionModel.newForm('mediaForm', 'db:/example_data/parent_table', null, false, 400, 300); var strechVerticallyLabel = form.newLabel('Strech vertically', 10, 10, 190, 280); strechVerticallyLabel.background = 'green'; strechVerticallyLabel.anchors = SM_ANCHOR.WEST | SM_ANCHOR.NORTH | SM_ANCHOR.SOUTH; var stickToBottomRightCornerLabel = form.newLabel('Stick to bottom-right corner', 190, 190, 200, 100); stickToBottomRightCornerLabel.background = 'pink'; stickToBottomRightCornerLabel.anchors = SM_ANCHOR.SOUTH | SM_ANCHOR.EAST; {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=WEST|class=node}{tr:id=name}{td}h6.WEST{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:WEST_des|trigger=button|text=}{sub-section}{sub-section:WEST_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:WEST_snc|trigger=button|text=}{sub-section}{sub-section:WEST_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:WEST_prs|trigger=button|text=}{sub-section}{sub-section:WEST_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:WEST_ret|trigger=button|text=}{sub-section}{sub-section:WEST_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:WEST_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:WEST_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:WEST_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:WEST_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:WEST_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:WEST_sam|trigger=none}{code:language=javascript} var form = solutionModel.newForm('mediaForm', 'db:/example_data/parent_table', null, false, 400, 300); var strechHorizontallyLabel = form.newLabel('Strech horizontally', 10, 10, 380, 140); strechHorizontallyLabel.background = 'blue'; strechHorizontallyLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST | SM_ANCHOR.EAST; var stickToTopLeftCornerLabel = form.newLabel('Stick to top-left corner', 10, 10, 200, 100); stickToTopLeftCornerLabel.background = 'orange'; stickToTopLeftCornerLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST; {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |
Overview
Content Tools
Activity