WXMASKEDEDIT Topic is solved

If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
Post Reply
JPlaroche
Earned some good credits
Earned some good credits
Posts: 131
Joined: Fri Dec 09, 2005 4:58 pm
Contact:

WXMASKEDEDIT

Post by JPlaroche »

It is possible to post a code to test him on the forum

new wxmaskededit

please :roll: :wink: :wink: :idea:
apprendre et developper en C++ des sub routine interfac� HIM et BD pour validation acquis
Jean-Pierre

project define DB descripteur idem IBM400
http://www.ombrebleu.com/wxsrc/src/
JPlaroche
Earned some good credits
Earned some good credits
Posts: 131
Joined: Fri Dec 09, 2005 4:58 pm
Contact:

Re: WXMASKEDEDIT

Post by JPlaroche »

JPlaroche wrote:It is possible to post a code to test him on the forum

new wxmaskededit

please :roll: :wink: :wink: :idea:

Code: Select all

//wxMaskedEdit Control - wxext library - 
//(c) 2005 RSAISP Inc.

// This source code may be distributed and modified
// in any way that you see fit, free of charge.
// However, RSAISP Inc. asks that you please keep 
// http://dev.rsaisp.com/
// this notice on any modified or copied source files 

// Jean-Pierre Laroche
// I changed and brought some modification to make simpler 
// the type and the most corresponding possible has a type 5250
// J'ai chang
apprendre et developper en C++ des sub routine interfac� HIM et BD pour validation acquis
Jean-Pierre

project define DB descripteur idem IBM400
http://www.ombrebleu.com/wxsrc/src/
NinjaNL
Moderator
Moderator
Posts: 899
Joined: Sun Oct 03, 2004 10:33 am
Location: Oosterwolde, Netherlands

Post by NinjaNL »

Nice control.

I added code tags, and moved it here.

It seems to work too. Nice Job.
Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/
JPlaroche
Earned some good credits
Earned some good credits
Posts: 131
Joined: Fri Dec 09, 2005 4:58 pm
Contact:

Re: WXMASKEDEDIT

Post by JPlaroche »

J'ai un nouveau code test
apprendre et developper en C++ des sub routine interfac� HIM et BD pour validation acquis
Jean-Pierre

project define DB descripteur idem IBM400
http://www.ombrebleu.com/wxsrc/src/
NinjaNL
Moderator
Moderator
Posts: 899
Joined: Sun Oct 03, 2004 10:33 am
Location: Oosterwolde, Netherlands

Re: WXMASKEDEDIT

Post by NinjaNL »

JPlaroche wrote:I would like to know if you found of bug svp
I don't think so, but I didn't do a great deal of testing.
Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/
JPlaroche
Earned some good credits
Earned some good credits
Posts: 131
Joined: Fri Dec 09, 2005 4:58 pm
Contact:

Re: WXMASKEDEDIT

Post by JPlaroche »

It is not perfect but function with dialog and frame

Code: Select all

//wxMaskedEdit Control - wxext library - 
//(c) 2005 RSAISP Inc.

// This source code may be distributed and modified
// in any way that you see fit, free of charge.
// However, RSAISP Inc. asks that you please keep 
// http://dev.rsaisp.com/
// this notice on any modified or copied source files 

// Jean-Pierre Laroche
// I changed and brought some modification to make simpler 
// the type and the most corresponding possible has a type 5250
// J'ai chang
apprendre et developper en C++ des sub routine interfac� HIM et BD pour validation acquis
Jean-Pierre

project define DB descripteur idem IBM400
http://www.ombrebleu.com/wxsrc/src/
NinjaNL
Moderator
Moderator
Posts: 899
Joined: Sun Oct 03, 2004 10:33 am
Location: Oosterwolde, Netherlands

Post by NinjaNL »

Don't forget to place your code within the code tags. It makes reading code so much easier, and also allows readers to click on a wxWidgets class and jump to the documentation for that class.
Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/
JPlaroche
Earned some good credits
Earned some good credits
Posts: 131
Joined: Fri Dec 09, 2005 4:58 pm
Contact:

Re: WXMASKEDEDIT

Post by JPlaroche »

Code: Select all

wxString NumberGroup::getTransform() const
{
  wxVariant val( TextPart::getValue() );
  long lval = val.GetLong();
  
  wxVariant sval( lval );
  
  wxString str(sval.GetString());
  str.Replace("_", " "); 
  size_t ldiff = this->getSize() - str.Len();
  if (m_beh == NGB_ZEROLEAD)     str.Pad(ldiff, '0', false);
    //take what we have and pad with zeros

  if (m_beh == NGB_BLANKLEAD) str.Pad(ldiff, ' ', false);
    //take what we have and pad with zeros
    
    str.Replace("_", " ",true);

  
  return str;
}

wxString LetterGroup::getTransform() const
{ 
     wxString val( TextPart::getValue() );
         val.Replace("_", " ",true);
  return val;

}
change :oops: return value is not good Eliminate _ thank

I am going to open on a site the possibilite to have DOXFILE now source thank you to wait one can :roll: :P :? :wink:
apprendre et developper en C++ des sub routine interfac� HIM et BD pour validation acquis
Jean-Pierre

project define DB descripteur idem IBM400
http://www.ombrebleu.com/wxsrc/src/
JPlaroche
Earned some good credits
Earned some good credits
Posts: 131
Joined: Fri Dec 09, 2005 4:58 pm
Contact:

Re: WXMASKEDEDIT

Post by JPlaroche »

apprendre et developper en C++ des sub routine interfac� HIM et BD pour validation acquis
Jean-Pierre

project define DB descripteur idem IBM400
http://www.ombrebleu.com/wxsrc/src/
JPlaroche
Earned some good credits
Earned some good credits
Posts: 131
Joined: Fri Dec 09, 2005 4:58 pm
Contact:

Re: WXMASKEDEDIT

Post by JPlaroche »

forum wxcode :oops: :oops:
apprendre et developper en C++ des sub routine interfac� HIM et BD pour validation acquis
Jean-Pierre

project define DB descripteur idem IBM400
http://www.ombrebleu.com/wxsrc/src/
Post Reply