In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Masked Edit

Xailer professional forum in English
Responder
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

Masked Edit

Mensaje por Nick Hilder »

Hi Gents
I have a bunch of TEdit's on a form and 1 TMaskEdit
In the OnExit event I have call a methed with like this
METHOD IsModified( oSender, oNextCtl )
If oSender:lModify == .T.
::oSave:lEnabled := .T.
Endif
RETURN Nil
The problem I want to report is that LModify is not being set to true when I
change the contents on the TMaskEdit control
My mask is this (from the xfm)
WITH OBJECT ::oTimerInterval := TMaskEdit():New( ::oGatewayGroupBox )
:SetBounds( 116, 24, 46, 20 )
:cMessage := "Enter a value between 1 and 99 seconds"
:nMaxLength := 2
:cPicture := "99"
:Value := " "
:OnExit := "IsModified"
:Create()
END
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Masked Edit

Mensaje por Oleg »

Nick,
> I have a bunch of TEdit's on a form and 1 TMaskEdit
>
> In the OnExit event I have call a methed with like this
>
> METHOD IsModified( oSender, oNextCtl )
>
> If oSender:lModify == .T.
> ::oSave:lEnabled := .T.
> Endif
>
> RETURN Nil
>
> The problem I want to report is that LModify is not being set to true when
> I change the contents on the TMaskEdit control
>
> My mask is this (from the xfm)
>
> WITH OBJECT ::oTimerInterval := TMaskEdit():New( ::oGatewayGroupBox )
> :SetBounds( 116, 24, 46, 20 )
> :cMessage := "Enter a value between 1 and 99 seconds"
> :nMaxLength := 2
> :cPicture := "99"
> :Value := " "
> :OnExit := "IsModified"
> :Create()
> END
>
I confirm that this problem exists. It appears only when any ::cPicture is
assigned.
Regards, Oleg
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Masked Edit

Mensaje por Oleg »

Nick,
> I have a bunch of TEdit's on a form and 1 TMaskEdit
>
> In the OnExit event I have call a methed with like this
>
> METHOD IsModified( oSender, oNextCtl )
>
> If oSender:lModify == .T.
> ::oSave:lEnabled := .T.
> Endif
>
> RETURN Nil
>
> The problem I want to report is that LModify is not being set to true when
> I change the contents on the TMaskEdit control
>
> My mask is this (from the xfm)
>
> WITH OBJECT ::oTimerInterval := TMaskEdit():New( ::oGatewayGroupBox )
> :SetBounds( 116, 24, 46, 20 )
> :cMessage := "Enter a value between 1 and 99 seconds"
> :nMaxLength := 2
> :cPicture := "99"
> :Value := " "
> :OnExit := "IsModified"
> :Create()
> END
>
I confirm that this problem exists. It appears only when any ::cPicture is
assigned.
Regards, Oleg
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Masked Edit

Mensaje por ignacio »

Nick,
Fixed. It will be available on next upgrade. Thanks.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Nick Hilder" <nick_n0_spam_atcapsol.com.au> escribió en el mensaje
news:[email=48617e74@ozsrv2.ozlan.local...]48617e74@ozsrv2.ozlan.local...[/email]
> Hi Gents
>
> I have a bunch of TEdit's on a form and 1 TMaskEdit
>
> In the OnExit event I have call a methed with like this
>
> METHOD IsModified( oSender, oNextCtl )
>
> If oSender:lModify == .T.
> ::oSave:lEnabled := .T.
> Endif
>
> RETURN Nil
>
> The problem I want to report is that LModify is not being set to true when
> I change the contents on the TMaskEdit control
>
> My mask is this (from the xfm)
>
> WITH OBJECT ::oTimerInterval := TMaskEdit():New( ::oGatewayGroupBox )
> :SetBounds( 116, 24, 46, 20 )
> :cMessage := "Enter a value between 1 and 99 seconds"
> :nMaxLength := 2
> :cPicture := "99"
> :Value := " "
> :OnExit := "IsModified"
> :Create()
> END
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

Masked Edit

Mensaje por NoName »

Nick,
Fixed. It will be available on next upgrade. Thanks.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Nick Hilder" <nick_n0_spam_atcapsol.com.au> escribió en el mensaje
news:[email=48617e74@ozsrv2.ozlan.local...]48617e74@ozsrv2.ozlan.local...[/email]
> Hi Gents
>
> I have a bunch of TEdit's on a form and 1 TMaskEdit
>
> In the OnExit event I have call a methed with like this
>
> METHOD IsModified( oSender, oNextCtl )
>
> If oSender:lModify == .T.
> ::oSave:lEnabled := .T.
> Endif
>
> RETURN Nil
>
> The problem I want to report is that LModify is not being set to true when
> I change the contents on the TMaskEdit control
>
> My mask is this (from the xfm)
>
> WITH OBJECT ::oTimerInterval := TMaskEdit():New( ::oGatewayGroupBox )
> :SetBounds( 116, 24, 46, 20 )
> :cMessage := "Enter a value between 1 and 99 seconds"
> :nMaxLength := 2
> :cPicture := "99"
> :Value := " "
> :OnExit := "IsModified"
> :Create()
> END
>
Responder