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 » Tue Jan 31, 2006 4:02 am

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 » Tue Jan 31, 2006 6:26 pm

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 » Wed Feb 01, 2006 8:11 am

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 » Wed Feb 01, 2006 11:00 pm

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 » Thu Feb 02, 2006 7:51 am

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 » Fri Feb 03, 2006 2:20 pm

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 » Fri Feb 03, 2006 2:34 pm

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 » Fri Feb 03, 2006 3:02 pm

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 » Fri Feb 03, 2006 4:07 pm

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 » Sat Feb 11, 2006 7:26 am

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