Re: Images in Button

2012-07-17 Thread Bob Sneidar
Okay nobody panic!! This is a very dangerous situation. DO NOT under ANY CIRCUMSTANCES change the margins of your dryers to all positive numbers! The deluge of socks may bury you, and you will suffocate before anyone can get to you! Back your margins off one at a time, and then fold each sock as

Re: Images in Button

2012-07-17 Thread Peter M. Brigham
On Jul 17, 2012, at 2:34 AM, Scott Rossi wrote: > Your suggestion of "hiding stuff" has given me an idea. All these years, > we've been wondering where missing socks go -- maybe they're behind a > negative margin. That's it!! I was hacked!! I just checked -- "put the margins of myDryer" gives m

Re: Images in Button

2012-07-16 Thread Scott Rossi
Mostly for fixing the vertical offset of text. When you change the textHeight of a field, the text's offset from the top of the field changes. Adjusting the top margin, sometimes to a negative value, gives you another way to position the first line of of field, regardless of textHeight/textSize.

Re: Images in Button

2012-07-16 Thread Jim Lambert
This may help. http://netrin.on-rev.com/buttonstyling/buttonstyling.html It's a revlet, so all the caveats about viewing revlets apply. Click 'See Button Script' to copy the script. Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.

Re: Images in Button

2012-07-16 Thread J. Landman Gay
On 7/16/12 9:31 PM, Scott Rossi wrote: Hi Pete: Maybe. I use custom development palettes, so maybe LiveCode's inspector doesn't like the negative values, but they've been working for me for some time now. set the margins of fld 1 to 6,-10,6,6 That's pretty cool. What do you use it for? Hid

Re: Images in Button

2012-07-16 Thread Scott Rossi
Hi Pete: Maybe. I use custom development palettes, so maybe LiveCode's inspector doesn't like the negative values, but they've been working for me for some time now. set the margins of fld 1 to 6,-10,6,6 Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Peter Hawort

Re: Images in Button

2012-07-16 Thread Peter Haworth
Hi Scott, I just tried this in the Inspector and wasn't able to enter a negative value (it beeped and didn't accept the minus sign). Do you have to do it by script? Pete lcSQL Software On Mon, Jul 16, 2012 at 6:28 PM, Scott Rossi wrote: > Speaking of 4 margin values, on

Re: Images in Button

2012-07-16 Thread Scott Rossi
Speaking of 4 margin values, one of the most helpful (accidental) things I discovered with margins is that you can use negative values. Offsetting the top margin of a field with a negative value has saved my sanity when it comes to textSize/textHeight/margin headaches. Regards, Scott Rossi Creat

Re: Images in Button

2012-07-16 Thread Mark Wieder
Bob- Monday, July 16, 2012, 4:51:39 PM, you wrote: > Oh that will work too, and I also should mention that after > disabling the label, you can set the foreColor to black which will > restore it's initial color. I set my disabled fields to a pastel red > in one app because it looks better than gr

Re: Images in Button

2012-07-16 Thread Randy Hengst
Thank you Mark S. Your comment helped me rethink the my assumptions…. would you believe that I can't recall ever putting four numbers in the margins entry. You know what else I didn't even consider Well, I didn't even think about setting the margins via script…. sometimes I feel like every

Re: Images in Button

2012-07-16 Thread Bob Sneidar
Oh that will work too, and I also should mention that after disabling the label, you can set the foreColor to black which will restore it's initial color. I set my disabled fields to a pastel red in one app because it looks better than grey. Bob On Jul 16, 2012, at 4:28 PM, Mark Wieder wrote

Re: Images in Button

2012-07-16 Thread Mark Schonewille
Hi Randy, The text moves up if you increase the bottom margin, but that causes the icon to shift up too, so you need to increase the upper margin to move it down again. Just don't give up that quickly. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepa

Re: Images in Button

2012-07-16 Thread Mark Wieder
Bob Sneidar writes: > > I was going to say create a group with a label and an image, group the two, and set a property of the label so that > you can click through to the image but I do not seem to be able to find that property. It may be a property that > only images can have. Anyone? Group t

Re: Images in Button

2012-07-16 Thread Randy Hengst
Hi Mark, I have tried messing with the margins setting… however, when I change the setting, the name of the button AND the icon shifts. I can't keep the icon & the name in the middle of the button. be well, randy - On Jul 16, 2012, at 6:11 PM, Mark Schonewille wrote: > Hi Randy, > > Fiddl

Re: Images in Button

2012-07-16 Thread Bob Sneidar
I was going to say create a group with a label and an image, group the two, and set a property of the label so that you can click through to the image but I do not seem to be able to find that property. It may be a property that only images can have. Anyone? Bob On Jul 16, 2012, at 4:06 PM,

Re: Images in Button

2012-07-16 Thread Mark Schonewille
Hi Randy, Fiddle with the margins of the button. Those allow you to move the icon downwards and the text upwards and eventually you should be able to position the text in the middle of the icon. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: htt

Images in Button

2012-07-16 Thread Randy Hengst
Hi All, I'd like to use an image in as a button icon…. that I know how to do. I'd like the button name to display in the middle of the button…. that I know how to do. However, when I use an image for an icon I cannot place the name of the button in the middle…. unless I make the button bigger