IconGravity vs Margins in Buttons

Randy Hengst iowahengst at mac.com
Tue Feb 21 11:36:08 EST 2017


Hi Bob,

Thanks for the response… I’ve messed with the margin settings. For example, 0,12,0,0 does move the text down realtive to the top of the button, but it also moves the icon down… I really need to just adjust the text…. I’d like to be able to set something like “textHeight” in a field for buttons.

be well,
randy

Randy Hengst
www.classroomFocusedSoftware.com



> On Feb 21, 2017, at 9:57 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Sounds like there are margins set. Try playing with those. 
> 
> Bob S
> 
> 
>> On Feb 20, 2017, at 08:42 , Randy Hengst via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Hi All,
>> 
>> I’ve been messing with using a variety of fonts in buttons coupled with a round icon.
>> 
>> It’s handy to set the iconGravity of the button to “center” and have the text of the button line up nicely with the icon. However, I’ve noticed that some fonts don’t line up in the center of the icon.
>> 
>> I’ve set the textAlign of the button to “center”
>> I’ve set the iconGravity of the button to “center” 
>> 
>> Is there a way besides using textAlign to adjust only the placement of the text of the button separately from the icon? I’m thinking of something like in spreadsheet cells that have the left, right, center and top, middle, bottom settings. 
>> 
>> In this case, I’d like to move the text down relative to the button icon… the textAlign will move the text left or right without moving the icon. Is there a way to move the text down without moving the icon down?
>> 
>> I’ve tried messing with “margins,” but changing those settings moves the text and the icon.
>> 
>> I’m using LC 8.1.2
>> Mac OS 10.11.6
>> 
>> Thanks for any thoughts.
>> 
>> be well,
>> randy
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list