trichview.com

trichview.support




Re: Size of a text item


Return to index


Author

Message

Yoerdes

Posted: 06/22/2003 20:44:45


Thank you, this works great.


Yoerdes



Sergey Tkachenko wrote:

> (the example uses undocumented methods):

>

> using DLines;

>

> var DrawItemNo: Integer;

>

> rv.RVData.Item2FirstDrawItem(ItemNo, DrawItemNo);

> rv.RVData.DrawItems[DrawItemNo].Width // (..Height, ...Left, ...Top).

>

> //If the text item is wrapped, it may be displayed on several lines

> // (one item have several corresponding drawing items)

> // Enumerating all drawing items corresponding to the given item:

> for i := DrawItemNo to rv.RVData.DrawItems.Count-1 do

> begin

>     if rv.RVData.DrawItems[i].ItemNo<>ItemNo then

>       break;

>     ...

> end;

>

>

>

>>With known ItemNo. I already have the upper-left corner, obtained with

>>GetItemCoords.





Powered by ABC Amber Outlook Express Converter