mindrayguowei 发表于 2016-3-24 09:04:46

如何设置ButtonBar的值?

如何给ButtonBar设置自定义的字体大小, 加粗, Zoom百分比等各种值
以及如何恢复成默认数据?

gw0506 发表于 2016-3-24 10:07:12

你翻译下文档,先了解一下这些问题,基本都有答案。
在Class Library Reference --> TXTextControl namespace --> ButtonBar Class 中。
Properties
PropertyDescription
BorderStyleGets or sets the border style of the button bar.
ButtonOffsetsGets or sets an array of additional offsets, in pixels, between the buttons.
ButtonPositionsGets or sets an array of buttons the button bar consists of.
ButtonSeparatorsGets or sets an array of boolean values specifying whether or not a separator is drawn between two buttons.
ButtonStyleGets or sets the painting style of the buttons.
DisplayColorsGets or sets the colors of the button bar.

Methods
MethodDescription
ResetButtonOffsetsResets the offset array to its default state.
ResetButtonPositionsResets the button array to its default state.
ResetButtonSeparatorsResets the separator array to its default state.
ResetDisplayColorsResets all display colors of a button bar to their system dependent default values.




美国队长 发表于 2016-3-25 17:36:02

楼主搞定了吗?分享下

gw0506 发表于 2016-3-25 18:16:26

美国队长 发表于 2016-3-25 17:36
楼主搞定了吗?分享下

我没有搞啊~
文档给你了,就那些接口,你看你具体什么需求,设置哪些接口就好了~
页: [1]
查看完整版本: 如何设置ButtonBar的值?