Subject | RE: [IBO] Detecting user changes |
---|---|
Author | Claudio Valderrama C. |
Post date | 2001-01-05T05:22:43Z |
Then fiddle with TIB_Statement.UpdateRecord (controls write pending changes
to the row buffer) and if it's not enough, call TIB_Dataset.UpdateData (to
announce an UpdateData event manually) and see if it helps.
In your case, you can follow the chain from the control to the dataset,
since the field has a Statement property that points to the owner dataset,
in case you don't want to hardcode the dataset's name in the spinedit's
event.
C.
to the row buffer) and if it's not enough, call TIB_Dataset.UpdateData (to
announce an UpdateData event manually) and see if it helps.
In your case, you can follow the chain from the control to the dataset,
since the field has a Statement property that points to the owner dataset,
in case you don't want to hardcode the dataset's name in the spinedit's
event.
C.
> -----Original Message-----
> From: Shane van de Vorstenbosch [mailto:shanevan@...]
> Sent: Jueves 4 de Enero de 2001 23:45
>
> In my particular application, I require an event every time the control
> changes. I can understand why the underlying data is not changed until the
> user exits the control, but I want to be able to update another control on
> every change entered.
>
> For example, if a progress bar type of control was associated with the
> field, it would be good to be able to update it immediately as
> the value is
> being changed (ie as the user pushes the +/- buttons or enters a value).
>
> I am displaying two associated values. One is the raw value and
> this is what
> is stored in the database. The other is the temperature and this is
> converted from the raw value into celcius or farenheit. As the
> raw value is
> changed I would like to the calculated temperature change immediately.