class hk_dsgridcolumn
|
structure of a column in a grid. More... |
|
|
Public Types
Public Methods
- hk_dsgridcolumn (void)
- virtual ~hk_dsgridcolumn (void)
- 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,bool is_table=true, bool registerchange=true)
- hk_datasource* listdatasource (void)
- hk_string listdatasourcename (void)
- bool listdatasource_is_table (void)
- 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)
structure of a column in a grid.
enum enum_columntype {columnedit,columnbool,columncombo}
| enum_columntype |
hk_dsgridcolumn (void)
| hk_dsgridcolumn |
~hk_dsgridcolumn (void)
| ~hk_dsgridcolumn |
[virtual]
void set_displayname (hk_string,bool registerchange=true)
| set_displayname |
the text displayed in the column header. If not set the columnname will be displayed
void set_columntype (enum_columntype,bool registerchange=true)
| set_columntype |
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
enum_columntype columntype (void)
| columntype |
void set_columnwidth (int ,bool registerchange=true)
| set_columnwidth |
the (visible) width of the column
int columnwidth (void)
| columnwidth |
void savedata (ostream& s)
| savedata |
[virtual]
Reimplemented from hk_dsdatavisible.
void loaddata (const hk_string& definition)
| loaddata |
[virtual]
Reimplemented from hk_dsdatavisible.
void set_listdatasource (const hk_string& datasourcename,bool is_table=true, bool registerchange=true)
| set_listdatasource |
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.
Parameters:
list | the datasource which contains the values displayed in the combobox
|
hk_string listdatasourcename (void)
| listdatasourcename |
bool listdatasource_is_table (void)
| listdatasource_is_table |
void set_viewcolumnname (const hk_string& viewcolumn,bool registerchange=true)
| set_viewcolumnname |
The column of the listdatasource which will be displayed in the combobox
hk_string viewcolumnname (void)
| viewcolumnname |
void set_listcolumnname (const hk_string& listcolumn,bool registerchange=true)
| set_listcolumnname |
The column containing the equivalent key to the column set with set_column
hk_string listcolumnname (void)
| listcolumnname |
bool set_listpresentationdatasource (long n, bool registerchange=true)
| set_listpresentationdatasource |
[virtual]
if this combobox is part of a hk_presentation object (i.e. a form) you can set the listdatasource by its unique presentation number
long listpresentationdatasource (void)
| listpresentationdatasource |
Reimplemented from hk_dsdatavisible.
[virtual]
Reimplemented from hk_dsdatavisible.
unsigned int find (unsigned int from,unsigned int to,const hk_string& searchtext,bool wholephrase=false,bool casesensitive=false,bool backwards=false)
| find |
Reimplemented from hk_dsdatavisible.
bool is_findstring (unsigned int pos,const hk_string& searchtext,bool wholephrase=false,bool casesensitive=false)
| is_findstring |
- Version: $Revision: 1.13 $
- Author: Horst Knorr (hk_classes@knoda.org)
- Generated: horst on horstnotebook on Tue Mar 30 19:06:43 2004, using kdoc 2.0a54.