wxMaskEdit Documentation                 wxwidgets 2.6.2 .... or 2.8.9

02.00      31/08/2006

exemples:

 V_DATE->wxMaskSet( wxT("####/##/##"),ME_DATE,GBLANKS);

 V_TELEPHONE->wxMaskSet( wxT("(###)#.#.###.###.###"),ME_DATE,GBLANKS);

 V_PRIX->wxMaskSet( wxT("###,###.##$"),ME_NDEC,GBLANKS);

 V_QTE->wxMaskSet( wxT("§### ###.###Kg"),ME_NDECS,GZEROS);

V_MAIL->wxMaskSet( wxT("§§§§-###@HOTMAIL.com"),ME_LTRNUM,GBLANKS);

use   § = letter or number       # = number only

==================================================
01.30 ->Adaptation of the function wxMaskEdit with wxTextCtrl for more simplicity.
01.50 ->Adaptation of the function GCC 3.4.2 or VC2005
01.60 -> Modification of the fonction to decimal     type  ME_NDEC  ME_NDECS       via   ME_NUM  ME_SIGNED
01.70 -> 
Adaptation of the function GCC 3.4.4    Change ToAsscii()   ==> Tochar() Change of type of function for comptatibilité with decimal float of GCC AND BD2
01.80 ->Adaptation of the function   new SetClear();    Change OnLostFocus  process  CRTL&TAB (pos caret first) hold last
                                                      Police default
// font Underline = true
this->SetFont(wxFont(10,wxFONTFAMILY_SWISS, wxNORMAL,wxFONTWEIGHT_NORMAL ,true,wxT("Courier")));
process is correct for underline or no  proportionel (Arial)

01.90 -> Modification  taken into account "IsEditable" and new type "Dates"  ME_DATE = 0 or  0000/00/00


__________________________________________New ________________________________________________________
02.00
-> Modification of management of cursor and taken into account centring to the left

_____________________________________________________________________________________________________
major -> Redefining of the centring    1.50
              Adaptation of posting
              Retreats of errors warning all

             NEW: NumberGroup::NBLANKS - >   variable GBLANKS or GZEROS
_____________________________________________________________________________________________________

Bonjour voilà j'ai épuré le code
le but était de comprendre pourquoi le c++
cela était plus simple de réaliser un programme avec un utilitaire
ce code m'a aidé à comprendre wxwidget (un peu) de me familiariser avec l'héritage c++
de sortir de la programmation procédurale (linéaire)
je ne ¦prétends pas que cela est parfait mais je voulais être le plus proche de la saisie 5250 industriel    
et ne pas remplacer word ect....

 

// Pas de contrôle si double entier ou long  
// Le principe du contrôle de saisie n'est pas de prendre la main sur le résultats mais d'assurer la conformité attendue

J' espère que comme pour moi cela vous aidera et pourquoi pas continuerez.

Je remercie pour tous les exemples et les FAQ. wxdevcpp

Hello here I purified the code the goal was to include/understand
why C that was simpler to carry out a program with a utility
this code helped me has to include/understand wxwidget (a little)
to familiarize me with the heritage C to leave the procedural
programming (linear) I ¦prétends not that that is perfect but wanted to be closest to seizure 5250 industrialist and
not to replace Word ect....
J' hopes that as for me that will help you and why not will continue.
thank for all the examples and the FAQ.. wxdevcpp

// No complete or long control so double  
// The principle of the control of seizure is not to take the hand
// on results but to assure the waited conformities


je remercie le site http://wxforum.shadonet.com/ qui est vraiement une source et une mine d'or.
fait avec wxdevccp

remplace
// wxTextCtrl* V_Nom;

RENAME  wxTextCtrl   to  wxMaskEdit   *V_Nom;

V_NOM = new wxMaskEdit(this, ID_V_NOM, wxT(""),wxPoint(117,87), wxSize(104,21), 0, wxDefaultValidator, wxT("V_NOM"),wxT(""),ME_CAPBLK,GBLANKS);

or

V_NOM = new wxMaskEdit(this, ID_V_NOM, wxT(""),wxPoint(117,87), wxSize(104,21));

default  wxT(""),ME_LIBRE,GBLANK

wxT("mask.....")    § Alpha ect...     # Num 

ME_......  type contrôle 

GBLANK  cadrage  / Centring    blank

NZEROS   cadrage  / Centring    0 

#define  ME_LTRNUM   0
#define  ME_CAPITAL   1
#define  ME_LIBRE        2
#define  ME_CAPBLK   3
#define  ME_LTRBLK    4
#define  ME_CAPLBR    5
#define  ME_SIGNED     6
#define  ME_ALPHA      7
#define  ME_NUM          8
#define ME_NDEC        9
#define ME_NDECS    10
#define 
ME_DATE      10
#define  GZEROS   false
#define GBLANKS   true

wxT("§§§§§§§§§§§§§§§§§§§§§") automatique SetMaxLength(20);

 V_NOM->wxMaskSet( wxT("§§§§§§§§§§§§§§§§§§§§§"),ME_CAPBLK,GBLANKS);

/*
V_Nom = new wxTextCtrl(this, ID_V_NOM, wxT(""),wxPoint(117,87), wxSize(104,21), 0, wxDefaultValidator ,wxT("V_Nom"));
V_Nom->SetMaxLength(20);

*/

caractère   ALPHA ' §'  NUM '#'                                         NOT USE  ' _'     interprete   '_' and underline _________________  

source  http://www.ombrebleu.com/wxsrc/src/ftp/

 réalisé avec wxdevcpp  6.9  wxwidget 2.6.2 

touche fonction delete home end decimal integer string possibilite extrac. text or absolut or *char  

ex:
Text : 12/10/1951         absolut : 12101951        Date  0 is Null or  200601?3  not blank
Text :  00091234567.52   absolut : 0009123456752  
*char if use decimal recomended  9123456.52  lol €

 


Généré le Tue Feb 7 21:54:09 2006 pour wxMaskEdit par  doxygen1.4.6-NO