trichview.com

trichview.support




Re: Is Empty?


Return to index


Author

Message

Dmitry Mikhilov

Posted: 11/21/2003 17:07:37


For both RichView & RichViewEdit:


bool __fastcall IsRichViewEmpty(const TCustomRichView *rv)

{

const TRichViewEdit *re = dynamic_cast<const TRichViewEdit *>(rv);

return re ? !re->ItemCount || re->ItemCount == 1 && !re->GetItemStyle(0) &&

re->GetItemText(0).IsEmpty() : !rv->ItemCount;

}


"Jonas Bilinkevicius" <jon@mail.lt> wrote:

news:3fbe089a@support.torry.net...

> Hello Sergey,

>

> How to find out is RichViewEdit is empty or not?

> Alternative to this: if Memo.Lines.Text = '' then EMPTY

>

> Regards,

> Jonas

>

>

>





Powered by ABC Amber Outlook Express Converter