Hello Richview-Support,
while working with your ScaleRichView component I come up with the following question:
If I load the richviewactiontest demo and start the project. Now the font combobox has selected text.
If I open the richviewactiontest demo from the richviewedit and start the project, the font combobox is not selected.
Is there a way that the fontcombobox has no intial selection?
Selected Text in font combobox ScaleRichviewEditor
-
- Site Admin
- Posts: 17842
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Selected Text in font combobox ScaleRichviewEditor
The demo uses a workaround,
In the form's interface section:
Implementation:
PostMessage(Handle, WM_DESELECTCOMBO, 0, 0) is called on FormShow and FormBeforeMonitorDpiChanged.
DeselectComboBoxes is called in btnLanguageClick.
Code: Select all
const
WM_DESELECTCOMBO = WM_USER + 1;
Code: Select all
procedure WMDeselectCombo(var Msg: TMessage); message WM_DESELECTCOMBO;
procedure DeselectComboBoxes;
Code: Select all
procedure TForm3.DeselectComboBoxes;
begin
cmbFontSize.SelLength := 0;
cmbFont.SelLength:= 0;
end;
// The font combo box is displayed selected on start. Hiding its selection.
procedure TForm3.WMDeselectCombo(var Msg: TMessage);
begin
DeselectComboBoxes;
end;
DeselectComboBoxes is called in btnLanguageClick.
Re: Selected Text in font combobox ScaleRichviewEditor
Hello Sergey,
Thank you for the information. I will try it out and give you feedback afterwards.
Thank you for the information. I will try it out and give you feedback afterwards.
Re: Selected Text in font combobox ScaleRichviewEditor
Hello again, Sergey,
With your solution, everything works fine. You can close the topic.
With your solution, everything works fine. You can close the topic.
