[interfacekit] BMenuField, BTextControl, and SetDivider()

Howdy,

while playing with the layout code of BMenuField, I realized, that the 
SetDivider() methods of our BMenuField and BTextControl classes actually 
result in aligned controls, if one uses the same divider value. I tried the 
same under BeOS R5, resulting in the attached screen shots. The red box is 
a view that is positioned with the same horizontal offset as the divider 
value. As can be seen, neither of the two controls is actually aligned with 
the box, nor are they aligned with each other.

The second screen shot shows the focus frame around the menu field button. 
It has 1 pixel padding to each border, save the right one. Under Haiku 
there's no padding to either border, which, I think, looks better.

Anyway, if a BMenuField does not have a label and the divider is set to 0, 
there's no room for the left border of the focus frame. I didn't check 
that, but looking at the code, the same might hold for the right border, 
too. If one leaves one pixel for the focus frame, one obviously can't align 
the BMenuField with an unlabeled BTextControl -- or anything else (button, 
whatever) for that matter -- anymore.

Any ideas who to solve the issue?

CU, Ingo

Attachment: divider-alignment1
Description: PNG image

Attachment: divider-alignment2
Description: PNG image

Attachment: divider-alignment3
Description: PNG image

Other related posts: