Jump to content
Software FX Community

ChangeFont is called before new font is selected?

User (Legacy)

Recommended Posts

Correct. This is by design. The idea of this event is so that you can 

prevent certain fonts from being selected.

There is event AFTER the font is changed, however, this is quite easy to

implement on your side:

1) Capture the ChangeFont event. In this event, save all the necessary state

coming from the chart.

2) Push a call to yourself so that AFTER you return from your event handler,

you get called again. The implementation of this will depend on which dev.

environment you are using. In VB you can do a timer with Interval = 1, in

C++ you can use PostMessage.

3) Upon receiving the delayed call retrieve the new font from the chart

using the state information gathered in 1)



Software FX

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...