- smallRectangleSize.x = 18;
- smallRectangleSize.y = 14;
- customRectangleSize.x = 40;
- customRectangleSize.y = 40;
-
- gridSpacing = 6;
- sectionSpacing = 15;
-
- standardColoursRect.x = 10;
- standardColoursRect.y = 15;
- standardColoursRect.width = (8*smallRectangleSize.x) + (7*gridSpacing);
- standardColoursRect.height = (6*smallRectangleSize.y) + (5*gridSpacing);
-
- customColoursRect.x = standardColoursRect.x;
- customColoursRect.y = standardColoursRect.y + standardColoursRect.height + 20;
- customColoursRect.width = (8*smallRectangleSize.x) + (7*gridSpacing);
- customColoursRect.height = (2*smallRectangleSize.y) + (1*gridSpacing);
-
- singleCustomColourRect.x = customColoursRect.width + customColoursRect.x + sectionSpacing;
- singleCustomColourRect.y = 80;
- singleCustomColourRect.width = customRectangleSize.x;
- singleCustomColourRect.height = customRectangleSize.y;
-
- okButtonX = 10;
- customButtonX = singleCustomColourRect.x ;
- buttonY = customColoursRect.y + customColoursRect.height + 10;
+ smallRectangleSize.x = 18;
+ smallRectangleSize.y = 14;
+ customRectangleSize.x = 40;
+ customRectangleSize.y = 40;
+
+ gridSpacing = 6;
+ sectionSpacing = 15;
+
+ standardColoursRect.x = 10;
+#ifdef __WXPM__
+ standardColoursRect.y = 15 + 20; /* OS/2 needs to account for dialog titlebar */
+#else
+ standardColoursRect.y = 15;
+#endif
+ standardColoursRect.width = (8*smallRectangleSize.x) + (7*gridSpacing);
+ standardColoursRect.height = (6*smallRectangleSize.y) + (5*gridSpacing);
+
+ customColoursRect.x = standardColoursRect.x;
+ customColoursRect.y = standardColoursRect.y + standardColoursRect.height + 20;
+ customColoursRect.width = (8*smallRectangleSize.x) + (7*gridSpacing);
+ customColoursRect.height = (2*smallRectangleSize.y) + (1*gridSpacing);
+
+ singleCustomColourRect.x = customColoursRect.width + customColoursRect.x + sectionSpacing;
+ singleCustomColourRect.y = 80;
+ singleCustomColourRect.width = customRectangleSize.x;
+ singleCustomColourRect.height = customRectangleSize.y;
+
+ okButtonX = 10;
+ customButtonX = singleCustomColourRect.x ;
+ buttonY = customColoursRect.y + customColoursRect.height + 10;