MiniGUI API Reference (MiniGUI-Threads)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros
Messages of grid control

Macros

#define GRIDM_SETCELLPROPERTY   0xF210
 An Application sends a GRIDM_SETCELLPROPERTY message to set the cells' property in the grid control. More...
 
#define GRIDM_GETCELLPROPERTY   0xF211
 An Application sends a GRIDM_GETCELLPROPERTY message to get a single cell's property in the grid control. More...
 
#define GRIDM_SETCOLWIDTH   0xF212
 An Application sends a GRIDM_SETCOLWIDTH message to set column width in the grid control. More...
 
#define GRIDM_GETCOLWIDTH   0xF213
 An Application sends a GRIDM_GETCOLWIDTH message to get a column width in the grid control. More...
 
#define GRIDM_SETROWHEIGHT   0xF214
 An Application sends a GRIDM_SETROWHEIGHT message to set a row height in the grid control. More...
 
#define GRIDM_GETROWHEIGHT   0xF215
 An Application sends a GRIDM_GETROWHEIGHT message to get a row height in the grid control. More...
 
#define GRIDM_ADDROW   0xF216
 An Application sends a GRIDM_ADDROW message to add a new row to the control. More...
 
#define GRIDM_DELROW   0xF217
 An Application sends a GRIDM_DELROW message to delete a row frow the control. More...
 
#define GRIDM_ADDCOLUMN   0xF218
 An Application sends a GRIDM_ADDCOLUMN message to add a new column to the control. More...
 
#define GRIDM_DELCOLUMN   0xF219
 An Application sends a GRIDM_DELCOLUMN message to delete a column frow the control. More...
 
#define GRIDM_GETROWCOUNT   0xF21A
 Gets the number of all rows in the grid control. More...
 
#define GRIDM_GETCOLCOUNT   0xF21B
 Gets the number of all columns in the grid control. More...
 
#define GRIDM_SETNUMFORMAT   0xF21C
 Sets the number format of a cell in the grid control. the format is just same as format in c printf. More...
 
#define GRIDM_SETSELECTED   0xF21D
 Sets the selected cell(s) in the grid control. More...
 
#define GRIDM_GETSELECTED   0xF21E
 Gets the selected cell(s) in the grid control. More...
 
#define GRIDM_ADDDEPENDENCE   0xF21F
 Adds a dependence relationship of cells to another cells. More...
 
#define GRIDM_DELDEPENDENCE   0xF220
 Deletes a dependence relationship of cells to another cells. More...
 
#define GRIDM_ENDCELLEDIT   0xF221
 This message is used inside minigui. More...
 

Detailed Description

Macro Definition Documentation

#define GRIDM_ADDCOLUMN   0xF218

An Application sends a GRIDM_ADDCOLUMN message to add a new column to the control.

if (wParam > nCols) , it will do nothing. nCols is the columns' count of the grid control.

1 GRIDM_ADDCOLUMN
2 int index;
3 GRIDCELLDATA* celldata;
4 
5 wParam = (WPARAM)index; // The index of the column which you want to add after it, zero base.
6 lParam = (LPARAM)celldata; // The property which is setted to the new column.
Returns
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 473 of file gridview.h.

#define GRIDM_ADDDEPENDENCE   0xF21F

Adds a dependence relationship of cells to another cells.

An application sends an GRIDM_ADDDEPENDENCE message to add a dependence relationship of cells to another source cells, when the source cells changed, the target cells could updated automatically.

1 GRIDCELLDEPENDENCE* dependence
2 
3 GRIDM_ADDDEPENDENCE
4 
5 wParam = 0;
6 lParam = (WPARAM)dependence; // Dependence relationship for adding.
Returns
Returns a dependence id if successful, or GRID_ERR otherwise.

Definition at line 605 of file gridview.h.

#define GRIDM_ADDROW   0xF216

An Application sends a GRIDM_ADDROW message to add a new row to the control.

if (wParam > nRows) , it will do nothing. nRows is the rows' count of the grid control.

1 GRIDM_ADDROW
2 int index;
3 GRIDCELLDATA* celldata;
4 
5 wParam = (WPARAM)index; // The index of the row which you want to add after it, zero base.
6 lParam = (LPARAM)celldata; // The property which is setted to the new row.
Returns
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 435 of file gridview.h.

#define GRIDM_DELCOLUMN   0xF219

An Application sends a GRIDM_DELCOLUMN message to delete a column frow the control.

if (wParam < 1 or wParam > nCols) , it will do nothing. nCols is the columns' count of the grid control.

1 GRIDM_DELCOLUMN
2 int index;
3 
4 wParam = 0;
5 lParam = (LPARAM)index; // The index of the column which you want to delete.
Returns
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 491 of file gridview.h.

#define GRIDM_DELDEPENDENCE   0xF220

Deletes a dependence relationship of cells to another cells.

An application sends an GRIDM_DELDEPENDENCE message to delete a dependence relationship of cells to another source cells.

1 int dependence_id
2 
3 GRIDM_ADDDEPENDENCE
4 
5 wParam = (WPARAM)dependence_id;
6 lParam = 0.
Returns
Returns GRID_OKAY, or GRID_ERR otherwise.

Definition at line 625 of file gridview.h.

#define GRIDM_DELROW   0xF217

An Application sends a GRIDM_DELROW message to delete a row frow the control.

if (wParam < 1 or wParam > nRows) , it will do nothing. nRows is the rows' count of the grid control.

1 GRIDM_DELROW
2 int index;
3 
4 wParam = 0;
5 lParam = index; // The index of the row which you want to delete.
Returns
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 454 of file gridview.h.

#define GRIDM_ENDCELLEDIT   0xF221

This message is used inside minigui.

Definition at line 631 of file gridview.h.

#define GRIDM_GETCELLPROPERTY   0xF211

An Application sends a GRIDM_GETCELLPROPERTY message to get a single cell's property in the grid control.

1 GRIDM_GETCELLPROPERTY
2 GRIDCELLS* cells;
3 GRIDCELLDATA* celldata;
4 
5 wParam = (WPARAM)cell; // The cell(only for one cell now) which you want to get it's property
6 lParam = (LPARAM)celldata; // The pointer of the property you want to get.
Returns
Returns GRID_OKAY if successful, or GRID_ERR otherwise.
See also
GRIDCELLDATA

Definition at line 337 of file gridview.h.

#define GRIDM_GETCOLCOUNT   0xF21B

Gets the number of all columns in the grid control.

An application sends an GRIDM_GETCOLCOUNT message to get the number of all columns in the grid control.

1 GRIDM_GETCOLCOUNT
2 
3 wParam = 0;
4 lParam = 0;
Returns
The cols number on success, otherwise -1.

Definition at line 523 of file gridview.h.

#define GRIDM_GETCOLWIDTH   0xF213

An Application sends a GRIDM_GETCOLWIDTH message to get a column width in the grid control.

if (lParam < 1 or lParam > nCols) , it will do nothing. nCows is the columns' count of the grid control.

1 GRIDM_GETCOLWIDTH
2 int index;
3 
4 wParam = 0;
5 lParam = (LPARAM)index; // The index of the column which you want to get width.
Returns
The width of the column on success, otherwise -1.

Definition at line 376 of file gridview.h.

#define GRIDM_GETROWCOUNT   0xF21A

Gets the number of all rows in the grid control.

An application sends an GRIDM_GETROWCOUNT message to get the number of all rows in the grid control.

1 GRIDM_GETROWCOUNT
2 
3 wParam = 0;
4 lParam = 0;
Returns
The rows number on success, otherwise -1.

Definition at line 507 of file gridview.h.

#define GRIDM_GETROWHEIGHT   0xF215

An Application sends a GRIDM_GETROWHEIGHT message to get a row height in the grid control.

if (lParam < 1 or lParam > nRows) , it will do nothing. nRows is the rows' count of the grid control.

1 GRIDM_GETROWHEIGHT
2 int index ;
3 
4 wParam = 0
5 lParam = (LPARAM)index // The index of the row which you want to get height.
Returns
The height of the row on success, otherwise -1.

Definition at line 415 of file gridview.h.

#define GRIDM_GETSELECTED   0xF21E

Gets the selected cell(s) in the grid control.

An application sends an GRIDM_GETSELECTED message to get the selected cell(s) in the grid control.

1 GRIDCELLS* cells
2 
3 GRIDM_GETSELECTED
4 
5 wParam = 0;
6 lParam = (WPARAM)cells; // Get the selected cell(s) to it.
Returns
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 584 of file gridview.h.

#define GRIDM_SETCELLPROPERTY   0xF210

An Application sends a GRIDM_SETCELLPROPERTY message to set the cells' property in the grid control.

1 GRIDM_SETCELLPROPERTY
2 GRIDCELLS* cells;
3 GRIDCELLDATA* celldata;
4 
5 wParam = (WPARAM)cells; // The cell(s) which you want to set it's(their) property
6 lParam = (LPARAM)celldata; // The pointer of the property you want to set.
Returns
Returns GRID_OKAY if successful, or GRID_ERR otherwise.
See also
GRIDCELLDATA

Definition at line 317 of file gridview.h.

#define GRIDM_SETCOLWIDTH   0xF212

An Application sends a GRIDM_SETCOLWIDTH message to set column width in the grid control.

if (lParam < 1 or lParam > nCols) , it will do nothing. nCows is the columns' count of the grid control.

1 GRIDM_SETCOLWIDTH
2 int index;
3 int width;
4 
5 wParam = (WPARAM)index; // The index of the column which you want to set width.
6 lParam = (LPARAM)width; // The width of the column you want to set.
Returns
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 357 of file gridview.h.

#define GRIDM_SETNUMFORMAT   0xF21C

Sets the number format of a cell in the grid control. the format is just same as format in c printf.

An application sends an GRIDM_SETNUMFORMAT message to set the number format of a cell in the grid control.

1 GRIDCELLS cells;
2 char* format
3 
4 GRIDM_SETNUMFORMAT
5 
6 wParam = (WPARAM)cells; // The cells which you want to set.
7 lParam = (WPARAM)format; // The cells' number format, like "%1.2f";
Returns
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 544 of file gridview.h.

#define GRIDM_SETROWHEIGHT   0xF214

An Application sends a GRIDM_SETROWHEIGHT message to set a row height in the grid control.

if (lParam < 1 or lParam > nRows) , it will do nothing. nRows is the rows' count of the grid control.

1 GRIDM_SETROWHEIGHT
2 int index
3 int height;
4 
5 wParam = (WPARAM)index; // The index of the row which you want to set height.
6 lParam = (LPARAM)height; //The height of the row you want to set.
Returns
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 396 of file gridview.h.

#define GRIDM_SETSELECTED   0xF21D

Sets the selected cell(s) in the grid control.

An application sends an GRIDM_SETSELECTED message to set the selected cell(s) in the grid control.

1 GRIDCELLS* cells
2 
3 GRIDM_SETSELECTED
4 
5 wParam = 0;
6 lParam = (WPARAM)cells; // The cell(s) which you want to set selected.
Returns
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 564 of file gridview.h.