On 2010-03-10 18:32, Niklas Nebel wrote:
On 03/09/10 19:57, Jan Holst Jensen wrote:
Can anyone give me input on what variables / flags I should set to
really override cell drawing and effectively get OwnerDraw mode in
specific cells ? I am currently changing bNeedEdit when I encounter a
"molecule-formatted" cell so I can do cell rendering instead of the
in-place editor doing it (as far as I have understood the meaning of
that flag).
bNeedEdit is used to set the bEditEngine flag in the CellInfo array,
for those cells that can't be output using a simple
OutputDevice::DrawText or DrawTextArray call. In the separate
ScOutputData::DrawEdit method, the EditEngine class is used to output
the content of these cells. If you don't want DrawEdit to overwrite
your cell, it's correct to clear that flag.
I have also tried changing bDoCell but with somewhat unpredictable
results. Is this caused by cell rendering also being done in other
places than ScOutputData::DrawStrings() ?
Yes, DrawEdit, see above. But now, OutputDevice::DrawText is still
called, you just overwrite the text with your white background.
Thanks Niklas. I think I have enough to keep my occupied for a couple of
weeks now ;-).
Mvh
-- Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]