class hk_dsgridcolumn

structure of a column in a grid. More...

Definition#include <hk_classes/hk_classes/hk_dsgridcolumn.h>
Inheritshk_dsdatavisible [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods


Detailed Description

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

hk_string  displayname (void)

displayname

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:
listthe datasource which contains the values displayed in the combobox

hk_datasource*  listdatasource (void)

listdatasource

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

hk_string  value_at (unsigned long)

value_at

Reimplemented from hk_dsdatavisible.

void  set_datasource (hk_datasource*)

set_datasource

[virtual]

Reimplemented from hk_dsdatavisible.

hk_dscombobox*  combobox (void)

combobox

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