xingaoyang 发表于 2015-11-11 16:43:00

再页眉中ButtonBar不能用

我使用代码在窗体Load的时候关联控件,代码如下:
textControl1.ButtonBar=buttonBar1;
然后点击添加页眉的按钮添加页眉并使页眉处于激活状态。代码如下:
TXTextControl.Section section=Textcontrol1.Sections.GetItem();
section.HeaderAndFooters.Add(HeaderAndFooterType.Header);
HeaderFooter header=TXTextControlUtils.Instance.GetPageHeader(Textcontrol1);
header.Activate();
然后在也没中添加文本,但是ButtonBar控件不可用。需要关闭页眉,再次双击页眉,这样ButtonBar才可以使用。

iceman 发表于 2015-11-12 14:42:00

回复 1楼xingaoyang的帖子

抱歉,这段代码我无法直接使用,能否把您的测试demo发上来我重现问题?

xingaoyang 发表于 2015-11-13 10:40:00

回复 2楼iceman的帖子

这个问题已经解决,我是通过代码先让TextControl获取焦点,这样就可以使用了

iceman 发表于 2015-11-13 15:04:00

回复 3楼xingaoyang的帖子

好的,感谢您的反馈
页: [1]
查看完整版本: 再页眉中ButtonBar不能用