Child pages
  • RuntimeButton

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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 sSummerysSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property SummerySummary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#bgcolor]
Gets or sets the background color of a field.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#border]
Gets or sets the border attribute(s) of a specified element.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#enabled]
Gets or sets the enabled state of a specified field, also known as "grayed".{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#fgcolor]
Gets or sets the foreground color of a field.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#mnemonic#font]
GetsSets orthe setsfont thename, specified character(s) \- typically an underlined letter\- used with/without the modifier key(s) for the label, button or imagestyle, and size of an element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#text#imageURL]
Gets/Sets or sets the textimage thatdisplayed ison displayeda onbutton theor label,; buttonbased oron imageURL.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#toolTipText#mnemonic]
Gets or sets the tool tip text ofspecified character(s) \- typically an element; text displays when the mouse cursor hovers over an elementunderlined letter\- used with/without the modifier key(s) for the label, button or image.{td}{tr}{tbody}{tbody}{tr}{td}[BooleanString]{td}{td}[#transparent#rolloverImageURL]
Gets/Sets orthe setsimage thedisplayed transparencyon ofa anbutton element;or truelabel \-roll transparentover; falsebased \- not transparenton URL.{td}{tr}{tbody}{tbody}{tr}{td}[BooleanString]{td}{td}[#visible#text]
Gets or sets the visibilitytext ofthat anis element; true \- visible; false \- not visible; ! \- the visibility state is inverted (the opposite)displayed on the label, button or image.{td}{tr}{tbody}{tabletbody}\\ 

{table:id=|class=servoy sSummery{tr}{colgrouptd}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summery{th}{tr}{tbody}{tr}{td}[Number]{[String]{td}{td}[#getAbsoluteFormLocationY]\()
Returns the absolute form (designed) Y location#toolTipText]
Gets or sets the tool tip text of an element; text displays when the mouse cursor hovers over an element.{td}{tr}{tbody}{tbody}{tr}{td}[ObjectBoolean]{td}{td}[#getClientProperty#transparent]\(key)
Gets or sets the specifiedtransparency of clientan propertyelement; fortrue the\- elementtransparent; basedfalse on\- anot keytransparent.{td}{tr}{tbody}{tbody}{tr}{td}[StringBoolean]{td}{td}[#getDataProviderID]\()
Get the data provider this UI element (display) is showing#visible]
Gets or sets the visibility of an element; true \- visible; false \- not visible; ! \- the visibility state is inverted (the opposite).{td}{tr}{tbody}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[StringNumber]{td}{td}[#getElementType#getAbsoluteFormLocationY]\()
Returns the typeabsolute ofform a(designed) specifiedY elementlocation.{td}{tr}{tbody}{tbody}{tr}{td}[NumberObject]{td}{td}[#getHeight#getClientProperty]\(key)
ReturnsGets the specified client heightproperty offor the current elementelement based on a key.{td}{tr}{tbody}{tbody}{tr}{td}[NumberString]{td}{td}[#getLocationX#getDataProviderID]\()
ReturnsGet the x location of the current elementdata provider this UI element (display) is showing.{td}{tr}{tbody}{tbody}{tr}{td}[NumberString]{td}{td}[#getLocationY#getElementType]\()
Returns the ytype location of thea currentspecified element.{td}{tr}{tbody}{tbody}{tr}{td}[StringNumber]{td}{td}[#getName#getHeight]\()
Returns the nameheight of the ancurrent element.{td}{tr}{tbody}{tbody}{tr}{td}byte[Number]{td}{td}[#getThumbnailJPGImage#getLocationX]\(\[width\], \[height\])
Returns the x imagelocation of datathe incurrent element.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getWidth#getLocationY]\()
Returns the y widthlocation of the current element.{td}{tr}{tbody}{tbody}{tr}{td}void[String]{td}{td}[#putClientProperty#getName]\(key, value)
SetsReturns the valuename forof thean specified element client property key.{td}{tr}{tbody}{tbody}{tr}{td}voidbyte[]{td}{td}[#requestFocus#getThumbnailJPGImage]\(\[mustExecuteOnFocusGainedMethodwidth\], \[height\])
RequestReturns the image focusdata in this element.{td}{tr}{tbody}{tbody}{tr}{td}void[Number]{td}{td}[#setBorder#getWidth]\(spec)
SetsReturns the borderwidth attribute(s) of athe specifiedcurrent element.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setFont#putClientProperty]\(speckey, value)
Sets the fontvalue name,for style,the andspecified sizeelement ofclient anproperty elementkey.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setImageURL#requestFocus]\(url\[mustExecuteOnFocusGainedMethod\])
SetsRequest the imagefocus displayedin on a button or label; based on URLthis element.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setLocation]\(x, y)
Sets the location of an element.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setSize]\(width, height)
Sets the size of the field.{td}{tr}{tbody}{table}\\ 

{table:id=property|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=bgcolor|class=node}{tr:id=name}{td}h6.bgcolor{td}{tr}{tr:id=des}{td}{sub-section:bgcolor_des|text=|trigger=button}{sub-section}{sub-section:bgcolor_des|trigger=none|class=sIndent}Gets or sets the background color of a field. The color has to be set using the hexadecimal RGB value as used in HTML.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:bgcolor_snc|text=|trigger=button}{sub-section}{sub-section:bgcolor_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:bgcolor_prs|text=|trigger=button}{sub-section}{sub-section:bgcolor_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:bgcolor_ret|text=|trigger=button}{sub-section}{sub-section:bgcolor_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:bgcolor_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:bgcolor_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:bgcolor_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:bgcolor_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:bgcolor_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:bgcolor_sam|trigger=none}{code:language=javascript}
//sets the background color of the field
forms.customer.elements.customer_id.bgcolor = "#FFFFFF";
//gets the background color of the field
var c = forms.customer.elements.customer_id.bgcolor;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=enabledborder|class=node}{tr:id=name}{td}h6.enabledborder{td}{tr}{tr:id=des}{td}{sub-section:enabledborder_des|text=|trigger=button}{sub-section}{sub-section:enabledborder_des|trigger=none|class=sIndent}Gets or sets the enabled stateborder attribute(s) of a specified field,element. also
known
as "grayed".
true \- enabled; false The border attributes:

borderType \- not enabled; ! \- the enabled state is inverted (the opposite).

NOTE: A disabled element cannot be selected by clicking the element (or by pressing the TAB key even if this option is supported by the operating systemEmptyBorder, EtchedBorder, BevelBorder, LineBorder, TitleBorder, MatteBorder, SpecialMatteBorder.
size \- (numeric value) for: bottom, left, right, top.
color \- (hexadecimal value) for: bottom, left, right, top.
dash pattern \- (numeric value) for selected side(s).
rounding radius \- (numeric value) for selected side(s).

NOTE: AUse labelthe or button element will not disable if the "displayType"same value(s) and order of attribute(s) from the element design time property for a field is set to HTML\_AREA.

NOTE: The disabled "grayed" color is dependent on the LAF set in the Servoy Client Application Preferences. For more information see Preferences: Look And Feel in the Servoy Developer User's Guide.{sub-section}{td}{tr}{"borderType".{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:enabledborder_snc|text=|trigger=button}{sub-section}{sub-section:enabledborder_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:enabledborder_prs|text=|trigger=button}{sub-section}{sub-section:enabledborder_prs|trigger=none|class=sIndent}spec -- the border attributes
{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:enabledborder_ret|text=|trigger=button}{sub-section}{sub-section:enabledborder_ret|trigger=none|class=sIndent}[BooleanString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:enabledborder_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:enabledborder_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:enabledborder_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:enabledborder_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:enabledborder_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:enabledborder_sam|trigger=none}{code:language=javascript}
//getssets the enabled state of the field
var currState = forms.customer.elements.customer_id.enabled;
 border type to "LineBorder"
//sets a 1 px line width for the bottom and left side of the border
//sets the enabledhexadecimal statecolor of the field border to "#ccffcc"
var b = forms.customer.elements.customer_id.enabled = !currentStatesetBorder('LineBorder,1,#ccffcc');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=fgcolorenabled|class=node}{tr:id=name}{td}h6.fgcolorenabled{td}{tr}{tr:id=des}{td}{sub-section:fgcolorenabled_des|text=|trigger=button}{sub-section}{sub-section:fgcolorenabled_des|trigger=none|class=sIndent}Gets or sets the foregroundenabled colorstate of a specified field, also known as "grayed". The color has to be set using the hexadecimal RGB value as used in HTML.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:fgcolor_snc|text=|trigger=button}{sub-section}{sub-section:fgcolor_snc|trigger=none|class=sIndent} Replace with version info
true \- enabled; false \- not enabled; ! \- the enabled state is inverted (the opposite).

NOTE: A disabled element cannot be selected by clicking the element (or by pressing the TAB key even if this option is supported by the operating system).

NOTE: A label or button element will not disable if the "displayType" design time property for a field is set to HTML\_AREA.

NOTE: The disabled "grayed" color is dependent on the LAF set in the Servoy Client Application Preferences. For more information see Preferences: Look And Feel in the Servoy Developer User's Guide.{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:fgcolorenabled_prssnc|text=|trigger=button}{sub-section}{sub-section:fgcolorenabled_prssnc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=retprs}{td}*ReturnsParameters*\\{sub-section:fgcolorenabled_retprs|text=|trigger=button}{sub-section}{sub-section:fgcolorenabled_retprs|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=seeret}{td}*Also seeReturns*\\{sub-section:fgcolorenabled_seeret|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:fgcolorenabled_seeret|trigger=none|class=sIndent}[Boolean]{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:enabled_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:enabled_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:fgcolorenabled_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:fgcolorenabled_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:fgcolorenabled_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:fgcolorenabled_sam|trigger=none}{code:language=javascript}
//setsgets the foregroundenabled colorstate of the field
var currState = forms.customer.elements.customer_id.fgcolor = "#000000"enabled;

//getssets the foregroundenabled colorstate of the field
var
c = forms.customer.elements.customer_id.fgcolorenabled = !currentState;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=mnemonicfgcolor|class=node}{tr:id=name}{td}h6.mnemonicfgcolor{td}{tr}{tr:id=des}{td}{sub-section:mnemonicfgcolor_des|text=|trigger=button}{sub-section}{sub-section:mnemonicfgcolor_des|trigger=none|class=sIndent}Gets or sets the specified character(s) \- typically an underlined letter\- used with/without the modifier key(s) for the label, button or image. 

Modifiers key values: 
1 SHIFT 
2 CTRL 
4 Meta/CMD (Macintosh)
8 ALT(Windows, Unix); OPTION (Macintosh) 

NOTE: A mnemonic is usually a single key used with/without the CTRL, CMD, SHIFT, ALT, or OPTION key(s) to activate a menu item or command \- depending, in part on whether the menmonic applies in a command line or graphic interface. For one description, you can refer to this web page: http://msdn.microsoft.com/en\-us/library/bb158536.aspx or perform a search in a web browser search engine using the criteria "mnemonic".
NOTE2: Mnemonic is only supported in Smart Client.foreground color of a field. The color has to be set using the hexadecimal RGB value as used in HTML.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:fgcolor_snc|text=|trigger=button}{sub-section}{sub-section:fgcolor_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:fgcolor_prs|text=|trigger=button}{sub-section}{sub-section:fgcolor_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:fgcolor_ret|text=|trigger=button}{sub-section}{sub-section:fgcolor_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:fgcolor_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:fgcolor_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:fgcolor_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:fgcolor_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:fgcolor_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:fgcolor_sam|trigger=none}{code:language=javascript}
//sets the foreground color of the field
forms.customer.elements.customer_id.fgcolor = "#000000";

//gets the foreground color of the field
var c = forms.customer.elements.customer_id.fgcolor;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=font|class=node}{tr:id=name}{td}h6.font{td}{tr}{tr:id=des}{td}{sub-section:font_des|text=|trigger=button}{sub-section}{sub-section:font_des|trigger=none|class=sIndent}Sets the font name, style, and size of an element. 

font name \- the name of the font family.
style \- the type of the font. (plain = 0; bold = 1; italic = 2; bold\-italic = 3).
size \- the size of the font (in points).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:font_snc|text=|trigger=button}{sub-section}{sub-section:font_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:font_prs|text=|trigger=button}{sub-section}{sub-section:font_prs|trigger=none|class=sIndent}spec -- the font name, style, size
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sncret}{td}*SinceReturns*\\{sub-section:mnemonicfont_sncret|text=|trigger=button}{sub-section}{sub-section:mnemonicfont_sncret|trigger=none|class=sIndent} Replace with version info[String]{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prssee}{td}*ParametersAlso see*\\{sub-section:mnemonicfont_prssee|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mnemonicfont_prssee|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=retlink}{td}*ReturnsExternal links*\\{sub-section:mnemonicfont_retlink|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mnemonicfont_retlink|trigger=none|class=sIndent}[String]{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=seesam}{td}*Also seeSample*\\{sub-section:mnemonicfont_seesam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mnemonicfont_seesam|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.setFont('Tahoma,1,11');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{builder-show}{builder-show:permission=edittbody:id=imageURL|class=node}{tr:id=name}{td}h6.imageURL{td}{tr}{tr:id=linkdes}{td}*External links*\\{sub-section:mnemonicimageURL_linkdes|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mnemonicimageURL_linkdes|trigger=none}none|class=sIndent}Gets/Sets the image displayed on a button or label; based on URL.{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=samsnc}{td}*SampleSince*\\{sub-section:mnemonicimageURL_samsnc|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mnemonicimageURL_samsnc|trigger=none}{code:language=javascript}
//gets the mnemonic of the element
var my_mnemoic = forms.customer.elements.customer_id.mnemonic;

//sets the mnemonic of the element
forms.customer.elements.customer_id.mnemonic = 'f';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=text|class=node}{tr:id=name}{td}h6.text{td}{tr|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:imageURL_prs|text=|trigger=button}{sub-section}{sub-section:imageURL_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=desret}{td}*Returns*\\{sub-section:textimageURL_desret|text=|trigger=button}{sub-section}{sub-section:textimageURL_desret|trigger=none|class=sIndent}Gets or sets the text that is displayed on the label, button or image.

NOTE: The .text property applies to labels, buttons, or images ONLY.[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sncsee}{td}*SinceAlso see*\\{sub-section:textimageURL_sncsee|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:textimageURL_sncsee|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prslink}{td}*ParametersExternal links*\\{sub-section:textimageURL_prslink|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:textimageURL_prslink|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=retsam}{td}*ReturnsSample*\\{sub-section:textimageURL_retsam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:textimageURL_retsam|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:text_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:text_see|trigger=none{code:language=javascript}
//dynamically sets an image displayed on a button or label
forms.customer.elements.customer_id.imageURL = "http://www.servoy.com/images/test.gif";

//sets an image from your own image library
forms.customer.elements.customer_id.imageURL = "media:///arrow.gif";

//loads an image (BLOB) from a field in a selected record into HTML
forms.customer.elements.customer_id.imageURL = 'media:///servoy_blobloader?datasource='+controller.getDataSource()+'&dataprovider=image_data&mimetype=image/jpeg&rowid1=2';
{code}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linktr:class=lastDetailRow}{td}{td}*External links*\\{sub-section:text_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:text_link|trigger=none}{sub-section}{div}{{tr}{tbody}{tbody:id=mnemonic|class=node}{tr:id=name}{td}h6.mnemonic{td}{tr}{builder-show}{tr:id=samdes}{td}*Sample*\\{sub-section:textmnemonic_samdes|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:textmnemonic_samdes|trigger=none}{code:language=javascript}
//gets the text of the element
var my_text = forms.customer.elements.customer_id.text;

//sets the text of the element
forms.customer.elements.customer_id.text = my_text + 'is cool';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=toolTipText|class=node}{tr:id=name}{td}h6.toolTipText{td}{tr}{tr:id=des}{td}{sub-section:toolTipText_des|text=|trigger=button}{sub-section}{sub-section:toolTipText_des|trigger=none|class=sIndent}Gets or sets the tool tip text of an element; text displays when the mouse cursor hovers over an element. 
 
 NOTE: HTML should be used for multi\-line tooltips; you can also use any valid HTML tags to format tooltip text|class=sIndent}Gets or sets the specified character(s) \- typically an underlined letter\- used with/without the modifier key(s) for the label, button or image. 

Modifiers key values: 
1 SHIFT 
2 CTRL 
4 Meta/CMD (Macintosh)
8 ALT(Windows, Unix); OPTION (Macintosh) 

NOTE: A mnemonic is usually a single key used with/without the CTRL, CMD, SHIFT, ALT, or OPTION key(s) to activate a menu item or command \- depending, in part on whether the menmonic applies in a command line or graphic interface. For one description, you can refer to this web page: http://msdn.microsoft.com/en\-us/library/bb158536.aspx or perform a search in a web browser search engine using the criteria "mnemonic".
NOTE2: Mnemonic is only supported in Smart Client.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:toolTipTextmnemonic_snc|text=|trigger=button}{sub-section}{sub-section:toolTipTextmnemonic_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:toolTipTextmnemonic_prs|text=|trigger=button}{sub-section}{sub-section:toolTipTextmnemonic_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:toolTipTextmnemonic_ret|text=|trigger=button}{sub-section}{sub-section:toolTipTextmnemonic_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:toolTipTextmnemonic_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toolTipTextmnemonic_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:toolTipTextmnemonic_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toolTipTextmnemonic_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:toolTipTextmnemonic_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toolTipTextmnemonic_sam|trigger=none}{code:language=javascript}
//gets the tooltipmnemonic text of the element
var toolTipmy_mnemoic = forms.customer.elements.customer_id.toolTipTextmnemonic;

//sets the tooltip text of the element
forms.customer.elements.customer_id.toolTipText = "New tip";mnemonic of the element
forms.customer.elements.customer_id.toolTipTextmnemonic = "<html>This includes <b>bolded text</b> and <font color='blue'>BLUE</font> text as well."f';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=transparentrolloverImageURL|class=node}{tr:id=name}{td}h6.transparentrolloverImageURL{td}{tr}{tr:id=des}{td}{sub-section:transparentrolloverImageURL_des|text=|trigger=button}{sub-section}{sub-section:transparent_des|trigger=none|class=sIndent}Gets or sets the transparency of an element; true \- transparent; false \- not transparent.
 
NOTE: transparency can be inverted using ! operator: elements.elementName.transparent = !elements.elementName.transparent;

NOTE: transparency will be mostly used for background color, a transparent element will receive the background of the element "beneath" it, a non transparent one will use its own background colorsection:rolloverImageURL_des|trigger=none|class=sIndent}Gets/Sets the image displayed on a button or label roll over; based on URL.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:transparentrolloverImageURL_snc|text=|trigger=button}{sub-section}{sub-section:transparentrolloverImageURL_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:transparentrolloverImageURL_prs|text=|trigger=button}{sub-section}{sub-section:transparentrolloverImageURL_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:transparentrolloverImageURL_ret|text=|trigger=button}{sub-section}{sub-section:transparentrolloverImageURL_ret|trigger=none|class=sIndent}[BooleanString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:transparentrolloverImageURL_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:transparentrolloverImageURL_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:transparentrolloverImageURL_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:transparentrolloverImageURL_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:transparentrolloverImageURL_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:transparentrolloverImageURL_sam|trigger=none}{code:language=javascript}
//gets the transparency of the element
var currentState =language=javascript}
//dynamically sets a roll over image displayed on a button or label
forms.customer.elements.customer_id.rolloverImageURL = "http://www.servoy.com/images/test.gif";

//sets an image from your own image library
forms.customer.elements.customer_id.transparentrolloverImageURL = "media:///arrow.gif";

//sets the transparency of the elementloads an image (BLOB) from a field in a selected record into HTML
forms.customer.elements.customer_id.transparentrolloverImageURL = !currentState'media:///servoy_blobloader?datasource='+controller.getDataSource()+'&dataprovider=image_data&mimetype=image/jpeg&rowid1=2';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=visibletext|class=node}{tr:id=name}{td}h6.visibletext{td}{tr}{tr:id=des}{td}{sub-section:visibletext_des|text=|trigger=button}{sub-section}{sub-section:visibletext_des|trigger=none|class=sIndent}Gets or sets the visibility of an element; true \- visible; false \- not visible; ! \-Gets or sets the visibilitytext statethat is inverteddisplayed on (the opposite) label, button or image.

NOTE: The visibility of an element is not persistent; the state of visibility only .text property applies to thelabels, currentbuttons, useror in his/her current sessionimages ONLY.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:visibletext_snc|text=|trigger=button}{sub-section}{sub-section:visibletext_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:visibletext_prs|text=|trigger=button}{sub-section}{sub-section:visibletext_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:visibletext_ret|text=|trigger=button}{sub-section}{sub-section:visibletext_ret|trigger=none|class=sIndent}[BooleanString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:visibletext_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:visibletext_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:visibletext_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:visibletext_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:visibletext_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:visibletext_sam|trigger=none}{code:language=javascript}
//sets the element as visible
forms.company.elements.faxBtn.visible = true;

//gets the visibilitytext of the element
var currentStatemy_text = forms.companycustomer.elements.faxBtncustomer_id.visible;

//sets the element as not visible whentext;

//sets the currenttext stateof isthe visibleelement
forms.companycustomer.elements.faxBtncustomer_id.visibletext = !currentState my_text + 'is cool';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=getAbsoluteFormLocationY|class=node}{tr:id=name}{td}h6.getAbsoluteFormLocationY{td}{tr}{tr:id=sig=lastDetailRow}{td}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{spantr}{tbody}{tbody:id=ietstoolTipText|style=float: left; font-weight: bold;}getAbsoluteFormLocationY{span}{span:id=iets|style=float: left;}\(){span}class=node}{tr:id=name}{td}h6.toolTipText{td}{tr}{tr:id=des}{td}{sub-section:getAbsoluteFormLocationYtoolTipText_des|text=|trigger=button}{sub-section}{sub-section:getAbsoluteFormLocationY_des|trigger=none|class=sIndent}Returns the absolute form (designed) Y location-section}{sub-section:toolTipText_des|trigger=none|class=sIndent}Gets or sets the tool tip text of an element; text displays when the mouse cursor hovers over an element. 
 
 NOTE: HTML should be used for multi\-line tooltips; you can also use any valid HTML tags to format tooltip text.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getAbsoluteFormLocationYtoolTipText_snc|text=|trigger=button}{sub-section}{sub-section:getAbsoluteFormLocationYtoolTipText_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:getAbsoluteFormLocationYtoolTipText_prs|text=|trigger=button}{sub-section}{sub-section:getAbsoluteFormLocationYtoolTipText_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getAbsoluteFormLocationYtoolTipText_ret|text=|trigger=button}{sub-section}{sub-section:getAbsoluteFormLocationYtoolTipText_ret|trigger=none|class=sIndent}[Number] -- The y location of the form in pixels.String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getAbsoluteFormLocationYtoolTipText_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getAbsoluteFormLocationYtoolTipText_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getAbsoluteFormLocationYtoolTipText_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getAbsoluteFormLocationYtoolTipText_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getAbsoluteFormLocationYtoolTipText_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getAbsoluteFormLocationYtoolTipText_sam|trigger=none}{code:language=javascript}
var absolute_y =}
//gets the tooltip text of the element
var toolTip = forms.customer.elements.customer_id.toolTipText;

//sets the tooltip text of the element
forms.customer.elements.customer_id.toolTipText = "New tip";
forms.customer.elements.customer_id.getAbsoluteFormLocationY().toolTipText = "<html>This includes <b>bolded text</b> and <font color='blue'>BLUE</font> text as well.";
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getClientProperty|class=node}{tr:id=name}{td}h6.getClientProperty{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Object]{span}{span:id=iets|style=float: left; font-weight: bold;}getClientProperty{span}{span:id=iets|style=float: left;}\(key){span}}{tr}{tbody}{tbody:id=transparent|class=node}{tr:id=name}{td}h6.transparent{td}{tr}{tr:id=des}{td}{sub-section:getClientPropertytransparent_des|text=|trigger=button}{sub-section}{sub-section:getClientPropertytransparent_des|trigger=none|class=sIndent}Gets or sets the specified client property for the element based on a key.

NOTE: Depending on the operating system, a user interface property name may be available. transparency of an element; true \- transparent; false \- not transparent.
 
NOTE: transparency can be inverted using ! operator: elements.elementName.transparent = !elements.elementName.transparent;

NOTE: transparency will be mostly used for background color, a transparent element will receive the background of the element "beneath" it, a non transparent one will use its own background color{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getClientPropertytransparent_snc|text=|trigger=button}{sub-section}{sub-section:getClientPropertytransparent_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:getClientPropertytransparent_prs|text=|trigger=button}{sub-section}{sub-section:getClientPropertytransparent_prs|trigger=none|class=sIndent}\{[Object]} key -- user interface key (depends on operating system)
{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getClientPropertytransparent_ret|text=|trigger=button}{sub-section}{sub-section:getClientPropertytransparent_ret|trigger=none|class=sIndent}[Object] -- The value of the property for specified key.Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getClientPropertytransparent_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getClientPropertytransparent_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getClientPropertytransparent_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getClientPropertytransparent_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getClientPropertytransparent_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getClientPropertytransparent_sam|trigger=none}{code:language=javascript}
//gets the transparency of the element
var propertycurrentState = forms.customer.elements.customer_id.getClientProperty('ToolTipText')transparent;

//sets the transparency of the element
forms.customer.elements.customer_id.transparent = !currentState;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getDataProviderIDvisible|class=node}{tr:id=name}{td}h6.getDataProviderIDvisible{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getDataProviderID{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getDataProviderIDvisible_des|text=|trigger=button}{sub-section}{sub-section:getDataProviderIDvisible_des|trigger=none|class=sIndent}Get the data provider this UI element (display) is showing=sIndent}Gets or sets the visibility of an element; true \- visible; false \- not visible; ! \- the visibility state is inverted (the opposite).

NOTE: The visibility of an element is not persistent; the state of visibility only applies to the current user in his/her current session.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getDataProviderIDvisible_snc|text=|trigger=button}{sub-section}{sub-section:getDataProviderIDvisible_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:getDataProviderIDvisible_prs|text=|trigger=button}{sub-section}{sub-section:getDataProviderIDvisible_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getDataProviderIDvisible_ret|text=|trigger=button}{sub-section}{sub-section:getDataProviderIDvisible_ret|trigger=none|class=sIndent}[String] -- The data provider as String.Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getDataProviderIDvisible_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getDataProviderIDvisible_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getDataProviderIDvisible_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getDataProviderIDvisible_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getDataProviderIDvisible_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getDataProviderIDvisible_sam|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.getDataProviderID()=javascript}
//sets the element as visible
forms.company.elements.faxBtn.visible = true;

//gets the visibility of the element
var currentState = forms.company.elements.faxBtn.visible;

//sets the element as not visible when the current state is visible
forms.company.elements.faxBtn.visible = !currentState;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=getElementTypegetAbsoluteFormLocationY|class=node}{tr:id=name}{td}h6.getElementTypegetAbsoluteFormLocationY{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[StringNumber]{span}{span:id=iets|style=float: left; font-weight: bold;}getElementTypegetAbsoluteFormLocationY{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getElementTypegetAbsoluteFormLocationY_des|text=|trigger=button}{sub-section}{sub-section:getElementTypegetAbsoluteFormLocationY_des|trigger=none|class=sIndent}Returns the typeabsolute ofform a(designed) specifiedY elementlocation.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getElementTypegetAbsoluteFormLocationY_snc|text=|trigger=button}{sub-section}{sub-section:getElementTypegetAbsoluteFormLocationY_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:getElementTypegetAbsoluteFormLocationY_prs|text=|trigger=button}{sub-section}{sub-section:getElementTypegetAbsoluteFormLocationY_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getElementTypegetAbsoluteFormLocationY_ret|text=|trigger=button}{sub-section}{sub-section:getElementTypegetAbsoluteFormLocationY_ret|trigger=none|class=sIndent}[StringNumber] -- The displayy typelocation of the elementform asin Stringpixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getElementTypegetAbsoluteFormLocationY_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getElementTypegetAbsoluteFormLocationY_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getElementTypegetAbsoluteFormLocationY_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getElementTypegetAbsoluteFormLocationY_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getElementTypegetAbsoluteFormLocationY_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getElementTypegetAbsoluteFormLocationY_sam|trigger=none}{code:language=javascript}
var etabsolute_y = forms.customer.elements.customer_id.getElementTypegetAbsoluteFormLocationY();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getHeightgetClientProperty|class=node}{tr:id=name}{td}h6.getHeightgetClientProperty{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[NumberObject]{span}{span:id=iets|style=float: left; font-weight: bold;}getHeightgetClientProperty{span}{span:id=iets|style=float: left;}\(key){span}{td}{tr}{tr:id=des}{td}{sub-section:getHeightgetClientProperty_des|text=|trigger=button}{sub-section}{sub-section:getHeightgetClientProperty_des|trigger=none|class=sIndent}Returns the height of the current element. 
NOTE: getHeight() can be used with getWidth() to set the size of an element using the setSize function. For example:

//returns the width (w) and height (h)
var w = forms.company.elements.faxBtn.getWidth();
var h = forms.company.elements.faxBtn.getHeight();
 
//sets the new size
forms.company.elements.faxBtn.setSize(w,h);

//sets the new size and adds 1 px to both the width and height
forms.company.elements.faxBtn.setSize(w+1,h+1);=sIndent}Gets the specified client property for the element based on a key.

NOTE: Depending on the operating system, a user interface property name may be available.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getHeightgetClientProperty_snc|text=|trigger=button}{sub-section}{sub-section:getHeightgetClientProperty_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:getHeightgetClientProperty_prs|text=|trigger=button}{sub-section}{sub-section:getHeightgetClientProperty_prs|trigger=none|class=sIndent}class=sIndent}\{[Object]} key -- user interface key (depends on operating system)
{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getHeightgetClientProperty_ret|text=|trigger=button}{sub-section}{sub-section:getHeightgetClientProperty_ret|trigger=none|class=sIndent}[NumberObject] -- The heightvalue of the elementproperty for inspecified pixelskey.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getHeightgetClientProperty_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getHeightgetClientProperty_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getHeightgetClientProperty_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getHeightgetClientProperty_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getHeightgetClientProperty_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getHeightgetClientProperty_sam|trigger=none}{code:language=javascript}
var htproperty = forms.customer.elements.customer_id.getHeightgetClientProperty('ToolTipText');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getLocationXgetDataProviderID|class=node}{tr:id=name}{td}h6.getLocationXgetDataProviderID{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[NumberString]{span}{span:id=iets|style=float: left; font-weight: bold;}getLocationXgetDataProviderID{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getLocationXgetDataProviderID_des|text=|trigger=button}{sub-section}{sub-section:getLocationXgetDataProviderID_des|trigger=none|class=sIndent}Returns the x location of the current element. 

NOTE: getLocationX() can be used with getLocationY() to set the location of an element using the setLocation function. For Example:

//returns the X and Y coordinates
var x = forms.company.elements.faxBtn.getLocationX();
var y = forms.company.elements.faxBtn.getLocationY();
 
//sets the new location 10 px to the right; 10 px down from the current location
forms.company.elements.faxBtn.setLocation(x+10,y+10);=none|class=sIndent}Get the data provider this UI element (display) is showing.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getLocationXgetDataProviderID_snc|text=|trigger=button}{sub-section}{sub-section:getLocationXgetDataProviderID_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:getLocationXgetDataProviderID_prs|text=|trigger=button}{sub-section}{sub-section:getLocationXgetDataProviderID_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getLocationXgetDataProviderID_ret|text=|trigger=button}{sub-section}{sub-section:getLocationXgetDataProviderID_ret|trigger=none|class=sIndent}[NumberString] -- The xdata locationprovider of the element in pixelsas String.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getLocationXgetDataProviderID_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLocationXgetDataProviderID_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getLocationXgetDataProviderID_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLocationXgetDataProviderID_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getLocationXgetDataProviderID_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLocationXgetDataProviderID_sam|trigger=none}{code:language=javascript}
var x = forms.customer.elements.customer_id.getLocationXgetDataProviderID();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getLocationYgetElementType|class=node}{tr:id=name}{td}h6.getLocationYgetElementType{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[NumberString]{span}{span:id=iets|style=float: left; font-weight: bold;}getLocationYgetElementType{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getLocationYgetElementType_des|text=|trigger=button}{sub-section}{sub-section:getLocationYgetElementType_des|trigger=none|class=sIndent}Returns the y locationtype of thea currentspecified element. 

NOTE: getLocationY() can be used with getLocationX() to set the location of an element using the setLocation function. For Example:

//returns the X and Y coordinates
var x = forms.company.elements.faxBtn.getLocationX();
var y = forms.company.elements.faxBtn.getLocationY();

//sets the new location 10 px to the right; 10 px down from the current location
forms.company.elements.faxBtn.setLocation(x+10,y+10);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getElementType_snc|text=|trigger=button}{sub-section}{sub-section:getElementType_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:getElementType_prs|text=|trigger=button}{sub-section}{sub-section:getElementType_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sncret}{td}*SinceReturns*\\{sub-section:getLocationYgetElementType_sncret|text=|trigger=button}{sub-section}{sub-section:getLocationYgetElementType_sncret|trigger=none|class=sIndent} Replace with version info[String] -- The display type of the element as String.{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prssee}{td}*ParametersAlso see*\\{sub-section:getLocationYgetElementType_prssee|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLocationYgetElementType_prssee|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=retlink}{td}*ReturnsExternal links*\\{sub-section:getLocationYgetElementType_retlink|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLocationYgetElementType_retlink|trigger=none|class=sIndent}[Number] -- The y location of the element in pixels.{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=seesam}{td}*Also seeSample*\\{sub-section:getLocationYgetElementType_seesam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLocationYgetElementType_seesam|trigger=none}{code:language=javascript}
var et = forms.customer.elements.customer_id.getElementType();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{builder-show}{builder-show:permission=edittbody}{tbody:id=getHeight|class=node}{tr:id=name}{td}h6.getHeight{td}{tr}{tr:id=linksig}{td}*External links*\\{sub-section:getLocationY_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLocationY_link|trigger=none}{sub-section}{div{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getHeight{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show}{tr:id=samdes}{td}*Sample*\\{sub-section:getLocationYgetHeight_samdes|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLocationYgetHeight_sam|trigger=none}{code:language=javascript}
var y =  forms.customer.elements.customer_id.getLocationY();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getName|class=node}{tr:id=name}{td}h6.getName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getName_des|text=|trigger=button}{sub-section}{sub-section:getName_des|trigger=none|class=sIndent}Returns the name of an element. (may be null as well)des|trigger=none|class=sIndent}Returns the height of the current element. 
NOTE: getHeight() can be used with getWidth() to set the size of an element using the setSize function. For example:

//returns the width (w) and height (h)
var w = forms.company.elements.faxBtn.getWidth();
var h = forms.company.elements.faxBtn.getHeight();
 
//sets the new size
forms.company.elements.faxBtn.setSize(w,h);

//sets the new size and adds 1 px to both the width and height
forms.company.elements.faxBtn.setSize(w+1,h+1);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getNamegetHeight_snc|text=|trigger=button}{sub-section}{sub-section:getNamegetHeight_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:getNamegetHeight_prs|text=|trigger=button}{sub-section}{sub-section:getNamegetHeight_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getNamegetHeight_ret|text=|trigger=button}{sub-section}{sub-section:getNamegetHeight_ret|trigger=none|class=sIndent}[StringNumber] -- The nameheight of the element in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getNamegetHeight_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getNamegetHeight_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getNamegetHeight_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getNamegetHeight_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getNamegetHeight_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getNamegetHeight_sam|trigger=none}{code:language=javascript}
var nameht = forms.customer.elements.customer_id.getNamegetHeight();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getThumbnailJPGImagegetLocationX|class=node}{tr:id=name}{td}h6.getThumbnailJPGImagegetLocationX{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}byte[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getThumbnailJPGImagegetLocationX{span}{span:id=iets|style=float: left;}\(\[width\], \[height\]){span}{td}{tr}{tr:id=des}{td}{sub-section:getThumbnailJPGImage_des|text=|trigger=button}{sub-section}{sub-section:getThumbnailJPGImage_des|trigger=none|class=sIndent}Returns the image data in .jpg format from an icon; thumbnailing only works in record view. 

Syntax
elements.elementName.getThumbnailJPGImage(\[width\],\[height\]):getLocationX_des|text=|trigger=button}{sub-section}{sub-section:getLocationX_des|trigger=none|class=sIndent}Returns the x location of the current element. 

NOTE: getLocationX() can be used with getLocationY() to set the location of an element using the setLocation function. For Example:

//returns the X and Y coordinates
var x = forms.company.elements.faxBtn.getLocationX();
var y = forms.company.elements.faxBtn.getLocationY();
 
//sets the new location 10 px to the right; 10 px down from the current location
forms.company.elements.faxBtn.setLocation(x+10,y+10);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getThumbnailJPGImagegetLocationX_snc|text=|trigger=button}{sub-section}{sub-section:getThumbnailJPGImagegetLocationX_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:getThumbnailJPGImagegetLocationX_prs|text=|trigger=button}{sub-section}{sub-section:getThumbnailJPGImagegetLocationX_prs|trigger=none|class=sIndent}\[width\] -- The target width, if not specified original image width will be used.
\[height\] -- The target height, if not specified original image width will be used.
{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getThumbnailJPGImagegetLocationX_ret|text=|trigger=button}{sub-section}{sub-section:getThumbnailJPGImagegetLocationX_ret|trigger=none|class=sIndent}byte[Number] -- AnThe x arraylocation of bytesthe element in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getThumbnailJPGImagegetLocationX_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getThumbnailJPGImagegetLocationX_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getThumbnailJPGImagegetLocationX_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getThumbnailJPGImagegetLocationX_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getThumbnailJPGImagegetLocationX_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getThumbnailJPGImagegetLocationX_sam|trigger=none}{code:language=javascript}
var jpgDatax = forms.customer.elements.customer_id.getThumbnailJPGImage(50,50);
application.writeFile("mypicture.jpg", jpgDatagetLocationX();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getWidthgetLocationY|class=node}{tr:id=name}{td}h6.getWidthgetLocationY{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getWidthgetLocationY{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getWidthgetLocationY_des|text=|trigger=button}{sub-section}{sub-section:getWidthgetLocationY_des|trigger=none|class=sIndent}Returns the widthy location of the current element. 

NOTE: getWidthgetLocationY() can be used with getHeightgetLocationX() to set the sizelocation of an element using the setSizesetLocation function. For Example:

 //returns the widthX (w) and height (h)
Y coordinates
var wx = forms.company.elements.faxBtn.getWidthgetLocationX();
 var hy = forms.company.elements.faxBtn.getHeightgetLocationY();


 //sets the new sizelocation  forms.company.elements.faxBtn.setSize(w,h);
 
 //sets the new size and adds 1 px to both the width and height
10 px to the right; 10 px down from the current location
forms.company.elements.faxBtn.setSizesetLocation(wx+110,hy+110);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getWidthgetLocationY_snc|text=|trigger=button}{sub-section}{sub-section:getWidthgetLocationY_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:getWidthgetLocationY_prs|text=|trigger=button}{sub-section}{sub-section:getWidthgetLocationY_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getWidthgetLocationY_ret|text=|trigger=button}{sub-section}{sub-section:getWidthgetLocationY_ret|trigger=none|class=sIndent}[Number] -- The y widthlocation of the element in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getWidthgetLocationY_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getWidthgetLocationY_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getWidthgetLocationY_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getWidthgetLocationY_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getWidthgetLocationY_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getWidthgetLocationY_sam|trigger=none}{code:language=javascript}
var wy =  forms.customer.elements.customer_id.getWidthgetLocationY();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=putClientPropertygetName|class=node}{tr:id=name}{td}h6.putClientPropertygetName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void[String]{span}{span:id=iets|style=float: left; font-weight: bold;}putClientPropertygetName{span}{span:id=iets|style=float: left;}\(key, value){span}{td}{tr}{tr:id=des}{td}{sub-section:putClientPropertygetName_des|text=|trigger=button}{sub-section}{sub-section:putClientPropertygetName_des|trigger=none|class=sIndent}SetsReturns the valuename forof thean specified element client property key. (may NOTE:be Dependingnull on the operating system, a user interface property name may be available.as well){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:putClientPropertygetName_snc|text=|trigger=button}{sub-section}{sub-section:putClientPropertygetName_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:putClientPropertygetName_prs|text=|trigger=button}{sub-section}{sub-section:putClientPropertygetName_prs|trigger=none|class=sIndent}\{[Object]} key -- user interface key (depends on operating system)
\{[Object]} value -- a predefined value for the key
{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:putClientPropertygetName_ret|text=|trigger=button}{sub-section}{sub-section:putClientPropertygetName_ret|trigger=none|class=sIndent}void[String] -- The name of the element.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:putClientPropertygetName_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:putClientPropertygetName_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:putClientPropertygetName_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:putClientPropertygetName_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:putClientPropertygetName_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:putClientPropertygetName_sam|trigger=none}{code:language=javascript}
var name = forms.customer.elements.customer_id.putClientProperty('ToolTipText','some text'getName();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=requestFocusgetThumbnailJPGImage|class=node}{tr:id=name}{td}h6.requestFocusgetThumbnailJPGImage{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}voidbyte[]{span}{span:id=iets|style=float: left; font-weight: bold;}requestFocusgetThumbnailJPGImage{span}{span:id=iets|style=float: left;}\(\[width\], \[mustExecuteOnFocusGainedMethodheight\]){span}{td}{tr}{tr:id=des}{td}{sub-section:requestFocusgetThumbnailJPGImage_des|text=|trigger=button}{sub-section}{sub-section:requestFocusgetThumbnailJPGImage_des|trigger=none|class=sIndent}RequestReturns the image focusdata in this element. (Focus is also a text cursor on text components). .jpg format from an icon; thumbnailing only works in record view. 

Syntax
elements.elementName.getThumbnailJPGImage(\[width\],\[height\]){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:requestFocusgetThumbnailJPGImage_snc|text=|trigger=button}{sub-section}{sub-section:requestFocusgetThumbnailJPGImage_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:requestFocusgetThumbnailJPGImage_prs|text=|trigger=button}{sub-section}{sub-section:requestFocusgetThumbnailJPGImage_prs|trigger=none|class=sIndent}\[mustExecuteOnFocusGainedMethod=none|class=sIndent}\[width\] -- The target width, if not specified original image width will be used.
\[height\] -- IfThe truetarget willheight, executeif onFocusGainednot method,specified elseoriginal willimage not;width defaultwill valuebe is trueused.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:requestFocusgetThumbnailJPGImage_ret|text=|trigger=button}{sub-section}{sub-section:requestFocusgetThumbnailJPGImage_ret|trigger=none|class=sIndent}voidbyte[] -- An array of bytes.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:requestFocusgetThumbnailJPGImage_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:requestFocusgetThumbnailJPGImage_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:requestFocusgetThumbnailJPGImage_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:requestFocusgetThumbnailJPGImage_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:requestFocusgetThumbnailJPGImage_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:requestFocusgetThumbnailJPGImage_sam|trigger=none}{code:language=javascript}
//requestvar thejpgData focus= in this forms.customer.elements.customer_id (focus is also a text cursor on text components)
forms.customer.elements.customer_id.requestFocus(.getThumbnailJPGImage(50,50);
application.writeFile("mypicture.jpg", jpgData);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setBordergetWidth|class=node}{tr:id=name}{td}h6.setBordergetWidth{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}setBordergetWidth{span}{span:id=iets|style=float: left;}\(spec){span}{td}{tr}{tr:id=des}{td}{sub-section:setBordergetWidth_des|text=|trigger=button}{sub-section}{sub-section:setBordergetWidth_des|trigger=none|class=sIndent}SetsReturns the border attribute(s) width of athe specifiedcurrent element. 

The border attributes:

borderType \- EmptyBorder, EtchedBorder, BevelBorder, LineBorder, TitleBorder, MatteBorder, SpecialMatteBorder.
size \- (numeric value) for: bottom, left, right, top.
color \- (hexadecimal value) for: bottom, left, right, top.
dash pattern \- (numeric value) for selected side(s).
rounding radius \- (numeric value) for selected side(s).

NOTE: Use the same value(s) and order of attribute(s) from the element design time property "borderType".NOTE: getWidth() can be used with getHeight() to set the size of an element using the setSize function. For Example:

 //returns the width (w) and height (h)
 var w = forms.company.elements.faxBtn.getWidth();
 var h = forms.company.elements.faxBtn.getHeight();
 
 //sets the new size
 forms.company.elements.faxBtn.setSize(w,h);
 
 //sets the new size and adds 1 px to both the width and height
 forms.company.elements.faxBtn.setSize(w+1,h+1);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setBordergetWidth_snc|text=|trigger=button}{sub-section}{sub-section:setBordergetWidth_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:setBordergetWidth_prs|text=|trigger=button}{sub-section}{sub-section:setBordergetWidth_prs|trigger=none|class=sIndent}\{[String]} spec -- the border attributes
{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:setBordergetWidth_ret|text=|trigger=button}{sub-section}{sub-section:setBordergetWidth_ret|trigger=none|class=sIndent}void[Number] -- The width of the element in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setBordergetWidth_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setBordergetWidth_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setBordergetWidth_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setBordergetWidth_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setBordergetWidth_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setBordergetWidth_sam|trigger=none}{code:language=javascript}
//sets the border type to "LineBorder"
//sets a 1 px line width for the bottom and left side of the border
//sets the hexadecimal
color of the border to "#ccffcc"
var bw = forms.customer.elements.customer_id.setBorder('LineBorder,1,#ccffcc'getWidth();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setFontputClientProperty|class=node}{tr:id=name}{td}h6.setFontputClientProperty{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setFontputClientProperty{span}{span:id=iets|style=float: left;}\(speckey, value){span}{td}{tr}{tr:id=des}{td}{sub-section:setFontputClientProperty_des|text=|trigger=button}{sub-section}{sub-section:setFontputClientProperty_des|trigger=none|class=sIndent}Sets the font name, style, and size of an element. 

font name \- the name of the font family.
style \- the typevalue offor the font.specified (plainelement =client 0;property boldkey.
=
1;NOTE: italicDepending =on 2; bold\-italic = 3).
size \- the size of the font (in points)the operating system, a user interface property name may be available.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setFontputClientProperty_snc|text=|trigger=button}{sub-section}{sub-section:setFontputClientProperty_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:setFontputClientProperty_prs|text=|trigger=button}{sub-section}{sub-section:setFontputClientProperty_prs|trigger=none|class=sIndent}\{[StringObject]} key -- user interface key (depends on operating system)
\{[Object]} specvalue -- thea predefined fontvalue name,for style,the sizekey
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:setFontputClientProperty_ret|text=|trigger=button}{sub-section}{sub-section:setFontputClientProperty_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setFontputClientProperty_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setFontputClientProperty_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setFontputClientProperty_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setFontputClientProperty_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setFontputClientProperty_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setFontputClientProperty_sam|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.setFontputClientProperty('Tahoma,1,11ToolTipText','some text');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setImageURLrequestFocus|class=node}{tr:id=name}{td}h6.setImageURLrequestFocus{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setImageURLrequestFocus{span}{span:id=iets|style=float: left;}\(url\[mustExecuteOnFocusGainedMethod\]){span}{td}{tr}{tr:id=des}{td}{sub-section:setImageURLrequestFocus_des|text=|trigger=button}{sub-section}{sub-section:setImageURLrequestFocus_des|trigger=none|class=sIndent}SetsRequest the imagefocus displayedin onthis aelement. button(Focus oris label;also baseda ontext URL.cursor on 
Syntax 
elements.elementName.setImageURL(String)text components).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setImageURLrequestFocus_snc|text=|trigger=button}{sub-section}{sub-section:setImageURLrequestFocus_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:setImageURLrequestFocus_prs|text=|trigger=button}{sub-section}{sub-section:setImageURLrequestFocus_prs|trigger=none|class=sIndent}url\[mustExecuteOnFocusGainedMethod\] -- the specified URLIf true will execute onFocusGained method, else will not; default value is true.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:setImageURLrequestFocus_ret|text=|trigger=button}{sub-section}{sub-section:setImageURLrequestFocus_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setImageURLrequestFocus_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setImageURLrequestFocus_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setImageURLrequestFocus_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setImageURLrequestFocus_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setImageURLrequestFocus_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setImageURL_sam|trigger=none}{code:language=javascript}
//dynamically sets an image displayed on a button or label
forms.customer.elements.customer_id.setImageURL("http://www.servoy.com/images/test.gif");

//sets an image from your own image library
}{sub-section:requestFocus_sam|trigger=none}{code:language=javascript}
//request the focus in this forms.customer.elements.customer_id.setImageURL("media:///arrow.gif");

//loads an image (BLOB) from (focus is also a fieldtext incursor aon selectedtext record into HTML
components)
forms.customer.elements.customer_id.setImageURL('media:///servoy_blobloader?datasource='+controller.getDataSource()+'&dataprovider=image_data&mimetype=image/jpeg&rowid1=2'requestFocus();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setLocation|class=node}{tr:id=name}{td}h6.setLocation{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setLocation{span}{span:id=iets|style=float: left;}\(x, y){span}{td}{tr}{tr:id=des}{td}{sub-section:setLocation_des|text=|trigger=button}{sub-section}{sub-section:setLocation_des|trigger=none|class=sIndent}Sets the location of an element. It takes as input the X (horizontal) and Y (vertical) coordinates \- starting from the TOP LEFT side of the screen.

NOTE: getLocationX() can be used with getLocationY() to return the current location of an element; then use the X and Y coordinates with the setLocation function to set a new location. For Example:

 //returns the X and Y coordinates
 var x = forms.company.elements.faxBtn.getLocationX();
 var y = forms.company.elements.faxBtn.getLocationY();
 
 //sets the new location 10 px to the right; 10 px down from the current location
 forms.company.elements.faxBtn.setLocation(x+10,y+10);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setLocation_snc|text=|trigger=button}{sub-section}{sub-section:setLocation_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:setLocation_prs|text=|trigger=button}{sub-section}{sub-section:setLocation_prs|trigger=none|class=sIndent}\{[Number]} x -- the X coordinate of the element in pixels.
\{[Number]} y -- the Y coordinate of the element in pixels.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:setLocation_ret|text=|trigger=button}{sub-section}{sub-section:setLocation_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setLocation_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setLocation_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setLocation_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setLocation_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setLocation_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setLocation_sam|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.setLocation(200,200);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setSize|class=node}{tr:id=name}{td}h6.setSize{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setSize{span}{span:id=iets|style=float: left;}\(width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:setSize_des|text=|trigger=button}{sub-section}{sub-section:setSize_des|trigger=none|class=sIndent}Sets the size of the field. It takes as input the width and the height. 

NOTE: getWidth() can be used with getHeight() to set the size of an element using the setSize function. For Example: 

//returns the width (w) and height (h)
var w = forms.company.elements.faxBtn.getWidth();
var h = forms.company.elements.faxBtn.getHeight();

//sets the new size
forms.company.elements.faxBtn.setSize(w,h);

//sets the new size and adds 1 px to both the width and height
forms.company.elements.faxBtn.setSize(w+1,h+1);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setSize_snc|text=|trigger=button}{sub-section}{sub-section:setSize_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:setSize_prs|text=|trigger=button}{sub-section}{sub-section:setSize_prs|trigger=none|class=sIndent}\{[Number]} width -- the width of the element in pixels.
\{[Number]} height -- the height of the element in pixels.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:setSize_ret|text=|trigger=button}{sub-section}{sub-section:setSize_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setSize_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setSize_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setSize_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setSize_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setSize_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setSize_sam|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.setSize(20,30);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}