![]() |
|
#1
|
|||
|
|||
TextBox->RefreshText () method???Hello again,
so here I am once again - in need of guidance. I've got my textboxes working how I want them but I'm having trouble resetting them to their default values. I'm using, CPP / C++ / C Code:
but all that this does is clear the textbox not reset it. I was of the impression that this was the method I needed to use for my task so why does it not work?? Am I using it wrong? |
|
#2
|
|||
|
|||
Sorry that should be...TextBox->ResetText () methodSorry that should be...TextBox->ResetText () method
|
|
#3
|
||||
|
||||
|
ResetText is inherited from the Control class. It will indeed reset the text in the textbox to the default value. But the default value is an empty string, and I don't know of any way to change it (I really searched for it).
In conclusion, I don't think its functionality is the one you need. Just write your own Reset method and have a private string member defaultValue, which you can set at any time using another method, SetDefaultText(string defaultText). It's the best I could come up with Best regards, Lucian __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#4
|
|||
|
|||
|
Thanks Lucian
I can't find anything on changing it either. I'll have to do it the hard way and write it myself. ![]() |
Recent GIDBlog
Stupid Management Policies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Checking textbox data is numeric!! | richiemac | .NET Forum | 6 | 19-May-2005 07:54 |
| I have to use an other method ? | C05MIN | MySQL / PHP Forum | 1 | 26-Jan-2005 11:16 |
| calling abstract base class method calls draw instead | achoo | FLTK Forum | 1 | 19-Dec-2004 10:38 |
| regarding main method | jerry | C++ Forum | 18 | 09-Mar-2004 19:48 |
| Best method to get listed on Google | no1special_1999 | Search Engine Optimization Forum | 4 | 24-Sep-2003 00:34 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The