trichview.com

trichview.support




Select an item


Return to index


Author

Message

Benedikt Weber

Posted: 09/15/2002 0:54:47


To select an item when the user clicks in the document I tried the

following:


void __fastcall TReportForm1::rv_editorClick(TObject *Sender)

{

     int item= rv_editor->CurItemNo;

     int offsBefore= rv_editor->GetOffsBeforeItem(item);

     int offsAfter= rv_editor->GetOffsAfterItem(item);

     rv_editor->SetSelectionBounds(item, offsBefore, item, offsAfter);

}


However the result is not as expected: The selection is from the beginnig of

the item up to the cursor (the click point) instead of up to the end of the

item. What went wrong here?


Benedikt





Powered by ABC Amber Outlook Express Converter