-
Re: Extension Questions
Thanks for the help guys - although I've been using C++ for a year, I've never used VC++ so its a whole new environment to me..
The documentation is starting to make a lot more sense now also - if I have any more questions then I'll post them here. Thanks!
-
Re: Extension Questions
// The definition of the property tree.
PropData Properties[] = {
PropData_Group (PROPID_TEXTTITLE, IDS_PROP_TEXTTITLE, IDS_PROP_TEXTTITLE),
PropData_EditString (PROPID_TEXT, IDS_PROP_TEXT, IDS_PROP_TEXT_INFO),
PropData_CheckBox (PROPID_CHECK, IDS_PROP_CHECK, IDS_PROP_CHECK_INFO),
PropData_ComboBox (PROPID_COMBO, IDS_PROP_COMBO, IDS_PROP_COMBO, ComboList),
PropData_Color (PROPID_COLOR, IDS_PROP_COLOR, IDS_PROP_COLOR_INFO),
PropData_End()
};
For the prop data properties, where do I define the IDS_PROP_COLOR strings .etc? I've tried doing them in different places but just get random errors.
EDIT: Nevermind, found that you have to define them in resource.r file ^^
-
Re: Extension Questions
res.rc yes <img src="/center/images/graemlins/wink.gif" alt="" />
When you add a menu in "Actions", "Expressions" or "Conditions", do not forget to edit "Ressources.h" and change the ID number of all new items added. <img src="/center/images/graemlins/wink.gif" alt="" />
-
Re: Extension Questions
I'm having a few problems with the properties area now.
I've managed to give my extension two properties, one called Text and one called Value.
enum {
PROPID_SETTINGS = PROPID_EXTITEM_CUSTOM_FIRST,
PROPID_TEXT,
PROPID_VALUE,
};
And then I've done the following:
PropData Properties[] = {
PropData_EditString (PROPID_TEXT, IDS_PROP_TEXT, IDS_PROP_TEXTINFO),
PropData_EditFloat (PROPID_VALUE, IDS_PROP_VALUE, IDS_PROP_VALUEINFO),
PropData_End()
};
It all works fine, however when I get to step 3 of the documentation, I start to get a bit confused.. It's the GetPropValue section which I can't seem to get right.
// Returns a string.
case PROPID_TEXT:
return new CPropDataValue(????);
I don't understand what to put in the CPropDataValue(); part..
-
Re: Extension Questions
Help please <img src="/center/images/graemlins/frown.gif" alt="" />
-
Re: Extension Questions
Code:
return new CPropDataValue(edPtr->YourStoredText);
should do it