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

Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.