` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Windows API: Characters count in RTF Text
2003-04-29 -- Jim Kane
 
Newsgroups: comp.lang.clarion This is easy to do with one of two api calls. The GetWindowTextLength(Rtfclassname.hwnd) will tell you the number of characters in the control but doesn't have any flexibility in how the count is done. If you use the sendmessage() api and send the EM_GetTextLengthEX message to the rtf control you can get back the character count or an approximation with many options. Both APIs are well explained in msdn along with all the options for EM_GetTextLengthEX Jim Kane "Salvador Núñez" wrote in message news:3eaf059c@news.softvelocity.com... > Hi Friends, > > I need to count each character that is added in my MEMO (RTF) field, like a > text editor... and substract when deleted.... > And display it at moment... > > sorry about my english, I hope you understand me... > > -- > > > Saludos - Regards > _________________ > LIA. Salvador Núñez > Televisa Guadalajara > >


Today is November 21, 2024, 7:24 am
This article has been viewed 35308 times.
Google search has resulted in 35 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: