I'm using the OnChange event of the TMemo control. It works fine, when the control Value
is changed manually (editing, Cut and Paste operation). When the Value is changed by code
like this:
oMemo1:Value := ""
oMemo1:Clear()
the event is not reached.
Please correct this inconsistence.
Gejza Horvath
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.
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.
TMemo doesn't recognize the OnChange event
-
- Mensajes: 281
- Registrado: Mar Ago 15, 2006 1:50 pm
- ignacio
- Site Admin
- Mensajes: 9441
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
TMemo doesn't recognize the OnChange event
Gezja,
That is the correct behaviour. OnChange is only triggered when is done by
the end user, not by code. In order to force it, just call it:
oMemo:OnChange()
Regards,
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=465d8025@ozsrv2.ozlan.local...]465d8025@ozsrv2.ozlan.local...[/email]
> I'm using the OnChange event of the TMemo control. It works fine, when the
> control Value is changed manually (editing, Cut and Paste operation). When
> the Value is changed by code like this:
>
> oMemo1:Value := ""
> oMemo1:Clear()
>
> the event is not reached.
>
> Please correct this inconsistence.
>
> Gejza Horvath
>
That is the correct behaviour. OnChange is only triggered when is done by
the end user, not by code. In order to force it, just call it:
oMemo:OnChange()
Regards,
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=465d8025@ozsrv2.ozlan.local...]465d8025@ozsrv2.ozlan.local...[/email]
> I'm using the OnChange event of the TMemo control. It works fine, when the
> control Value is changed manually (editing, Cut and Paste operation). When
> the Value is changed by code like this:
>
> oMemo1:Value := ""
> oMemo1:Clear()
>
> the event is not reached.
>
> Please correct this inconsistence.
>
> Gejza Horvath
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com