On 14/05/2014 at 10:45, xxxxxxxx wrote:
The various sections of the preferences are plugins that start with the ID# 465001620.
So you have to first get the plugin that holds the preferences you want to get.
Example:
#include "..\..\..\..\resource\res\description\prefsinterface.h"
BasePlugin *interface_plg = FindPlugin(465001620, PLUGINTYPE_PREFS); //Finds a specific plugin by ID#
//GePrint(interface_plg->GetName()+" "+LongToString(interface_plg->GetID()));
GeData d;
interface_plg->GetParameter(DescID(PREF_INTERFACE_FONTSTD), d, DESCFLAGS_GET_0);
FontData *fd = (FontData* )d.GetCustomDataType(FONTCHOOSER_DATA);
BaseContainer bcfont = fd->GetFont();
String name = bcfont.GetString(500);
LONG size = bcfont.GetLong(501);
GePrint(name);
GePrint(LongToString(size));
If your next question is how to change it. I haven't figured that out yet.
Perhaps someone else will be kind enough to post that one.
-ScottA