Discussion Forums  >  Uncategorized

Replies: 7    Views: 579

SBarnett
Aspiring developer
Profile
Posts: 12
Reg: Jan 18, 2011
Orlando
120
05/18/11 02:38 PM (14 years ago)

Menu-Buttons- Want to create rectangular buttons

Hello, all! Having a good time working with BT 1.5! Highly recommended. I would, however, like to use the button menu with rectangular buttons instead of square. I've tried looking through the BT_screen_menuButtons.m file and, either I'm just goofy or i've not had enough sleep, but I can't seem to track down the variables required anywhere. Can someone, ANYONE give me a push in the proper direction? It would be most appreciated. Steven
 
SBarnett
Aspiring developer
Profile
Posts: 12
Reg: Jan 18, 2011
Orlando
120
like
05/18/11 02:39 PM (14 years ago)
Or, at the very least, is there a way to space out items in a List Menu?
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
05/19/11 12:52 AM (14 years ago)
HI SBarnett! Nice picture of you! :) you can not make rectangular buttons in BT1.5. But you can cheat a bit. if you take a image of a button as you make rectangular and add it to your Xcode project image folder. then go into the Button Properties, and put in the background image. then you resize the button so it is invisible under the image. I hope you under stand what I mean!
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
05/19/11 12:54 AM (14 years ago)
I forgot to say that it does not work with the background image URL
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/19/11 02:40 AM (14 years ago)
Yup, rectangle are not easy (for a few reasons). Mackimack idea is a good one but I don't understand the 'background image URL' doesn't work reference? Hmm.. .what background image URL doesn't work? Here's how I would do it...close to professional but could use some improvements. a) Make a background image for the entire screen, not each button. This single image will have the individaul button images on it b) Use a list-menu and set the background color to clear (literally enter the word clear, not a hex value). This is the list background color, not the screen background color c) Set the lists selection type to none so the items don't turn blue when selected d) Set the list items background color to clear and the font-color to clear. The list is now invisible e) Set the list to 'prevent scroll' so it doesn't move at all f) Set the SCREENS background image. May seem jenky but may work well, depends on your image.
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
05/19/11 05:33 AM (14 years ago)
what I mean is that you should select the icon File name instead of bakground image in Button Properties. if you use the background image or background image url so it folds in the button, if you uses icon image as it remains on the button. So if I have a Icon image its 100 x 50 then I have a rectangular image. then I set Button Size 40. then it is not visible behind the image.
 
SBarnett
Aspiring developer
Profile
Posts: 12
Reg: Jan 18, 2011
Orlando
120
like
05/19/11 06:10 AM (14 years ago)
Thank you so much for the tips. I was kind of going that way a bit with Mackimac's suggestion, but I'm intrigued by your suggestion David, as I AM working from a pre-built menu design. I will try both suggestions out and happily let you know what works.
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
06/09/12 09:36 AM (13 years ago)
thanks David.......the perfect solution. I was thinking of going the multiple buttons over the background route, but this was just so easy! 5 minutes and I was done.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.