properties that are losing data!?!
Hello!
I've written some TfrxMemoView-descendant components and I have
one basic problem I don't understand!
An example:
Take the frxChBox.pas example provided by the fr3 team (a checkbox component
for using in forms).
The FChecked property variable is read from database in 'GetData' and
its content is drawn in 'Draw'. Nothing spectacular....
Situation 1: TfrxCheckBoxView = class(TfrxView)
============
TfrxCheckBoxView inherits from TfrxView and everything runs smooth
Situation 2: TfrxCheckBoxView = class(TfrxCustomMemoView)
============
TfrxCheckBoxView inherits from TfrxCustomMemoView and the following happens:
in 'GetData' the FChecked value is set correctly....
but in the 'Draw' procedure it is always set to true, regardless which
value was read in GetData!
Why?
Any hint is very welcome, thanks a lot!
Daniel
I've written some TfrxMemoView-descendant components and I have
one basic problem I don't understand!
An example:
Take the frxChBox.pas example provided by the fr3 team (a checkbox component
for using in forms).
The FChecked property variable is read from database in 'GetData' and
its content is drawn in 'Draw'. Nothing spectacular....
Situation 1: TfrxCheckBoxView = class(TfrxView)
============
TfrxCheckBoxView inherits from TfrxView and everything runs smooth
Situation 2: TfrxCheckBoxView = class(TfrxCustomMemoView)
============
TfrxCheckBoxView inherits from TfrxCustomMemoView and the following happens:
in 'GetData' the FChecked value is set correctly....
but in the 'Draw' procedure it is always set to true, regardless which
value was read in GetData!
Why?
Any hint is very welcome, thanks a lot!
Daniel
Comments