PROPERTY
Top  Previous  Next

Use the PROPERTY command to dynamically change the properties of the form control object(s), the form itself, and the form table.

property


Options

ComponentID
The unique identifier that you assign to the component when you insert the object. A field is located in the object properties dialog menu (right-click) for all objects that are placed on forms. The unique identifier within the PROPERTY command must match the unique identifier listed in the object properties. Wildcards are supported for altering the properties of multiple components.

FormControlProperty
The name of the form control object's property you wish to change.

RBASE_FORM FormProperty
The property of the form itself, such as Caption, Width, Height, Align, etc.

RBASE_FORM_ACTION CustomFormActionName
The actual name of the Command Name assigned when designing Custom Form Actions in Form Designer.

Parameters
The optional value(s) you can pass onto the calling command,if required. Use ' ' blank space with single or double quotes (depending on your database QUOTE settings), if parameter is not required in calling command block.

TABLE FormTableName
The driving table name of the form.

value
The new value to assign to the property of the object specified.

Supported Form Controls with Component IDs


Standard Controls
·Static Text  
·Push Button  
·Enhanced Panel  
·Enhanced GroupBox  
·Wallpaper  
·Custom Wallpaper  
Database Controls
·DB Grid  
·DB Navigator  
·DB Label  
·DB Edit  
·DB Memo  
·DB Rich Edit  
·DB Date/Time Picker  
·DB Calendar  
·DB Web Browser  
·DB E-Mail Label  
·DB Image  
·DB Check Box  
·DB Radio Button  
·DB Radio Group  
·DB Lookup ComboBox  
·DB Lookup ListBox  
·DB Spin Edit  
·DB User Defined ComboBox  
·DB User Defined ListBox  
·Scrolling Region  
Variable Controls
·Variable Label  
·Variable Edit  
·Variable Memo  
·Variable Rich Edit  
·Variable Date/Time Picker  
·Variable Calendar  
·Variable Web Browser  
·Variable E-Mail Label  
·Variable Image  
·Variable Check Box  
·Variable Radio Button  
·Variable Radio Group  
·Variable Lookup ComboBox  
·Variable Lookup ListBox  
·Variable Spin Edit  
·Variable User Defined ComboBox  
·Variable User Defined ListBox  
·Variable Lookup ListView  
Additional Controls
·Bit Button  
·Speed Button  
·Office Button  
·Drop-Down Menu Button  
·Image  
·Animated GIF Control  
·Shape  
·Bevel  
·AVI Animate  
·Splitter  
·Tab Control  
·Tab Page  
·LED Text Label  
·Analog Clock  
·Digital Clock  
·Tree View  
·ListView  
·Shape Button  
·Meter  
·Group Bar  
·Group  
·Enhanced Tab Control  
·Enhanced Tab Page  
·Enhanced Speed Button  
·Separator  
·Arrow Line  
·Status Bar  
·PDF Viewer  
·Tab Set  
Internet Controls
·Web Browser  
·E-Mail Label  
File System Controls
·Directory Tree  
·File ListBox  
Legacy Controls
·Vertical Line  
·Horizontal Line  
·3D Box  
·Panel  
·Group Box  

RBASE_FORM Properties You Can Change

·ALIGN  
·ALPHABLEND  
·ALPHABLENDVALUE  
·AUTOSCROLL  
·AUTOSIZE  
·BORDERWIDTH  
·CAPTION  
·CLIENTHEIGHT  
·CLIENTWIDTH  
·COLOR  
·DONTSHOWDIALOG  
·ENABLED  
·HEIGHT  
·HINT  
·LEFT  
·PRINT  
·SHOWHINT  
·SHOW_CLOSE_BUTTON  
·SHOW_MAXIMIZE_BUTTON  
·SHOW_MINIMIZE_BUTTON  
·TOP  
·TRANSPARENTCOLOR  
·TRANSPARENTCOLORVALUE  
·WIDTH  

TABLE Properties You Can Change

·APPEND  
·CANCEL  
·DELETE  
·EDIT  
·FIRST  
·LAST  
·NEXT  
·POST  
·PRIOR  
·REFRESH  

Miscellaneous Properties You Can Change

STAY_ON_TOP
SET_FOCUS
FONT_BOLD
FONT_ITALIC
FONT_UNDERLINE
FONT_STRIKEOUT
FONT_NAME
FONT_SIZE
FONT_COLOR

Use PROPERTY APPLICATION TITLE 'application title'
command to assign customized name for R:BASE application session.

Example:  

Using the following command at the beginning of your application command will assign custom name for the R:BASE icon placed on Windows Taskbar.  

PROPERTY APPLICATION TITLE 'Customer Management System'  
RETURN  

The R:BASE icon on the Taskbar will read as Customer Management System.  

Tips and Techniques

·Properties of any form control objects can be changed with assigned Component ID ONLY.  

·Always use QUOTES around the value, if TEXT.  

 
Examples:  
 
PROPERTY mycomponentid1 COLOR 'RED'  
 
PROPERTY mycomponentid2 VISIBLE 'FALSE'  
 
PROPERTY mycomponentid3 FONT_COLOR 'GREEN'  
 
PROPERTY mycomponentid3 FONT_SIZE 36  
 
PROPERTY RBASE_FORM WIDTH 300  
 
PROPERTY RBASE_FORM HEIGHT 300  
 
PROPERTY RBASE_FORM AUTOSCROLL 'TRUE'  
 
PROPERTY RBASE_FORM COLOR 'TEAL'  
 
PROPERTY RBASE_FORM CAPTION 'New Form Caption'  
 
PROPERTY RBASE_FORM HINT 'New Form Hint'  
 
PROPERTY TABLE Customer 'REFRESH'  
 
PROPERTY TABLE Customer 'LAST'  
 
PROPERTY TABLE Customer 'FIRST'  
 
Notice the quotes around the TEXT value while value with number without the quotes.  





·For complete documentation of PROPERTY and GETPROPERTY commands, please refer to FormProperties.PDF  

·Use the following URL for Building Syntax for PROPERTY Command  

http://www.rbase.com/property/  

·An optional handy tool database for all PROPERTY/GETPROPERTY commands and documentation (R:Docs) is also available. Please contact RBTI Sales Staff at sales@rbase.com if you wish to purchase the annual subscription to R:Docs database/application. You also have free access to on-line PROPERTY Syntax Builder at: http://www.rbase.com/property/ and GETPROPERTY Syntax Builder at: http://www.rbase.com/getproperty/  

·Preview of R:Docs (Syntax Builder): http://www.rbase.com/products/rdocs/