Page 1 of 1
Center label on a graphic button
Posted: Thu May 28, 2015 4:01 pm
by kolia
Hello,
I have numerous graphics button with 3 pics. I'm wondering whether there is a mean to set a label centered in both direction over the image. Is there a way to set a color to this label? This would avoid the creation of many images, 3 for each button which is quite cumbersome.
Thank you.
Re: Center label on a graphic button
Posted: Thu May 28, 2015 4:15 pm
by Klaus
Hi kolia,
1. welcome to the forum!
2. Yes, there is new "icongravity" property that you can use:
...
set the icongravity of btn "you button here" to "center"
...
will do what you need, check the dictionary for more info!
For color, set the TEXT color of your button in the inspector!
Best
Klaus
Re: Center label on a graphic button
Posted: Fri May 29, 2015 12:43 pm
by kolia
Hi Klaus
This is just excellent news. This will save a lot of long hours designing nice butons. Thanks a lot. As far as I understand this property has to be set by code, am I right?
Just fyi, I've been developping stacks using Hypercard in the ... 90's. It was a fantastic environment. Since then, I've been mainly using several flavors of Visual Studio. I'm very enthousiastic to develop code with LC.
Re: Center label on a graphic button
Posted: Fri May 29, 2015 12:52 pm
by Klaus
Hi kolia,
kolia wrote:As far as I understand this property has to be set by code, am I right?
that is correct, there is no setting in the "Inspector" for this.
kolia wrote:Just fyi, I've been developping stacks using Hypercard in the ... 90's. It was a fantastic environment. Since then, I've been mainly using several flavors of Visual Studio. I'm very enthousiastic to develop code with LC.
You will love it, and maybe hate it from time to time
Best
Klaus
Re: Center label on a graphic button
Posted: Fri May 29, 2015 1:03 pm
by kolia
Cheers
Nicolas