Discussion Forums  >  Uncategorized

Replies: 7    Views: 196

ByFred
Code is Art
Profile
Posts: 51
Reg: Aug 26, 2011
New York
510
01/10/12 04:54 PM (14 years ago)

Button Menu - button margin left = 0

I creating a menu and I want that the button margin LEFT is 0?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/10/12 05:01 PM (14 years ago)
In the Advanced Properties...Button Size area for the Button Menu Screen, there is the option to set the margin. Perhaps that will help? Mark
 
ByFred
Code is Art
Profile
Posts: 51
Reg: Aug 26, 2011
New York
510
like
01/10/12 05:03 PM (14 years ago)
Thnx, but I only want the LEFT margin to be 0 (zero) and want to use the top margin as padding value
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/10/12 05:07 PM (14 years ago)
Then you're probably going to have to dig into some code and set it there! If you look at the package you downloaded from BT, you should be able to find the files that control button placement. Mess around with them and see what happens! Mark
 
ByFred
Code is Art
Profile
Posts: 51
Reg: Aug 26, 2011
New York
510
like
01/10/12 05:16 PM (14 years ago)
did some custom code and it seems to work! ;-)
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/10/12 05:36 PM (14 years ago)
Hi ByFred, Please share what you did so everyone can learn. Best Rgards, Danny
 
ByFred
Code is Art
Profile
Posts: 51
Reg: Aug 26, 2011
New York
510
like
01/10/12 05:42 PM (14 years ago)
Strange thing... if I change the left padding to 0 it's seems to add some margin on the right at the end of the row...? 3 buttons on the width of the screen is not working... if the padding/margin is set to 11 and the buttons are 97 it only set 2 buttons on a row... but on the iphone 320 width it has to set to button size 106.666
 
ByFred
Code is Art
Profile
Posts: 51
Reg: Aug 26, 2011
New York
510
like
01/10/12 06:13 PM (14 years ago)
I've this done in BT_screen_menuButtons.m I deleted buttonPadding or set left = 0 in the code //increment left left = (left + buttonSize); //do left or top need reset? if(tmpCount >= buttonsPerRow){ left = 0; top = (top + (buttonSize + buttonPadding)); ---------- //default values int left = 0; int top = buttonPadding; int tmpCount = 0; --------- double buttonsPerRow = floor(deviceWidth / (boxWidth));
 

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.