trichview.com

trichview.support




Re: load a text from a database


Return to index


Author

Message

Sergey Tkachenko

Posted: 01/09/2004 19:09:08


- make sure that RichViewEdit has the option "allow adding styles

dynamically" set

  (right click RichViewEdit in Delphi, choose "Settings" in the context

menu,

   set "Allow adding styles dynamically")

- in the ActionTest demo, combo boxes are filled in

RichViewEdit.OnCurTextStyleChanged event.

  You need to have the same code in its event. If it is not called after

loading automatically,

  you can call it yourself.



>

> When I load a text from a database to a editor created with

RichviewActions

> and the first character of the text doesn't have a special format (Bold,

> italic,...) the combos font and size and size appear empty.

> The form initialize with:

> procedure TEditor_fr.Inicio;

> begin

>   rvActionColor1.OnShowColorPicker := ColorPickerShow;

>   rvActionColor1.OnHideColorPicker := ColorPickerHide;

>   rvActionParaColor1.OnShowColorPicker := ColorPickerShow;

>   rvActionParaColor1.OnHideColorPicker := ColorPickerHide;

>   rvActionFontColor1.OnShowColorPicker := ColorPickerShow;

>   rvActionFontColor1.OnHideColorPicker := ColorPickerHide;

>   rvActionFontBackColor1.OnShowColorPicker := ColorPickerShow;

>   rvActionFontBackColor1.OnHideColorPicker := ColorPickerHide;

>   cmbFont.AutoComplete := False;

>   cmbFontSize.AutoComplete := False;

>   Localize;

>   cmbFont.Items.Assign(Screen.Fonts);

>   rve.ApplyTextStyle(0);

>   rve.format;

> end;





Powered by ABC Amber Outlook Express Converter