Page 1 of 1

WXMASKEDEDIT

Posted: Tue Jan 31, 2006 4:02 am
by JPlaroche
It is possible to post a code to test him on the forum

new wxmaskededit

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

Re: WXMASKEDEDIT

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

Posted: Wed Feb 01, 2006 8:11 am
by NinjaNL
Nice control.

I added code tags, and moved it here.

It seems to work too. Nice Job.

Re: WXMASKEDEDIT

Posted: Wed Feb 01, 2006 11:00 pm
by JPlaroche
J'ai un nouveau code test

Re: WXMASKEDEDIT

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

Re: WXMASKEDEDIT

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

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

Re: WXMASKEDEDIT

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

Re: WXMASKEDEDIT

Posted: Fri Feb 03, 2006 4:07 pm
by JPlaroche

Re: WXMASKEDEDIT

Posted: Sat Feb 11, 2006 7:26 am
by JPlaroche
forum wxcode :oops: :oops: