- static const int widths[Field_Max] = { -1, 150, BITMAP_SIZE_X, 100 };
+ // compute the size needed for num lock indicator pane
+ wxClientDC dc(this);
+ wxSize sizeNumLock = dc.GetTextExtent(numlockIndicators[0]);
+ sizeNumLock.IncTo(dc.GetTextExtent(numlockIndicators[1]));
+
+ int widths[Field_Max];
+ widths[Field_Text] = -1; // growable
+ widths[Field_Checkbox] = 150;
+ widths[Field_Bitmap] = BITMAP_SIZE_X;
+ widths[Field_NumLockIndicator] = sizeNumLock.x;
+ widths[Field_Clock] = 100;
+ widths[Field_CapsLockIndicator] = dc.GetTextExtent(capslockIndicators[1]).x;