trichview.support
load a text from a database |
Author |
Message |
Luis Diaz |
Posted: 01/08/2004 21:14:43 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