void ::DroppedObject(Window instance, ObjectInfo object, bool isClass, Window _class)
{
instance.parent = _class;
- instance.text = object.name;
+ instance.caption = object.name;
instance.Create();
}
editBox.Printf("class %s : %s\n", name, inherit);
editBox.Printf("{\n");
- editBox.Printf(" text = \"%s\";\n", name);
+ editBox.Printf(" caption = \"%s\";\n", name);
//editBox.Printf(" background = Color { 212, 208, 200 };\n");
editBox.Printf(" background = activeBorder;\n");
/*
editBox.Printf("class %s : %s\n", "SecondForm", inherit);
editBox.Printf("{\n");
- editBox.Printf(" text = \"%s\";\n", "SecondForm");
+ editBox.Printf(" caption = \"%s\";\n", "SecondForm");
editBox.Printf(" background = Color { 100, 90, 120 };\n");
editBox.Printf(" borderStyle = sizable;\n");
editBox.Printf(" hasMaximize = true;\n");
editBox.Printf(" hasClose = true;\n");
editBox.Printf(" position = { 20, 20 };\n");
editBox.Printf(" size = { %d, %d };\n", 320, 200);
- editBox.Printf(" Button ok { parent = this, text = \"OK\", position = { A_RIGHT|10, A_RIGHT|10 }, size = { 80, 20 } };\n");
+ editBox.Printf(" Button ok { parent = this, caption = \"OK\", position = { A_RIGHT|10, A_RIGHT|10 }, size = { 80, 20 } };\n");
editBox.Printf("}\n");
*/
}
control.position.x = x;
control.position.y = y;
- control.text = object.name;
+ control.caption = object.name;
LockControls(control, control);
bool confirmation = activeDesigner.ObjectContainsCode(designer.selected.object);
if(confirmation)
- confirmation = MessageBox { type = okCancel, master = window.master, text = $"Deleting control with code", contents = $"Control contains code. Delete anyways?" }.Modal() != ok;
+ confirmation = MessageBox { type = okCancel, master = window.master, caption = $"Deleting control with code", contents = $"Control contains code. Delete anyways?" }.Modal() != ok;
// Confirmation if control contains other controls
if(!confirmation)
}
if(confirmation)
- confirmation = MessageBox { type = okCancel, master = window.master, text = $"Deleting control with children", contents = $"Control contains other controls. Delete control and children?"}.Modal() != ok;
+ confirmation = MessageBox { type = okCancel, master = window.master, caption = $"Deleting control with children", contents = $"Control contains other controls. Delete control and children?"}.Modal() != ok;
}
if(!confirmation)
private:
class_data char * icon;
class_no_expansion
- class_default_property text;
+ class_default_property caption;
// class_initialize GuiApplication::Initialize;
class_designer FormDesigner;
class_property char * icon
get { return master ? master : parent; }
};
- property char * text
+ property char * caption
{
property_category $"Appearance"
watchable
isset { return nativeDecorations != style.fixed; }
};
property bool manageDisplay { get { return (bool)manageDisplay; } set { manageDisplay = value; } };
-
+
+ property char * text
+ {
+ property_category $"Deprecated"
+ watchable
+ set { property::caption = value; }
+ get { return property::caption; }
+ }
private:
// Data
//char * yo;