Attributes And Methods common to all GoDB tags.
| TagName | Description | Applies | GBasic Property | GBasic Sample | ||||||||||||||||||||
| NAME | ||||||||||||||||||||||||
| X | See Also:Update |
|||||||||||||||||||||||
| Y | See Also:Update |
|||||||||||||||||||||||
To all controls |
|
|||||||||||||||||||||||
| H |
|
|||||||||||||||||||||||
| SCROLLABLE | ||||||||||||||||||||||||
| HIDDEN | See Also: Hide() and Show() Methods. |
print |
||||||||||||||||||||||
| DISABLED | ||||||||||||||||||||||||
| TAG |
This is useful for programmers who need name value pairs. Note: In GBasic When the tag is assigned as a numeric field, the value is rounded off to three decimal places. if better precision is needed then tag should be assigned as string using the Format$ function EX: #Fld1.TAG=100.123456 print #Fld1.TAG$ Will print 100.123 |
and TAG |
#Fld1.TAG$="Hello" print #Fld1.TAG$="Hello" #Fld1.TAG=100 print #Fld1.TAG print #Fld1.TAG$ |
|||||||||||||||||||||
| STYLE |
This is a bit masked value.
When a combination of the styles are required then the numbers need to be added up for example, Bold and Invert is 1+8=9 |
|||||||||||||||||||||||
| FG | ||||||||||||||||||||||||
| BG |
|
|||||||||||||||||||||||
| BRDR | Refer BG for Note about Black. |
|||||||||||||||||||||||
| SELFG | ||||||||||||||||||||||||
| SELBG |
|
|||||||||||||||||||||||
| SELBRDR | Refer BG for Note about Black. |
|||||||||||||||||||||||
| FONT |
The Valid Font values are 3- Largest. 4- Medium. 5- Smallest. Other values are reserved for future. |
|||||||||||||||||||||||
| GRAD | This attribute lets you specify Gradient Color. | |||||||||||||||||||||||
| GRADDIR | Direction of the Gradient (0-None , 1-Top to Bottom, 2 Bottomto top, 3 Left to Right, 4 Right to Left) | |||||||||||||||||||||||
| SELGRAD | This attribute lets you specify Selected Gradient Color. | |||||||||||||||||||||||
| SELGRADDIR | Direction of the Selected Gradient (0-None , 1-Top to Bottom, 2 Bottomto top, 3 Left to Right, 4 Right to Left) | |||||||||||||||||||||||
| RADIUS | This attribute lets you specify RADIUS of the Rounded background rect. 0 for this attr will have a standard Rectangle. When Radius is specified the Background rounded rectangle is adjusted so that the Curves donot touch the control edges. To achieve this the background rectangle is made bigger according to the Radius value. | |||||||||||||||||||||||
| Corner | Corners to be Rounded (Bitmask 1 Top Left, 2 Top Right, 4 Bottom Left, 8 Bottom Right) 15 will round all the corners (1+2+4+8). |
Methods.
| Method Name | Description | Applies | GBasic Method | GBasic Sample |
| Show | Displays the control | ALL | Show() | #UID.Show() |
| Hide | Hides the Control | ALL | Hide() | #UID.Hide() |
| Setfocus | This Method Sets the Focus to the Field |
#NAME.SetFocus() | ||
| Paint | This Method Paints the Field |
If PaintNowis 1 then the Field is painted to the screen. |
#NAME.Paint(1) | |
| Move | This Method Moves a Field |
DX and DY are the Incremental Positions to move. If PaintNow is 1 then the Field is painted to the screen. |
#NAME.Move(10,10,1) |
| TagName | Description | Applies | GBasic Property | GBasic Sample |
| STARTSEL / ENDSEL | NOTE: This attribute is available only during runtime. |
To Text Controls |
print #NAME.starsel print #NAME.endsel #NAME.starsel=0 #NAME.endsel=len(#NAME$) setfocus(\"NAME\") |