- 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;
+ m_smallRectangleSize.x = 18;
+ m_smallRectangleSize.y = 14;
+ m_customRectangleSize.x = 40;
+ m_customRectangleSize.y = 40;
+
+ m_gridSpacing = 6;
+ m_sectionSpacing = 15;
+
+ m_standardColoursRect.x = 10;
+#ifdef __WXPM__
+ m_standardColoursRect.y = 15 + 20; /* OS/2 needs to account for dialog titlebar */
+#else
+ m_standardColoursRect.y = 15;
+#endif
+ m_standardColoursRect.width = (8*m_smallRectangleSize.x) + (7*m_gridSpacing);
+ m_standardColoursRect.height = (6*m_smallRectangleSize.y) + (5*m_gridSpacing);
+
+ m_customColoursRect.x = m_standardColoursRect.x;
+ m_customColoursRect.y = m_standardColoursRect.y + m_standardColoursRect.height + 20;
+ m_customColoursRect.width = (8*m_smallRectangleSize.x) + (7*m_gridSpacing);
+ m_customColoursRect.height = (2*m_smallRectangleSize.y) + (1*m_gridSpacing);
+
+ m_singleCustomColourRect.x = m_customColoursRect.width + m_customColoursRect.x + m_sectionSpacing;
+ m_singleCustomColourRect.y = 80;
+ m_singleCustomColourRect.width = m_customRectangleSize.x;
+ m_singleCustomColourRect.height = m_customRectangleSize.y;
+
+ m_okButtonX = 10;
+ m_customButtonX = m_singleCustomColourRect.x ;
+ m_buttonY = m_customColoursRect.y + m_customColoursRect.height + 10;