Page 1 of 1

TRVFontComboBox filter available fonts

Posted: Mon May 16, 2016 11:04 am
by yagui
Hi,
we have a TRVFontComboBox in our application and we would like to filter the combo to show only a few fonts, not all the fonts available in the Windows system.

Is there any way to set which font to add in the TRVFontComboBox?.

Thanks and regards,
Martin

Posted: Tue May 24, 2016 8:31 am
by Sergey Tkachenko
Sorry for the delay.

TRVFontComboBox does not have this feature. However, you can simply remove undesirable fonts from its Items.
Items are filled when the combobox window is created (you can call ComboBox.HandleNeeded to make sure that it is created) or when you call ComboBox.Build.