void ::CreateNew(EditBox editBox, Size clientSize, char * name, char * inherit)
{
- int w = 640, h = 480;
+ int w = 632, h = 438;
if(clientSize.w - 40 -200 < w)
{
w = (clientSize.w - 40 - 200);
w -= w % GridSnap;
- h = h * w / 640;
+ h = h * w / 632;
h -= h % GridSnap;
w = Max(w, 304);
h = Max(h, 304);
editBox.Printf(" hasMinimize = true;\n");
editBox.Printf(" hasClose = true;\n");
//editBox.Printf(" position = { 20, 20 };\n");
- editBox.Printf(" size = { %d, %d };\n", w, h);
+ editBox.Printf(" clientSize = { %d, %d };\n", w, h);
//editBox.Printf(" Button ok { parent = this, position = { 100, 100 }, size = { 80, 20 } };\n");
autoCreate = true;
modifyVirtArea = true;
manageDisplay = true;
+ nativeDecorations = true;
// scrollFlags = ScrollFlags { snapX = true, snapY = true };
sbStep.x = sbStep.y = 8;
style.hasClose = false;
style.hasMaximize = false;
style.hasMinimize = false;
+ nativeDecorations = false;
}
style.borderBits = value;
if(created)
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 && (formDesigner || rootWindow == this); } set { nativeDecorations = value; } };
+ property bool nativeDecorations
+ {
+ get { return (bool)nativeDecorations && (formDesigner || rootWindow == this); }
+ set { nativeDecorations = value; }
+ isset { return nativeDecorations != style.fixed; }
+ };
property bool manageDisplay { get { return (bool)manageDisplay; } set { manageDisplay = value; } };
private: