Paulo,
>Does anyone know how to workaround this?
The problem is (partially) explained in PDR 6374 -- see here:
http://www.alaska-software.com/scripts/waa001.dll?WAA_PACKAGE=PUBLICDTS&WAA_FORM=DISPLAYPDR&PDRID=6374
In the sample program, the MeasureItem code is called only once -- for the
very first Item -- and the Item Size is calculated based on the used Font.
Later, the MeasureItem Method isn't called anymore, and the default Height
is used instead.
In Xbase++ 2.0, those issues are fixed (for both Owner Draw methods).
A workaround (for the example code) would be to simply add "::Configure()"
in your "::ReDraw()" Method, before the For/Next loop. Alternatively, you
could use the workaround from the PDR, overloading the "::AddItem()" method.
Hope that helps.
Andreas
Andreas Gehrs-Pahl
Absolute Software, LLC
phone: (989) 723-9927
email: Andreas.GP@Charter.net
Andreas.Gehrs-Pahl@InterAct911.com
Andreas.Gehrs-Pahl@EJusticeSolutions.com
Andreas@DDPSoftware.com
web: http://www.Aerospace-History.net