I have AI 7.1.3 and I want to develop a custom action to choose the text style of a text control. I have created the text style so it is selectable in the dropdown for the control within AI, but want to set status text onto the dialog based on what happens in the custom action and color the text as green/red. I wish to develop the custom action as a C++ dll. Any suggestions on the best way to accomplish this task?
The control is a static control pulled from the Advanced Installer toolbox. I have attached a screenshot of the dialog with the text. I want the text to be green if they pass Minimum Requirements and red otherwise. For example, if memory is less than 4, it should be red. Otherwise it passes and is green.
Installer ScreenShot.jpg (37.77 KiB) Viewed 468 times
Basically the easiest approach is to have the custom action that determines the color value execute on the "Next" button of the dialog before. The above example uses our new feature called "Text-styles fallback".
Are there any C++ dll examples that's compatible with older versions? Want to know if it's possible with version 7.1.3 using a C++ dll custom action.
Update: Looking at text style options. There is no fallback settings available in my text style. Seems like the only thing that would work is if I could change a text control's text style through a dll. Is that possible through a custom action or is the fallback option the only way?
Second Update: I am able to do this by adding 2 text controls. One with Green Pass and one with Red Fail, then clearing out 1 string by setting it to a property I set from Custom action. This is getting the job done, but if there is an easier way it'd be good to hear. Thanks.