Discussion Forums  >  Uncategorized

Replies: 4    Views: 182

chadh0130
Apple Fan
Profile
Posts: 352
Reg: Nov 05, 2011
Rhode Island
4,020
12/18/11 12:01 AM (14 years ago)

How to custom edit the h x w of buttons

How to custom edit the h x w of buttons
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/18/11 01:53 AM (14 years ago)
Which buttons? Which buzztouch version? iOS or Android? Have a look at the BT_screen_menuButtons.java (android) or BT_screen_menuButtons.m (iOS) files, these control the button layout. These are complicated files because of all the button options available in the control panel. You could find where the layout is happening and adjust whatever need.
 
chadh0130
Apple Fan
Profile
Posts: 352
Reg: Nov 05, 2011
Rhode Island
4,020
like
12/18/11 10:18 PM (14 years ago)
I have six buttons on a page (3 on top and 3 on bottom). How do I change the space between each box...see screen shot for reference http://screencast.com/t/cCpgjhWT8sw2
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/19/11 12:49 AM (14 years ago)
Ah, I see (good screenshot). The menu-buttons screen creates square buttons and the margin between them is adjustable in your control panel. If you increase the margin the space should be equal on all sides. If this isn't happening, something isn't right. If it is, and it's not the layout you want, you'll need to hack around in the button screen class file to customize the layout.
 
chadh0130
Apple Fan
Profile
Posts: 352
Reg: Nov 05, 2011
Rhode Island
4,020
like
01/10/12 07:15 PM (14 years ago)
is there a way to have a fixed location on buttons? For example: I have an ipad app and since it supports all orientations, Can I have fixed locations on a portrait view and a fixed location on a landscape view so the buttons always match up with the background image?
 

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.