{{tag>category:"OpenInsight 32-Bit" author:"Jim Vaughan" author:"[url=http://www.sprezzatura.com]The Sprezzatura Group[/url]"}} [[https://www.revelation.com/the-works|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]] ==== IFontDisp (OpenInsight 32-Bit) ==== === 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 [url=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/com/html/3a04d2b7-b2eb-4c6c-8863-1e88321fa382.asp]this[/url] out [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] [i]World leaders in all things RevSoft[/i] [img]http://www.sprezzatura.com/zz.gif[/img] ---- === At 04 OCT 2005 01:22PM Jim Vaughan wrote: === Well that was easy... ... very cool. [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=4A55CC2372A27A2D85257090005BAFCB|View this thread on the Works forum...]]