Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 04 OCT 2005 12:41:27PM Jim Vaughan wrote:

I am using a OLE control that uses the IFontDisp interface to specify the font.

I can get the current font by using a Get_Property call like this:

lFont=Get_Property(ctrl, "OLE.Font")

lFont is a number like 0x227e9c.

Can I use this number within OI to manipulate the font that is used by the OLE control either by changing the properties of the font or by passing a new font to the control?


At 04 OCT 2005 12:50PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

Jim,

Can you do:

 Set_Property( ctrl, "OLE.Font.Bold", 1 ) 

Fonts in OLE are objects too - check this out

The Sprezzatura Group

World leaders in all things RevSoft


At 04 OCT 2005 01:22PM Jim Vaughan wrote:

Well that was easy…

… very cool.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/4a55cc2372a27a2d85257090005bafcb.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1