Home » U++ Library support » U++ Library : Other (not classified elsewhere) » DateTimeCtrl
DateTimeCtrl [message #8853] |
Tue, 03 April 2007 19:00  |
mubeta
Messages: 77 Registered: October 2006
|
Member |
|
|
Hi,
1) Can I add this control in the ArrayCtrl??
2) Typing some caratcter, like: -, +, etc in this control crash the application. The default language is IT-IT.
3) After chosing the date, the control allow the keybord to type a long serie of space, or other chars, displayed as: 04/04/2007////////////////////////////////.... in the control.
Mauro Bottizzo.
|
|
|
Re: DateTimeCtrl [message #8857 is a reply to message #8853] |
Tue, 03 April 2007 19:39   |
|
mubeta wrote on Tue, 03 April 2007 13:00 |
1) Can I add this control in the ArrayCtrl??
|
You can add any control including DateTimeCtrl
Quote: |
2) Typing some caratcter, like: -, +, etc in this control crash the application. The default language is IT-IT.
|
I have to check that.
Quote: |
3) After chosing the date, the control allow the keybord to type a long serie of space, or other chars, displayed as: 04/04/2007////////////////////////////////.... in the control.
|
DateTimeCtrl is using EditDate control, so this one goes to Mirek 
|
|
|
Re: DateTimeCtrl [message #8858 is a reply to message #8853] |
Tue, 03 April 2007 20:09   |
zsolt
Messages: 702 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
mubeta wrote on Tue, 03 April 2007 19:00 |
2) Typing some caratcter, like: -, +, etc in this control crash the application. The default language is IT-IT.
|
This is a serious bug in EditField class, I think.
Fix:
CtrlLib/EditField.cpp, int EditField::Insert(int pos, const WString& itext)
Change line
if(chr && charset == CHARSET_UNICODE || FromUnicode(chr, charset, 0))
to
if(chr && (charset == CHARSET_UNICODE || FromUnicode(chr, charset, 0)))
|
|
|
|
|
|
Goto Forum:
Current Time: Wed Apr 30 07:49:38 CEST 2025
Total time taken to generate the page: 0.04395 seconds
|