Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / How to add a valid character to a wxTextValidator object?

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

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. How to add a valid character to a wxTextValidator object?
#4089
Posted by: Shixin Zeng 2004-05-10 13:51:22
I want to accept a string in time form(HH:MM:SS).
I tried the following codes, but it doesn't work. It just accept the numeric characters and '-'(I don't know why this character is accepted), but ":"  isn't accepted.

wxTextValidator time_val = wxTextValidator(wxFILTER_NUMERIC, &text_time);
   wxChar inc[]=wxT(":");
   time_val.SetIncludeList(wxStringList(inc));

Thanks in advance.

Shixin Zeng
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥880.00 ·
 
 
¥660.00 ·
 
 
¥1,580.00 ·
 
 
¥918.00 ·
 
 
¥430.00 ·
 
 
¥890.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0