trichview.com

trichview.support




SaveComponentToFile && controlname


Return to index


Author

Message

Pieter E.

Posted: 12/17/2004 17:54:34


Dear Sergey,


I'm trying to save a TRichViewEdit to a HTML file. I've inserted some components

like a TEdit and TButton. In the SaveComponentToFile event I'd like to get

the name of a control using the following code:


case rvsfHTML:


AnsiString aName;

TControl *aCtrl;

TRVVAlign AVAlign;

int iTag;

int iIndex;

rve->GetControlInfo(rve->CurItemNo, aName, aCtrl, AVAlign, iTag);


if(SaveMe->InheritsFrom(__classid(TButton)))

{

OutStr = "<input type=button name=" + aName + ">";

return;

}

break;


I get an error when I save the TRichViewEdit to a HTML-file. When I remove

the "rve->GetControlInfo(rve->CurItemNo, aName, aCtrl, AVAlign, iTag);" everything

works correctly, only I can't get the name of the control.


Is there another way to get the controlname??


Thanks.


Pieter E.





Powered by ABC Amber Outlook Express Converter