|
|
楼主 |
发表于 2012-5-18 08:53:15
|
显示全部楼层
发现MSDN上说法有些问题,如balloon.style参数如下解释,按照下面解释numberoflines在style为0时是可以设置的。但是实际当style设置为0后,numberoflines依然不能设置,仍然出现800A01C2错误。
http://msdn.microsoft.com/en-us/library/ms697265(v=vs.85)
When the balloon-on style bit is set to 1, the word balloon appears when a Speak or Think method is used, unless the user overrides this setting in the Microsoft Agent property sheet. When set to 0, a balloon does not appear.
When the size-to-text style bit is set to 1, the word balloon automatically sizes the height of the balloon to the current size of the text for the Speak or Think statement. When set to 0, the balloon's height is based on the NumberOfLines property setting. If this style bit is set to 1 and you attempt to set the NumberOfLines property, Agent raises an error. |
|