如何将FontDialog的内容添加到我的表单?
问题描述:
我不想创建一个显示FontDialog的按钮……我需要将对话框的内容作为图标添加到我的表单中,例如按钮 B "和按钮 I "和字体大小"菜单等.
I don''t want to create a button that displays the FontDialog ... I need to add the dialog''s contents as icons to my form like " a button B " and "a button I" and Font size menu ... etc.
答
简单...
如果您不想使用该对话框,请自己(或者您可以购买一些组件,但可能不是一个完整的解决方案).
如果您可以接受使用标准字体显示字体名称,那么做这样的工具栏就不那么困难了.按钮和尺寸组合甚至更容易.
如果保持简单,最多最多需要几个小时.
Simple...
If you don''t want to use the dialog, then do it by yourself (or your can buy some component if you like but it might not be a complete solution).
It would not be that hard to do such a toolbar particulary if you can accept to display the font name using standard font. And it would be even easier for button and size combo.
At most, it should take a few hours if you keep it simple.