Getting ItemText of all controls in document
Posted: Fri Jun 09, 2006 8:35 am
Hello,
I'm trying to get ItemText for all controls in document.
While using GetItemText(ItemNo) it works, but not with using
GetCurrentItemText() in tables
OR
how should I use function GetCurrentItemText to get the text?
(Need it after editing XML and use <control >[ItemText]</control> as
text in a TMemo)
THX
I'm trying to get ItemText for all controls in document.
While using GetItemText(ItemNo) it works, but not with using
GetCurrentItemText() in tables
Code: Select all
void __fastcall TForm1::ControlAction(TCustomRichView *Sender,
TRVControlAction ControlAction, int ItemNo, TControl *&ctrl)
{
if(ControlAction == rvcaAfterRVFLoad) {
TRichViewEdit *rve = (TRichViewEdit *) Sender;
ShowMessage(rve->GetCurrentItemText());
}
}
Code: Select all
...
int x = 0;
while(x < rve->ControlCount) {
rve->SelectControl(rve->Controls[x]);
ShowMessage(rve->GetCurrentItemText());
x++;
}
...
(Need it after editing XML and use <control >[ItemText]</control> as
text in a TMemo)
THX