mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
Data Structures | Macros | Enumerations | Variables
mEdit

Data Structures

struct  mEdit
 the edit struct of edit control, derived from mScrollView. More...
 
struct  mEditClass
 the VTable of mEdit, derived from mScrollViewClass. More...
 
struct  mEditRenderer
 Edit class's Renderer interface, derived from mScrollViewRenderer. More...
 

Macros

#define NCSS_EDIT_LEFT   (0x0000L<<NCSS_SCRLV_SHIFT)
 left align edit More...
 
#define NCSS_EDIT_CENTER   (0x0001L<<NCSS_SCRLV_SHIFT)
 center align edit More...
 
#define NCSS_EDIT_RIGHT   (0x0002L<<NCSS_SCRLV_SHIFT)
 right align edit More...
 
#define NCSS_EDIT_UPPERCASE   (0x0004L<<NCSS_SCRLV_SHIFT)
 uppercase edit More...
 
#define NCSS_EDIT_LOWERCASE   (0x0008L<<NCSS_SCRLV_SHIFT)
 lowercase edit More...
 
#define NCSS_EDIT_NOHIDESEL   (0x0010L<<NCSS_SCRLV_SHIFT)
 When lose the focus, it is still selected. More...
 
#define NCSS_EDIT_READONLY   (0x0020L<<NCSS_SCRLV_SHIFT)
 readonly More...
 
#define NCSS_EDIT_BASELINE   (0x0040L<<NCSS_SCRLV_SHIFT)
 show text with base line. More...
 

Enumerations

Variables

MGNCS_EXPORT mEditClass g_stmEditCls
 the instance of mEditClass More...
 

Detailed Description

Macro Definition Documentation

#define NCSS_EDIT_BASELINE   (0x0040L<<NCSS_SCRLV_SHIFT)

show text with base line.

Definition at line 434 of file medit.h.

#define NCSS_EDIT_CENTER   (0x0001L<<NCSS_SCRLV_SHIFT)

center align edit

Definition at line 398 of file medit.h.

#define NCSS_EDIT_LEFT   (0x0000L<<NCSS_SCRLV_SHIFT)

left align edit

Definition at line 392 of file medit.h.

#define NCSS_EDIT_LOWERCASE   (0x0008L<<NCSS_SCRLV_SHIFT)

lowercase edit

Definition at line 416 of file medit.h.

#define NCSS_EDIT_NOHIDESEL   (0x0010L<<NCSS_SCRLV_SHIFT)

When lose the focus, it is still selected.

Definition at line 422 of file medit.h.

#define NCSS_EDIT_READONLY   (0x0020L<<NCSS_SCRLV_SHIFT)

readonly

Definition at line 428 of file medit.h.

#define NCSS_EDIT_RIGHT   (0x0002L<<NCSS_SCRLV_SHIFT)

right align edit

Definition at line 404 of file medit.h.

#define NCSS_EDIT_UPPERCASE   (0x0004L<<NCSS_SCRLV_SHIFT)

uppercase edit

Definition at line 410 of file medit.h.

Enumeration Type Documentation

Edit Notify Code :

Enumerator
NCSN_EDIT_SETFOCUS 

control have gaint the input focus

NCSN_EDIT_KILLFOCUS 

control have lost the input focus

NCSN_EDIT_CHANGE 

content of text is changed by inputing user

NCSN_EDIT_CONTCHANGED 

content of text changed when kill focus

NCSN_EDIT_UPDATE 

text update

NCSN_EDIT_SELCHANGED 

selection changed

NCSN_EDIT_MAXTEXT 

the count of text reach maximum length

Definition at line 465 of file medit.h.

enum mEditProp

the Property of edit

Enumerator
NCSP_EDIT_LIMITTEXT 

Get/Set the maximum length of text.

  • Type int
  • Read Write
  • the max length of text
NCSP_EDIT_CARETPOS 

Get/Set the position of charactor.

  • Type int
  • Read Write
  • The postion begin from first charactor , include the CR

Definition at line 444 of file medit.h.

Variable Documentation

g_stmEditCls

the instance of mEditClass

See also
mEditClass