Página 1 de 1

Date editing in TMaskEdit

Publicado: Jue Oct 02, 2008 3:08 pm
por Oleg
Dear developers!
I use TMaskEdit to edit dates in my project (see attached project).
When I set 'SET DATE GERMAN' (it is usual format in Russia) and clear
TMaskEdit value
(select all and press DELETE or select Clear from context menu), it becomes
totally empty.
After this I have problems to enter new date (just try to type 8 digits).
When I do not set 'SET DATE GERMAN' and clear TMaskEdit value, it becomes
empty with '/' delimiters
( / / ). In this case I have no problems to enter new date.
How can I fix this different behavior?
Regards, Oleg


Attached files test75.zip (1.8 KB)Â

Date editing in TMaskEdit

Publicado: Jue Oct 02, 2008 5:32 pm
por Ingo JH
Dear developers,
I have the same problem. The control doesn't accept the '.' (decimal point).
i.e. with the date 02.10.2008
1. input 02 ->'02'
2. input the point //nothing
input 1 then '02.0'
Regards
Ingo
"Oleg" <info@cluster.samara.ru> schrieb im Newsbeitrag
news:48e4c7e3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I use TMaskEdit to edit dates in my project (see attached project).
> When I set 'SET DATE GERMAN' (it is usual format in Russia) and clear
> TMaskEdit value
> (select all and press DELETE or select Clear from context menu), it
> becomes totally empty.
> After this I have problems to enter new date (just try to type 8 digits).
>
> When I do not set 'SET DATE GERMAN' and clear TMaskEdit value, it becomes
> empty with '/' delimiters
> ( / / ). In this case I have no problems to enter new date.
>
> How can I fix this different behavior?
>
> Regards, Oleg
>
>

Date editing in TMaskEdit

Publicado: Jue Oct 02, 2008 5:32 pm
por Ingo JH
Dear developers,
I have the same problem. The control doesn't accept the '.' (decimal point).
i.e. with the date 02.10.2008
1. input 02 ->'02'
2. input the point //nothing
input 1 then '02.0'
Regards
Ingo
"Oleg" <info@cluster.samara.ru> schrieb im Newsbeitrag
news:48e4c7e3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I use TMaskEdit to edit dates in my project (see attached project).
> When I set 'SET DATE GERMAN' (it is usual format in Russia) and clear
> TMaskEdit value
> (select all and press DELETE or select Clear from context menu), it
> becomes totally empty.
> After this I have problems to enter new date (just try to type 8 digits).
>
> When I do not set 'SET DATE GERMAN' and clear TMaskEdit value, it becomes
> empty with '/' delimiters
> ( / / ). In this case I have no problems to enter new date.
>
> How can I fix this different behavior?
>
> Regards, Oleg
>
>

Date editing in TMaskEdit

Publicado: Vie Oct 03, 2008 9:58 am
por Oleg
Hi all!
I found that my problem can be worked around by this method
METHOD MaskEdit1Change( oSender ) CLASS TForm3
if empty(::oMaskEdit1:cText)
::oMaskEdit1:SetValue( ::oMaskEdit1:GetValue() )
endif
RETURN Nil
But I think that this problem must be fixed in Xailer's sources somehow.
Regards, Oleg

Date editing in TMaskEdit

Publicado: Vie Oct 03, 2008 9:58 am
por Oleg
Hi all!
I found that my problem can be worked around by this method
METHOD MaskEdit1Change( oSender ) CLASS TForm3
if empty(::oMaskEdit1:cText)
::oMaskEdit1:SetValue( ::oMaskEdit1:GetValue() )
endif
RETURN Nil
But I think that this problem must be fixed in Xailer's sources somehow.
Regards, Oleg

Date editing in TMaskEdit

Publicado: Vie Oct 03, 2008 11:34 am
por ignacio
Oleg,
Fixed. It will be available on next Xailer release.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:48e4c7e3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I use TMaskEdit to edit dates in my project (see attached project).
> When I set 'SET DATE GERMAN' (it is usual format in Russia) and clear
> TMaskEdit value
> (select all and press DELETE or select Clear from context menu), it
> becomes totally empty.
> After this I have problems to enter new date (just try to type 8 digits).
>
> When I do not set 'SET DATE GERMAN' and clear TMaskEdit value, it becomes
> empty with '/' delimiters
> ( / / ). In this case I have no problems to enter new date.
>
> How can I fix this different behavior?
>
> Regards, Oleg
>
>

Date editing in TMaskEdit

Publicado: Vie Oct 03, 2008 11:34 am
por NoName
Oleg,
Fixed. It will be available on next Xailer release.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:48e4c7e3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I use TMaskEdit to edit dates in my project (see attached project).
> When I set 'SET DATE GERMAN' (it is usual format in Russia) and clear
> TMaskEdit value
> (select all and press DELETE or select Clear from context menu), it
> becomes totally empty.
> After this I have problems to enter new date (just try to type 8 digits).
>
> When I do not set 'SET DATE GERMAN' and clear TMaskEdit value, it becomes
> empty with '/' delimiters
> ( / / ). In this case I have no problems to enter new date.
>
> How can I fix this different behavior?
>
> Regards, Oleg
>
>