This reference page is linked to from the following overview topics: Events & callbacks.
Base spreadsheet class.
Definition at line 1501 of file fbcontrols.h.
#include <fbcontrols.h>
Public Member Functions |
|
FBSpread () | |
Constructor. |
|
virtual void | RowAdd (char *pString, kReference pRef=0) |
Add a row. |
|
virtual void | RowSort (bool pAscending=true) |
Sort rows. |
|
virtual void | ColumnAdd (char *pString, kReference pRef=0) |
Add a column. |
|
virtual FBSpreadCell | GetCurrentCell () |
Get the current cell. |
|
virtual FBSpreadCell | GetCell (kReference pRef, int pColumn) |
Get a cell from row and column numbers.
|
|
virtual FBSpreadColumn | GetColumn (int pColumn) |
Get a column from a column number. |
|
virtual FBSpreadRow | GetRow (kReference pRef) |
Get a row from a row reference. |
|
virtual void | SetCell (kReference pRef, int pColumn, char *pString) |
Set a cell's value. |
|
virtual void | GetCell (kReference pRef, int pColumn, char *&pString) |
Get a cell's value. |
|
virtual void | SetCellView (kReference pRef, int pColumn, HIKtView pView) |
Set a cell's internal toolkit view. |
|
virtual void | GetCellView (kReference pRef, int pColumn, HIKtView &pView) |
Get a cell's internal toolkit view. |
|
virtual void | Clear () |
Clear spreadsheet This function will empty
spreadsheet of all its rows, columns and cells. |
|
virtual void | SetCell (kReference pRef, int pColumn, int pValue) |
Set a cell's value. |
|
virtual void | SetCell (kReference pRef, int pColumn, kLongLong pValue) |
virtual void | SetCell (kReference pRef, int pColumn, double pValue) |
virtual void | GetCell (kReference pRef, int pColumn, int &pValue) |
Get a cell's value. |
|
virtual void | GetCell (kReference pRef, int pColumn, kLongLong &pValue) |
virtual void | GetCell (kReference pRef, int pColumn, double &pValue) |
Public Attributes |
|
FBPropertyString | Caption |
Read Write Property: Caption to
display for spreadsheet. |
|
FBPropertykReference | Row |
Read Write Property: Current row.
|
|
FBPropertyInt | Column |
Read Write Property: Current column.
|
|
FBPropertyBool | MultiSelect |
Read Write Property: Can there be
multiple selections? |
|
FBPropertyEvent | OnCellChange |
Event: Cell value changed. |
|
FBPropertyEvent | OnRowClick |
Event: Row clicked. |
|
FBPropertyEvent | OnColumnClick |
Event: Column clicked. |
|
FBPropertyEvent | OnDragAndDrop |
Event: Drag and drop event. |
FBSpread | ( | ) |
Constructor.
virtual void RowAdd | ( | char * | pString, |
kReference | pRef = 0 |
||
) | [virtual] |
Add a row.
pString | Text to display with row. |
pRef | User-defined reference for row(default=0). |
virtual void RowSort | ( | bool | pAscending = true |
) | [virtual] |
virtual void ColumnAdd | ( | char * | pString, |
kReference | pRef = 0 |
||
) | [virtual] |
Add a column.
pString | Text to display with column. |
pRef | User-define column reference number(default=0). |
virtual FBSpreadCell GetCurrentCell | ( | ) | [virtual] |
virtual FBSpreadCell GetCell | ( | kReference | pRef, |
int | pColumn | ||
) | [virtual] |
Get a cell from row and column numbers.
pRef | Row reference. |
pColumn | Column number. |
virtual FBSpreadColumn GetColumn | ( | int | pColumn | ) | [virtual] |
Get a column from a column number.
pColumn | Column number. |
virtual FBSpreadRow GetRow | ( | kReference | pRef | ) | [virtual] |
Get a row from a row reference.
pRef | Reference to a row. |
virtual void SetCell | ( | kReference | pRef, |
int | pColumn, | ||
char * | pString | ||
) | [virtual] |
Set a cell's value.
pRef | Row of cell. |
pColumn | Column of cell. |
pString | Cell's new value. |
virtual void SetCell | ( | kReference | pRef, |
int | pColumn, | ||
int | pValue | ||
) | [virtual] |
Set a cell's value.
pRef | Row of cell. |
pColumn | Column of cell. |
pValue | Cell's new value. |
virtual void SetCell | ( | kReference | pRef, |
int | pColumn, | ||
kLongLong | pValue | ||
) | [virtual] |
virtual void SetCell | ( | kReference | pRef, |
int | pColumn, | ||
double | pValue | ||
) | [virtual] |
virtual void GetCell | ( | kReference | pRef, |
int | pColumn, | ||
char *& | pString | ||
) | [virtual] |
Get a cell's value.
pRef | Row of cell. |
pColumn | Column of cell. |
pString | String value of cell. |
virtual void GetCell | ( | kReference | pRef, |
int | pColumn, | ||
int & | pValue | ||
) | [virtual] |
Get a cell's value.
pRef | Row of cell. |
pColumn | Column of cell. |
pValue | Numeric value of cell. |
virtual void GetCell | ( | kReference | pRef, |
int | pColumn, | ||
kLongLong & | pValue | ||
) | [virtual] |
virtual void GetCell | ( | kReference | pRef, |
int | pColumn, | ||
double & | pValue | ||
) | [virtual] |
virtual void SetCellView | ( | kReference | pRef, |
int | pColumn, | ||
HIKtView | pView | ||
) | [virtual] |
Set a cell's internal toolkit view.
pRef | Row of cell. |
pColumn | Column of cell. |
pView | View to use to set cell's view. |
virtual void GetCellView | ( | kReference | pRef, |
int | pColumn, | ||
HIKtView & | pView | ||
) | [virtual] |
Get a cell's internal toolkit view.
pRef | Row of cell. |
pColumn | Column of cell. |
pView | Handle of view. |
virtual void Clear | ( | ) | [virtual] |
Clear spreadsheet This function will empty spreadsheet of all its rows, columns and cells.
Read Write Property: Caption to display for spreadsheet.
Reimplemented from FBVisualComponent.
Definition at line 1508 of file fbcontrols.h.
Read Write Property: Current row.
Definition at line 1509 of file fbcontrols.h.
Read Write Property: Current column.
Definition at line 1510 of file fbcontrols.h.
Read Write Property: Can there be multiple selections?
Definition at line 1511 of file fbcontrols.h.
Event: Drag and drop event.
Definition at line 1516 of file fbcontrols.h.