#include <hk_dsgridcolumn.h>
Inheritance diagram for hk_dsgridcolumn:


Public Types | |
| enum | enum_columntype { columnedit, columnbool, columncombo } |
Public Member Functions | |
| void | set_displayname (hk_string, bool registerchange=true) |
| hk_string | displayname (void) |
| void | set_columntype (enum_columntype, bool registerchange=true) |
| enum_columntype | columntype (void) |
| void | set_columnwidth (int, bool registerchange=true) |
| int | columnwidth (void) |
| virtual void | savedata (ostream &s) |
| virtual void | loaddata (const hk_string &definition) |
| void | set_listdatasource (const hk_string &datasourcename, datasourcetype dt=dt_table, bool registerchange=true) |
| hk_datasource * | listdatasource (void) |
| hk_string | listdatasourcename (void) |
| datasourcetype | listdatasourcetype () const |
| void | set_viewcolumnname (const hk_string &viewcolumn, bool registerchange=true) |
| hk_string | viewcolumnname (void) |
| void | set_listcolumnname (const hk_string &listcolumn, bool registerchange=true) |
| hk_string | listcolumnname (void) |
| virtual bool | set_listpresentationdatasource (long n, bool registerchange=true) |
| long | listpresentationdatasource (void) |
| hk_string | value_at (unsigned long) |
| virtual void | set_datasource (hk_datasource *) |
| hk_dscombobox * | combobox (void) |
| unsigned int | find (unsigned int from, unsigned int to, const hk_string &searchtext, bool wholephrase=false, bool casesensitive=false, bool backwards=false) |
| bool | is_findstring (unsigned int pos, const hk_string &searchtext, bool wholephrase=false, bool casesensitive=false) |
Friends | |
| class | hk_dsgrid |
|
|
loads the object's values out of the definition string. Especially used to load queries, forms and reports Reimplemented from hk_dsdatavisible. |
|
|
stores the object's values to stream s. Especially used to store queries, forms and reports Reimplemented from hk_dsdatavisible. |
|
||||||||||||
|
if columntype is columnedit the celldata will be shown as a string if columntype is columnbool the celldata will be shown as a boolean field |
|
||||||||||||
|
the (visible) width of the column |
|
|
the datasource Reimplemented from hk_dsdatavisible. |
|
||||||||||||
|
the text displayed in the column header. If not set the columnname will be displayed |
|
||||||||||||
|
The column containing the equivalent key to the column set with set_column |
|
||||||||||||||||
|
comboboxes need 2 datasources. One (the normal) datasource is set with set_datasource and stores the values in a field. The second datasource contains a list of possible values for this field.
|
|
||||||||||||
|
if this combobox is part of a hk_presentation object (i.e. a form) you can set the listdatasource by its unique presentation number |
|
||||||||||||
|
The column of the listdatasource which will be displayed in the combobox |
|
|
returns the formatted value of the row 'row' Reimplemented from hk_dsdatavisible. |
1.4.1