Good morning to all,
i have a little problem wirth TAdvRichEditorFormatButtonBar (called MM2TB) font combo box.
This component is linked to a TAdvRichEditor (called MM2) and in design time if i change a MM2 font when i run the program the MM2TB font combobox is setted to the appropriate MM2 font.
But if i change the MM2 font at runtime i'm not able to set the MM2TB combobox font to the appropriate font.
This is the code who i try to set the new font (MM2 font befor run this code is Thaoma Size 8) :
MM2.Font.Name:=S1Edt2.Text; // Symbol
MM2.Font.Size:=SP1.Value; // 10
MM2TB.Font.Name:=MM2.Font.Name;
MM2TB.Font.Size:=MM2.Font.Size;
// or MM2TB.Font.Assign(MM2.Font);
{
The font combobox change the font but not to the selected one but is setted to another one, in this case the combo box is set to another one incomprehensible.
The same if i use the commented line.
If i choose Times New Roman with size = 10, the combo box is alway setted to Thaoma 10 (MM2 default font name.
}
Any suggestion on how i can resolve this problem?
Thank's in advance
Best regards
Daniele