Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Setting Fonts etc. (Read 2743 times)
MagnusSpeychal
Junior Member
**
Offline



Posts: 53
Joined: Jun 18th, 2007
Setting Fonts etc.
Jul 13th, 2010 at 6:39am
Print Post  
Hi

I am trying to use font settings from a standard Microsoft font dialog (CFontDialog) but can't pass the information to a FlowChartX boxitem. In the FlowChartX Demo "Text alignment and fonts" this is working fine.
Can you provide some info on this or maybe provide the source code for the example so I can study it and see how it is done?


Best regards,
Magnus
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Setting Fonts etc.
Reply #1 - Jul 13th, 2010 at 7:44am
Print Post  
Hi,

There is no code in the demo for this, the control implements it in the item's property page code. What it does is call the ChooseFont API function to show the font dialog, then it copies the fields of the CHOOSEFONT struct to a new FONTDESC struct, and calls OleCreateFontIndirect to get an IFontDisp object that can be assigned to box.Font.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint