iceman 发表于 2012-12-13 18:24:00

回复 10楼好难注册的帖子

好的,我会把您的建议进行反馈,感谢您的支持。

好难注册 发表于 2012-12-18 11:54:00

回复 11楼iceman的帖子

版主,TXTextControl.FontSize = 10.5,这个功能能不能让厂商改成支持小数位啊,我们这边写电子病历时需要默认字体10.5的,10.5类似WORD的5号字体,这个比较着急啊。

iceman 发表于 2012-12-18 16:02:00

回复 12楼好难注册的帖子

好难注册 您好,
测试 ActiveX 和 Winform 平台 TX ,是支持 10.5 字体大小的。感谢您的反馈,我会把该意见提交给厂商。

好难注册 发表于 2012-12-19 16:14:00

回复 13楼iceman的帖子

Active X 的帮助文件里:
TXTextControl.FontSize Property
Returns or sets a value that specifies the size of the font used to display text. This value is in points. At design time this property changes or gets the font size of the complete text. At runtime this property determines the font size of the selected text when the FormatSelection property has been set to True. When the FormatSelection property has been set to False the font size of the complete text is set or returned.

Syntax
TXTextControl.FontSize [= value]
Remarks
The property returns 0 if the selected text contains fonts with different sizes. This can happen only at runtime and when the FormatSelection property has been set to True.

Data Types
Integer.

================你看data types是integer型。我在程序里写成10.5的话,也是自动被默认成10的。

iceman 发表于 2012-12-19 18:10:00

回复 14楼好难注册的帖子

确实是这样的,感谢您的反馈。

好难注册 发表于 2012-12-26 16:56:00

回复 15楼iceman的帖子

你好,我的代码是这样写的:
        ole_text.object.fontname='宋体'
        ole_text.object.FontSize = 10.5
不过字体实际上是10的

好难注册 发表于 2012-12-26 16:58:00

我不会发截图

iceman 发表于 2012-12-26 17:53:00

回复 17楼好难注册的帖子

截图收到了,请尝试一下代码 VB6:

TXTextControl1.FontSize = 210 + &H8000

iceman 发表于 2012-12-26 18:28:00

回复 17楼好难注册的帖子

在 fontsize 属性设置时添加 &H8000 即为以 tiwps 为单位进行设置。

1 point = 20 tiwps
页: 1 [2]
查看完整版本: 请问有办法获得页眉的高度吗?