Hey all,
I have a helper with a very simple UI :
static ParamBlockDesc2 pointobj_param_blk(
optobject_params, _T("PointObjectParameters"), 0, &optHelperObjDesc, P_AUTO_CONSTRUCT+P_AUTO_UI, PBLOCK_REF_NO,
//rollout
IDD_OPTOBJPARAM, IDS_POINT_PARAMS, 0, 0, NULL,
// params
optobject_count, _T("count"), TYPE_INT, P_ANIMATABLE, IDS_SPINNER_COUNT,
p_default, 10,
p_range, 0, 1000,
p_ui, TYPE_SPINNER, EDITTYPE_INT, IDC_EDT_COUNT, IDC_SP_COUNT, SPIN_AUTOSCALE,
end,
optobject_spline, _T("Pick Spline"), TYPE_INODE, 0, IDS_PBT_SPLINE,
p_ui, TYPE_PICKNODEBUTTON, IDC_PICKBTN_SPLINE,
p_sclassID, SHAPE_CLASS_ID,
end,
optobject_object, _T("Pick Object"), TYPE_INODE, 0, IDS_PBT_OBJECT,
p_ui, TYPE_PICKNODEBUTTON, IDC_PICKBTN_OBJECT,
p_sclassID, GEOMOBJECT_CLASS_ID,
end,
end
);
This UI works good when I create the helper. But when I load a maxfile with one of those helpers and I want to use the UI, nothing is working. It looks like it is not initialized anymore.
Anybody has a clue?
(also posted here : http://forums.cgsociety.org/showthread.php?p=7430700#post7430700 )
Cheers,
Robb