trichview.support
Re: Is Empty? |
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" <[email protected]> wrote: news:[email protected]... > 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