Child pages
  • ALIGNMENT

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{hiddendiv:style=display:none}
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 EXTRACTAUTO CHANGES FROMUPDATE THE PAGECONTENT ANDTHROUGH MERGETHE THEM BACK INTO SERVOY SOURCE{hiddenDOC GENERATOR{div}
{sub-sectiondiv:id=description|text=}{sub-sectiondiv}\\ 

{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}[#BOTTOM]
Constant used for setting vertical alignment for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#CENTER]
Constant used for setting horizontal and vertical alignment
for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#DEFAULT]
Constant used for setting horizontal and vertical alignment.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#LEFT]
Constant used for setting horizontal alignment for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#RIGHT]
Constant used for setting horizontal alignment for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#TOP]
Constant used for setting vertical alignment 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=BOTTOM|class=node}{tr:id=name}{td}h6.BOTTOM{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:BOTTOM_des|trigger=button|text=}{sub-section}{sub-section:BOTTOM_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:BOTTOM_snc|trigger=button|text=}{sub-section}{sub-section:BOTTOM_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:BOTTOM_prs|trigger=button|text=}{sub-section}{sub-section:BOTTOM_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:BOTTOM_ret|trigger=button|text=}{sub-section}{sub-section:BOTTOM_ret|trigger=none|div:class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:BOTTOM_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:BOTTOM_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:BOTTOM_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:BOTTOM_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:BOTTOM_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:BOTTOM_sam|trigger=none}{code:language=javascript}
var bottomAlignedLabel = form.newLabel('BOTTOM', 520, 10, 50, 300);
bottomAlignedLabel.verticalAlignment = SM_ALIGNMENT.BOTTOM;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CENTER|class=node}{tr:id=name}{td}h6.CENTER{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:CENTER_des|trigger=button|text=}{sub-section}{sub-section:CENTER_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:CENTER_snc|trigger=button|text=}{sub-section}{sub-section:CENTER_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:CENTER_prs|trigger=button|text=}{sub-section}{sub-section:CENTER_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:CENTER_ret|trigger=button|text=}{sub-section}{sub-section:CENTER_ret|trigger=none|div:class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CENTER_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:CENTER_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CENTER_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:CENTER_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CENTER_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:CENTER_sam|trigger=none}{code:language=javascript}
var hCenteredLabel = form.newLabel('CENTER', 10, 40, 300, 20);
hCenteredLabel.horizontalAlignment = SM_ALIGNMENT.CENTER;
var vCenterAlignedLabel = form.newLabel('CENTER', 460, 10, 50, 300);
vCenterAlignedLabel.verticalAlignment = SM_ALIGNMENT.CENTER
{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}Replace 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|div: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 hLabel = myJSForm.getLabel('label_name');
if (hLabel.horizontalAlignment == SM_ALIGNMENT.LEFT) hLabel.horizontalAlignment = SM_ALIGNMENT.DEFAULT;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=LEFT|class=node}{tr:id=name}{td}h6.LEFT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:LEFT_des|trigger=button|text=}{sub-section}{sub-section:LEFT_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:LEFT_snc|trigger=button|text=}{sub-section}{sub-section:LEFT_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:LEFT_prs|trigger=button|text=}{sub-section}{sub-section:LEFT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:LEFT_ret|trigger=button|text=}{sub-section}{sub-section:LEFT_ret|trigger=none|div:class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:LEFT_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:LEFT_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:LEFT_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:LEFT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:LEFT_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:LEFT_sam|trigger=none}{code:language=javascript}
var leftAlignedLabel = form.newLabel('LEFT', 10, 10, 300, 20);
leftAlignedLabel.horizontalAlignment = SM_ALIGNMENT.LEFT;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=RIGHT|class=node}{tr:id=name}{td}h6.RIGHT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:RIGHT_des|trigger=button|text=}{sub-section}{sub-section:RIGHT_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:RIGHT_snc|trigger=button|text=}{sub-section}{sub-section:RIGHT_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:RIGHT_prs|trigger=button|text=}{sub-section}{sub-section:RIGHT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:RIGHT_ret|trigger=button|text=}{sub-section}{sub-section:RIGHT_ret|trigger=none|div:class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:RIGHT_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:RIGHT_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:RIGHT_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:RIGHT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:RIGHT_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:RIGHT_sam|trigger=none}{code:language=javascript}
var rightAlignedLabel = form.newLabel('RIGHT', 10, 70, 300, 20);
rightAlignedLabel.horizontalAlignment = SM_ALIGNMENT.RIGHT;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=TOP|class=node}{tr:id=name}{td}h6.TOP{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:TOP_des|trigger=button|text=}{sub-section}{sub-section:TOP_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:TOP_snc|trigger=button|text=}{sub-section}{sub-section:TOP_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:TOP_prs|trigger=button|text=}{sub-section}{sub-section:TOP_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:TOP_ret|trigger=button|text=}{sub-section}{sub-section:TOP_ret|trigger=none|div:class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:TOP_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:TOP_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:TOP_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:TOP_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:TOP_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:TOP_sam|trigger=none}{code:language=javascript}
var topAlignedLabel = form.newLabel('TOP', 400, 10, 50, 300);
topAlignedLabel.verticalAlignment = SM_ALIGNMENT.TOP;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}