TRVFontComboBox filter available fonts

General TRichView support forum. Please post your questions here
Post Reply
yagui
Posts: 6
Joined: Tue May 13, 2014 4:11 pm

TRVFontComboBox filter available fonts

Post 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
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply