Sunday, September 30, 2012

Livecode Control Margin fix for OSX

As of Mac OSX 10.7 or later the controls in Livecode are off. Off how you might ask, well the label is off on the buttons, Checkboxes, Radio Buttons etc. The label is not aligned to the control and makes the user experience feel incorrect. There an simple fix however, by setting the text margins to align back to center. These are the margins I found that work to get the appearance correctly align for these controls.

Livecode 5.1.0 or later

This is for the default object height.

Push Buttons: 2,12,2,13
Rectangle Button: 2,12,2,13
Combo Box: 6,8,2,13
Radio Buttons: 4,15,2,13
Check Box: 4,15,2,13
Option Menu: 2,14,2,13
Pulldown: 4,14,2,13

These margins can be set by script or the properties palette.

No comments:

Post a Comment