Quantcast

IconGravity vs Margins in Buttons

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

IconGravity vs Margins in Buttons

Mark Talluto via use-livecode
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
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: IconGravity vs Margins in Buttons

Mark Talluto via use-livecode
Sounds like there are margins set. Try playing with those.

Bob S


> On Feb 20, 2017, at 08:42 , Randy Hengst via use-livecode <[hidden email]> 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
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: IconGravity vs Margins in Buttons

Mark Talluto via use-livecode
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 <[hidden email]> 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 <[hidden email]> 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
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Loading...