MiniGUI API Reference (MiniGUI-Threads)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Data Structures | Macros | Typedefs
gridview.h File Reference

Go to the source code of this file.

Data Structures

struct  _GRIDVIEWDATA
 
struct  _GRIDCELLS
 
struct  _GRIDCELLDATAHEADER
 
struct  _GRIDCELLDATATEXT
 
struct  _GRIDCELLDATANUMBER
 
struct  _GRIDCELLDATACHECKBOX
 
struct  _GRIDCELLDATASELECTION
 
struct  _GRIDCELLDATA
 

Macros

#define CTRL_GRIDVIEW   "gridview"
 The class name of gridview control. More...
 
#define GRID_OKAY   0
 Gridview return value. More...
 
#define GRID_ERR   (-1)
 Gridview return value. More...
 
#define GV_HALIGN_LEFT   0x00000001
 
#define GV_HALIGN_RIGHT   0x00000002
 
#define GV_HALIGN_CENTER   0x00000003
 
#define GV_VALIGN_TOP   0x00000010
 
#define GV_VALIGN_BOTTOM   0x00000020
 
#define GV_VALIGN_CENTER   0x00000030
 
#define GV_HALIGN_MASK   0x0000000F
 
#define GV_VALIGN_MASK   0x000000F0
 
#define GV_TYPE_UNKNOWN   0x00000000
 
#define GV_TYPE_TEXT   0x00000100
 
#define GV_TYPE_NUMBER   0x00000200
 
#define GV_TYPE_CHECKBOX   0x00000300
 
#define GV_TYPE_SELECTION   0x00000400
 
#define GV_TYPE_HEADER   0x00000500
 
#define GV_TYPE_TABLEHEADER   0x00000600
 
#define GV_TYPE_MASK   0x0000FF00
 
#define GVS_WITHICON   0x00010000
 
#define GVS_WITHCHECKBOX   0x00020000
 
#define GVS_MULTLINE   0x00100000
 
#define GVS_READONLY   0x00200000
 
#define GVS_BOXCHECKED   0x00400000
 
#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...
 
#define GRIDN_HEADLDOWN   1
 This notification code informs a application when the left mouse button down on the gridview.header. More...
 
#define GRIDN_HEADLUP   2
 This notification code informs a application when the left mouse button up on the gridview.header. More...
 
#define GRIDN_KEYDOWN   3
 This notification code informs a application when that a key has been pressed. More...
 
#define GRIDN_CELLDBCLK   4
 This notification code informs a application when the current selected cell has be double clicked. More...
 
#define GRIDN_CELLCLK   5
 This notification code informs a application when the current selected cell has been clicked. More...
 
#define GRIDN_FOCUSCHANGED   6
 This notification code informs a application when the current selected item has changed. More...
 
#define GRIDN_CELLTEXTCHANGED   7
 This notification code informs a application when the cell text has changed. More...
 

Typedefs

typedef struct _GRIDVIEWDATA GRIDVIEWDATA
 
typedef struct _GRIDCELLS GRIDCELLS
 
typedef struct _GRIDCELLDATAHEADER GRIDCELLDATAHEADER
 
typedef struct _GRIDCELLDATATEXT GRIDCELLDATATEXT
 
typedef struct _GRIDCELLDATANUMBER GRIDCELLDATANUMBER
 
typedef struct _GRIDCELLDATACHECKBOX GRIDCELLDATACHECKBOX
 
typedef struct _GRIDCELLDATASELECTION GRIDCELLDATASELECTION
 
typedef struct _GRIDCELLDATA GRIDCELLDATA
 

Detailed Description

Author
Wei Yongming vince.nosp@m.nt@m.nosp@m.inigu.nosp@m.i.or.nosp@m.g
Date
2002/01/06
   This file is part of MiniGUI, a mature cross-platform windowing 
   and Graphics User Interface (GUI) support system for embedded systems
   and smart IoT devices.

   Copyright (C) 2002~2018, Beijing FMSoft Technologies Co., Ltd.
   Copyright (C) 1998~2002, WEI Yongming

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.

   Or,

   As this program is a library, any link to this program must follow
   GNU General Public License version 3 (GPLv3). If you cannot accept
   GPLv3, you need to be licensed from FMSoft.

   If you have got a commercial license of this program, please use it
   under the terms and conditions of the commercial license.

   For more information about the commercial license, please refer to
   <http://www.minigui.com/en/about/licensing-policy/>.

Definition in file gridview.h.