如何将FontDialog的内容添加到我的表单? [英] how to add the FontDialog's contents to my form?

查看:83
本文介绍了如何将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.


这篇关于如何将FontDialog的内容添加到我的表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆