MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
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
 Get the number of all rows in the grid control. More...
 
#define GRIDM_GETCOLCOUNT   0xF21B
 Get the number of all columns in the grid control. More...
 
#define GRIDM_SETNUMFORMAT   0xF21C
 Set 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
 Set the selected cell(s) in the grid control. More...
 
#define GRIDM_GETSELECTED   0xF21E
 Get 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

◆ GRIDM_ADDCOLUMN

#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.

int index;
GRIDCELLDATA* celldata;
wParam = (WPARAM)index; // The index of the column which you want to add after it, zero base.
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 485 of file gridview.h.

◆ GRIDM_ADDDEPENDENCE

#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.

GRIDCELLDEPENDENCE* dependence
wParam = 0;
lParam = (WPARAM)dependence; // Dependence relationship for adding.
Returns
Returns a dependence id if successful, or GRID_ERR otherwise.

Definition at line 617 of file gridview.h.

◆ GRIDM_ADDROW

#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.

int index;
GRIDCELLDATA* celldata;
wParam = (WPARAM)index; // The index of the row which you want to add after it, zero base.
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 447 of file gridview.h.

◆ GRIDM_DELCOLUMN

#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.

int index;
wParam = 0;
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 503 of file gridview.h.

◆ GRIDM_DELDEPENDENCE

#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.

int dependence_id
wParam = (WPARAM)dependence_id;
lParam = 0.
Returns
Returns GRID_OKAY, or GRID_ERR otherwise.

Definition at line 637 of file gridview.h.

◆ GRIDM_DELROW

#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.

int index;
wParam = 0;
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 466 of file gridview.h.

◆ GRIDM_ENDCELLEDIT

#define GRIDM_ENDCELLEDIT   0xF221

This message is used inside minigui.

Definition at line 643 of file gridview.h.

◆ GRIDM_GETCELLPROPERTY

#define GRIDM_GETCELLPROPERTY   0xF211

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

GRIDCELLS* cells;
GRIDCELLDATA* celldata;
wParam = (WPARAM)cell; // The cell(only for one cell now) which you want to get it's property
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 349 of file gridview.h.

◆ GRIDM_GETCOLCOUNT

#define GRIDM_GETCOLCOUNT   0xF21B

Get 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.

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

Definition at line 535 of file gridview.h.

◆ GRIDM_GETCOLWIDTH

#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.

int index;
wParam = 0;
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 388 of file gridview.h.

◆ GRIDM_GETROWCOUNT

#define GRIDM_GETROWCOUNT   0xF21A

Get 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.

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

Definition at line 519 of file gridview.h.

◆ GRIDM_GETROWHEIGHT

#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.

int index ;
wParam = 0
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 427 of file gridview.h.

◆ GRIDM_GETSELECTED

#define GRIDM_GETSELECTED   0xF21E

Get 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.

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

Definition at line 596 of file gridview.h.

◆ GRIDM_SETCELLPROPERTY

#define GRIDM_SETCELLPROPERTY   0xF210

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

GRIDCELLS* cells;
GRIDCELLDATA* celldata;
wParam = (WPARAM)cells; // The cell(s) which you want to set it's(their) property
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 329 of file gridview.h.

◆ GRIDM_SETCOLWIDTH

#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.

int index;
int width;
wParam = (WPARAM)index; // The index of the column which you want to set width.
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 369 of file gridview.h.

◆ GRIDM_SETNUMFORMAT

#define GRIDM_SETNUMFORMAT   0xF21C

Set 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.

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

Definition at line 556 of file gridview.h.

◆ GRIDM_SETROWHEIGHT

#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.

int index
int height;
wParam = (WPARAM)index; // The index of the row which you want to set height.
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 408 of file gridview.h.

◆ GRIDM_SETSELECTED

#define GRIDM_SETSELECTED   0xF21D

Set 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.

GRIDCELLS* cells
wParam = 0;
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 576 of file gridview.h.

GRIDM_GETCOLCOUNT
#define GRIDM_GETCOLCOUNT
Get the number of all columns in the grid control.
Definition: gridview.h:535
GRIDM_SETNUMFORMAT
#define GRIDM_SETNUMFORMAT
Set the number format of a cell in the grid control. the format is just same as format in c printf.
Definition: gridview.h:556
WPARAM
UINT_PTR WPARAM
A type definition for the first message paramter.
Definition: common.h:706
GRIDM_GETROWHEIGHT
#define GRIDM_GETROWHEIGHT
An Application sends a GRIDM_GETROWHEIGHT message to get a row height in the grid control.
Definition: gridview.h:427
GRIDM_SETCELLPROPERTY
#define GRIDM_SETCELLPROPERTY
An Application sends a GRIDM_SETCELLPROPERTY message to set the cells' property in the grid control.
Definition: gridview.h:329
GRIDM_GETROWCOUNT
#define GRIDM_GETROWCOUNT
Get the number of all rows in the grid control.
Definition: gridview.h:519
GRIDM_ADDDEPENDENCE
#define GRIDM_ADDDEPENDENCE
Adds a dependence relationship of cells to another cells.
Definition: gridview.h:617
_GRIDCELLDATA
Definition: gridview.h:271
GRIDM_SETROWHEIGHT
#define GRIDM_SETROWHEIGHT
An Application sends a GRIDM_SETROWHEIGHT message to set a row height in the grid control.
Definition: gridview.h:408
GRIDM_ADDROW
#define GRIDM_ADDROW
An Application sends a GRIDM_ADDROW message to add a new row to the control.
Definition: gridview.h:447
GRIDM_GETCELLPROPERTY
#define GRIDM_GETCELLPROPERTY
An Application sends a GRIDM_GETCELLPROPERTY message to get a single cell's property in the grid cont...
Definition: gridview.h:349
GRIDM_SETCOLWIDTH
#define GRIDM_SETCOLWIDTH
An Application sends a GRIDM_SETCOLWIDTH message to set column width in the grid control.
Definition: gridview.h:369
GRIDM_DELROW
#define GRIDM_DELROW
An Application sends a GRIDM_DELROW message to delete a row frow the control.
Definition: gridview.h:466
_GRIDCELLS
Definition: gridview.h:174
GRIDM_DELCOLUMN
#define GRIDM_DELCOLUMN
An Application sends a GRIDM_DELCOLUMN message to delete a column frow the control.
Definition: gridview.h:503
LPARAM
UINT_PTR LPARAM
A type definition for the second message paramter.
Definition: common.h:712
GRIDM_GETCOLWIDTH
#define GRIDM_GETCOLWIDTH
An Application sends a GRIDM_GETCOLWIDTH message to get a column width in the grid control.
Definition: gridview.h:388
GRIDM_SETSELECTED
#define GRIDM_SETSELECTED
Set the selected cell(s) in the grid control.
Definition: gridview.h:576
GRIDM_GETSELECTED
#define GRIDM_GETSELECTED
Get the selected cell(s) in the grid control.
Definition: gridview.h:596
GRIDM_ADDCOLUMN
#define GRIDM_ADDCOLUMN
An Application sends a GRIDM_ADDCOLUMN message to add a new column to the control.
Definition: gridview.h:485