_class.startMemberID += mod.base.memberID;
}
}
+ // Moved this before to ensure CPValues have their data ready
+ FixDerivativesBase(_class, mod);
{
Class c;
for(c = mod.base; c; c = c.base)
}
}
}
-
- FixDerivativesBase(_class, mod);
}
{
void ::ListClasses(DesignerBase designer, Class _class)
{
OldLink link;
- designer.AddToolBoxClass(_class);
+ if(eClass_GetProperty(_class, "icon"))
+ designer.AddToolBoxClass(_class);
/*
for(link = _class.derivatives.first; link; link = link.next)
designer.AddToolBoxClass(link.data);
Class commonControlClass = eSystem_FindClass(_class.module, "CommonControl");
for(link = commonControlClass.derivatives.first; link; link = link.next)
{
- ListClasses(designer, link.data);
+ ListSubClasses(designer, link.data);
}
}
+ void ::ListSubClasses(DesignerBase designer, Class c)
+ {
+ OldLink link;
+ ListClasses(designer, c);
+ for(link = c.derivatives.first; link; link = link.next)
+ ListSubClasses(designer, link.data);
+ }
+
void ::PrepareTestObject(DesignerBase designer, Window test)
{
test.parent = designer;
public class DataBox : CommonControl
{
- class_property(icon) = "<:ecere>controls/dataBox.png";
-
public:
Class type;
void * data;
public class SavingDataBox : DataBox
{
+ class_property(icon) = "<:ecere>controls/dataBox.png";
borderStyle = deep;
bool OnActivate(bool active, Window previous, bool * goOnWithActivation, bool direct)
{