Re: [Dev-C++] how to set "tab" key in textbox of win 32 api
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2007-11-13 20:54:59
|
No need for the "magic" number 9. The "\t" sequence will be replaced with the ASCII number for a tab, i.e. the number 9. Just as the "\r" will be replaced with the ASCII number for a carriage-return, and "\n" with the ASCII number for a line feed etc. The processing of the escape sequences is done by the compiler, not by the C/C++ library, so the translation is always performed, i.e. it doesn't matter how a character constant or string constant is used. /pwm On Tue, 13 Nov 2007, Wobien wrote: > "\t" is supposed to be a tab, but i do'nt know if that works in a textbox. > In one of my progs i succesfully used > char tab=9; > i used a stringstream to format the text for the textbox: > std::stringstream stream; > stream<<"text before tab"<<tab<<"text after tab" ; > stream.str().c_str() is a c-string you can use for your textbox. > > wobien > > > ----- Original Message ----- > From: "Jessica Chen" <jes...@gm...> > To: <dev...@li...> > Sent: Tuesday, November 13, 2007 8:51 PM > Subject: [Dev-C++] how to set "tab" key in textbox of win 32 api > > > >i used "\r\n" as return in the textbox of win 32 api. > > but what is for "tab" in the textbox of win 32 api???? > > > > thanks, > > jessica > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |