void ::CreateObject(DesignerBase designer, Window instance, ObjectInfo object, bool isClass, Window _class)
{
instance.object = object;
+ instance.formDesigner = true;
LockControls(instance, instance);
if(isClass)
{
property bool alphaBlend { get { return (bool)alphaBlend; } set { alphaBlend = value; } };
property bool useSharedMemory { get { return (bool)useSharedMemory; } set { useSharedMemory = value; } };
property CreationActivationOption creationActivation { get { return creationActivation; } set { creationActivation = value; } };
- property bool nativeDecorations { get { return (bool)nativeDecorations && rootWindow == this; } set { nativeDecorations = value; } };
+ property bool nativeDecorations { get { return (bool)nativeDecorations && (formDesigner || rootWindow == this); } set { nativeDecorations = value; } };
property bool manageDisplay { get { return (bool)manageDisplay; } set { manageDisplay = value; } };
private:
bool saving:1;
bool nativeDecorations:1;
bool manageDisplay:1;
+ bool formDesigner:1; // True if we this is running in the form editor
};
WindowController controller;