PDA

View Full Version : Support for plugin development


Ulrich
07-08-2008, 10:56 AM
Indigo Rose doesn't provide support through telephone or email for SDK issues, but they direct questions to the forum. So I think that here is the place to ask for help, and hopefully somebody of the staff will give a hint.

I am following the documentation, which states that this function int irPlg_Object_GetFonts(CIRPluginObject *pObject, char *szBuffer, int *pnBufferSize)

should be implemented when a plugin uses a font, which has to be bundled at built time into the package to be deployed. I implemented this function as instructed, but is not called by AMS 7.0. A MessageBox placed inside the function to alert that it was executed is not shown, ever. Furthermore, there is a field in the XML, called "StyleName", which supposedly maps to some information in LOGFONT. There is no such field in LOGFONT, so I presume that additionally to the name of this optional function, the data to be exported may have changed as well.

Next problem: I am unable to set the text color of the caption on my object, which is derived from a CButton. Using MFC I am surely able to set the color, but the information is ignored inside AMS. It seems to be impossible to intercept/override a OnCtlColor message, for example, or even an OnDrawItem. Unfortunately none of the sample projects in the SDK uses fonts, and they are five years old, so there is a certain possibility that they are at least partially outdated as they were written for AMS 5.0. They are a start, but they aren't helpful for my current issues. I already asked kindly for a update of the sample projects, or maybe the source of the WinButton plugin shipped with AMS 7.0, which would show how things have to be done in the current version of AMS. Unfortunately so far I got no answer at all.

Thank you.

Ulrich