Ah, yes, it's VLengthValidator. I'm sorry, I was just coding it from my mind in email.
Actually, I'm not receiving an error. It's just that my lineedit is not limiting input to 16 characters. Koen Deforche wrote: > Hey Archimedes, > > 2008/5/13 Archimedes B. Cortes <[EMAIL PROTECTED]>: > >> Hi! Again, another concern with lineedit. >> >> How can I set the maximum length of a WLineEdit or Ext::LineEdit? Sorry, >> I am new to Wt. I really appreciate the toolkit as I am a Qt toolkit >> fan. I was expecting a setMaxLength() function, but documentation led me >> to WValidator which probably I don't know how to use. I already did: >> > > I actually didn't consider this method yet. It looks like it can be added... > > >> Ext::LineEdit* pLblUsername = new Ext::LineEdit(); >> pLblUsername->setValidator(new WValidator(0, 16)); >> > > That should be: new WLengthValidator(0, 16)? > > >> but right now I am still not successful. >> > > What is the actual error or problem you get? > > >> In return I might be able to contribute by coming up with a tutorial. >> Right now, I can't contribute yet on the code since I'm not yet too >> familiar with the core. Having said that, I hope that explains my >> intention. :) >> > > That would be really nice. We are always short of nice tutorials! > > Regards, > koen > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > > > -- Archimedes B. Cortes Application Developer - Server Systems and Technology Group GMA New Media Inc. 12th Floor GMA Network Complex Timog , cor EDSA Quezon City, 1103 +63-917-381-87-52 ,_ _,..._ ,d$$ccc_ d$$$$$$hc$$$$$$$$h. ,d$$$$$$$$$$$$$$$O$$$. ,$$$$h$$$$$FF$$$$$$$$$| ,d$$$$$h$$F;' `F$$;':?$' d$$F?$$$F' ',c. +' d$$h c$$h $$$$'| d$$$h $$F' `' ' | $$$$$L `',-. ,`. | $$$$$$h .' ` | | d$$$$$$ | O ' `. $$$$$F | O , __. , | | Y$FF' ,' ' )" |_| ;"' "' __/ |' |,`. / , | | | .'`--..-' | `. ` (.___,/ | `._,. \ .' | \ \_,' | -hrr- \ / `. / `-....-' ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
