Objet Item, which is a part of datawindow inside the window object
Example - define / write a property
item.itemcode.visible=0
item.itemcode_t.text=Itemname
Example - if fields are in e.g. dw_2 (datawindow 2):
dw_2.item.itemcode.visible=0
dw_2.item.itemcode_t.text=Itemname
If you have more than one row, you can define the row which you read/write
setvar=row=3
item.itemcode:[row].value=myvalue
messagebox=<item.itemcode:[row].value>
Properties
Property |
read |
write |
Description |
|||||||
---|---|---|---|---|---|---|---|---|---|---|
alignment=0...3 |
|
x |
Alignment 0 - (Default) Left, 1 Right, 2 Center, 3 Justified |
|||||||
autohscroll=1/0 |
|
x |
set horizontalscroll in column items item.mycolumn.autohscroll=1 |
|||||||
autovscroll=1/0 |
|
x |
set verticalscroll in column items item.mycolumn.autovscroll=1 |
|||||||
background.<type>=<color> |
|
x |
|
|||||||
bitmapname=bmp\<bitmapname> |
|
x |
Name of bitmapfile (bmp, jpg, gif, png) |
|||||||
bold=true/false |
|
x |
|
|||||||
color |
x |
x |
|
|||||||
coltype |
x |
|
|
|||||||
dbcolumnname |
x |
|
Return the column name |
|||||||
dbname |
x |
|
|
|||||||
dbtablename |
x |
|
|
|||||||
detailbitmap |
|
x |
|
|||||||
destroy |
|
x |
|
|||||||
displayonly=1/0 |
|
x |
Only Column: set input-field to only view |
|||||||
dropdown |
|
x |
||||||||
expression=<expressionvalue> |
|
x |
set expression (formel) (only computeobject) |
|||||||
escapement |
|
x |
|
|||||||
format=<format string> |
|
x |
Displayformat. Only Column and Compute Example: #,##0.00 = 3,000.34 |
|||||||
formatstring |
|
x |
|
|||||||
hscrollbar=1/0 |
|
x |
|
|||||||
italic=true=false |
|
x |
|
|||||||
mandatory=true/false |
|
x |
|
|||||||
password=1/0 |
|
x |
Only Column: set to password-field. You can see only "***" |
|||||||
protect=1/0 |
|
x |
Activates and deactivates editing of a field |
|||||||
redraw |
|
x |
|
|||||||
rightclicktrigger |
x |
x |
Define function of right-click
|
|||||||
setfocus=<column> |
|
x |
|
|||||||
tabsequence=<x> |
|
x |
|
|||||||
tag |
|
x |
|
|||||||
text=<textvalue> |
|
x |
|
|||||||
title=<textvalue> |
|
x |
|
|||||||
type |
x |
|
|
|||||||
simulatetype |
|
x |
|
|||||||
visible=1/0 |
x |
x |
set visible true/false |
|||||||
status |
|
x |
|
|||||||
setstatus |
|
x |
|
|||||||
vsrollbar=1/0 |
|
x |
|
|||||||
x,y,width,height |
x |
x |
|
Value
Property |
Read |
Write |
Description |
|
---|---|---|---|---|
checkid |
|
x |
|
|
default=<value> |
|
x |
only column: if column is null, set value from column item.itemcode.default=myvalue |
|
setnull |
|
x |
only column: set value from column to NULL item.itemcode.setnull |
|
setvalue |
|
x |
set value for a column and send the event "itemchanged" item.itemcode.setvalue=hello world |
|
translate |
|
x |
Translate the value in the current language (all rows!) only for columns! item.itemname.translate |
|
value=<value> |
x |
x |
|
|
values |
x |
|
|
|
displayvalue |
x |
|
|