trichview.com

trichview.support




Re: Size of a text item


Return to index


Author

Message

Sergey Tkachenko

Posted: 06/22/2003 14:41:07


(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