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


This topic is now archived and is closed to further replies.

  • Create New...