trichview.support
Counting images in TRichViewEdit |
Author |
Message |
Pieter E. |
Posted: 05/06/2005 13:58:11 Dear Sergey, I'm trying to count the number of images in TRichViewEdit. I'm using the following code: void __fastcall TForm1::Button1Click(TObject *Sender) { int iCount = 0; for(int i=0; i<rve->TopLevelEditor->RVData->Items->Count; i++) { if(rve->TopLevelEditor->RVData->GetItemStyle(i) == rvsPicture) { iCount += 1; } } ShowMessage(IntToStr(iCount)); } //--------------------------------------------------------------- The number of images pops up correctly. But when I have some images nested in a table they aren't recognized. For example: I have 4 images in a TRichViewEdit. One of the four images is nested in a table. The number of images popsup is three. Could you give me some advise? Thanks. Pieter E. |
Powered by ABC Amber Outlook Express Converter