could you pls help me on how to limit the number of characters to be written on the txt cntrl for i have a txtcontrol to write infinitely and want I want is to limit the characters into 9 or 10 characters only...How shall i perform that?
Thanks in advanced.....
how to limit text in the txt control Topic is solved
-
- Knows some wx things
- Posts: 29
- Joined: Wed May 09, 2007 1:01 am
- Location: Manila,Philippines
- Contact:
how to limit text in the txt control
What important in a problem is not the solution but the lessons you learned in finding the solution.
-
- Knows some wx things
- Posts: 29
- Joined: Wed May 09, 2007 1:01 am
- Location: Manila,Philippines
- Contact:
Thnkz
thanks for your SetMaxLength but it is still a failure on my part because i could not able to run my program if i uses that member...
Here is my idea on my program:
wxTextCtrl *txtctrl=new wxTextCtrl(this,-1,_T(""),wxPoint(140,25),wxSize(130,25));
txtctrl->SetMaxLength(unsigned long 5);
Everytime i compile this program on the terminal it always flag a message of
error:expected primary-expression before unsigned...
what is the primary function needed?
Here is my idea on my program:
wxTextCtrl *txtctrl=new wxTextCtrl(this,-1,_T(""),wxPoint(140,25),wxSize(130,25));
txtctrl->SetMaxLength(unsigned long 5);
Everytime i compile this program on the terminal it always flag a message of
error:expected primary-expression before unsigned...
what is the primary function needed?
What important in a problem is not the solution but the lessons you learned in finding the solution.