- PrologExpr *labelFontExpr = (PrologExpr *) NULL;
- PrologExpr *buttonFontExpr = (PrologExpr *) NULL;
- PrologExpr *fontExpr = (PrologExpr *) NULL;
- expr->AssignAttributeValue("style", &style);
- expr->AssignAttributeValue("name", &name);
- expr->AssignAttributeValue("title", &title);
- expr->AssignAttributeValue("x", &x);
- expr->AssignAttributeValue("y", &y);
- expr->AssignAttributeValue("width", &width);
- expr->AssignAttributeValue("height", &height);
- expr->AssignAttributeValue("modal", &isModal);
- expr->AssignAttributeValue("label_font", &labelFontExpr);
- expr->AssignAttributeValue("button_font", &buttonFontExpr);
- expr->AssignAttributeValue("font", &fontExpr);
- expr->AssignAttributeValue("background_colour", &backColourHex);
- expr->AssignAttributeValue("label_colour", &labelColourHex);
- expr->AssignAttributeValue("button_colour", &buttonColourHex);
+ wxExpr *labelFontExpr = (wxExpr *) NULL;
+ wxExpr *buttonFontExpr = (wxExpr *) NULL;
+ wxExpr *fontExpr = (wxExpr *) NULL;
+ expr->GetAttributeValue("style", style);
+ expr->GetAttributeValue("name", name);
+ expr->GetAttributeValue("title", title);
+ expr->GetAttributeValue("x", x);
+ expr->GetAttributeValue("y", y);
+ expr->GetAttributeValue("width", width);
+ expr->GetAttributeValue("height", height);
+ expr->GetAttributeValue("modal", isModal);
+ expr->GetAttributeValue("label_font", &labelFontExpr);
+ expr->GetAttributeValue("button_font", &buttonFontExpr);
+ expr->GetAttributeValue("font", &fontExpr);
+ expr->GetAttributeValue("background_colour", backColourHex);
+ expr->GetAttributeValue("label_colour", labelColourHex);
+ expr->GetAttributeValue("button_colour", buttonColourHex);
+
+ int useDialogUnits = 0;
+ expr->GetAttributeValue("use_dialog_units", useDialogUnits);
+ if (useDialogUnits != 0)
+ dialogItem->SetResourceStyle(dialogItem->GetResourceStyle() | wxRESOURCE_DIALOG_UNITS);
+
+ int useDefaults = 0;
+ expr->GetAttributeValue("use_system_defaults", useDefaults);
+ if (useDefaults != 0)
+ dialogItem->SetResourceStyle(dialogItem->GetResourceStyle() | wxRESOURCE_USE_DEFAULTS);