Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Find substring in wxTextCtrl

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Find substring in wxTextCtrl
#5229
Posted by: Hovrino 2004-10-13 16:23:35
 I need to implement subject in wxTextCtrl. The problem is that TextCtrl itself has no "Find" function. Documentation warns me that I can't use TextCtrl::GetValue because different platforms use different string format ('\n' or '\n\r').
 What is a standard cross-platform solution?
Message2. Re: Find substring in wxTextCtrl
#5230
Posted by: 2004-10-14 00:52:33
I would use that TextCtrl::GetValue(). In your app just ignore '\r'.
Message3. Re: Find substring in wxTextCtrl
#5232
Posted by: Hovrino 2004-10-14 14:49:26
 I did so. Unfortunately, it do wrong more and more with any new string on its way.
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2024-12-11  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0