So how do I create a button that be on every screen?
I want to create 13 buttons in total, one below the other. So I need to create them in such a way that they are all on the screen on every iPhone and iPad. How do I do this?
Think and code. This is your creativity.
If you will have any questions regarding sB commands, please feel free to ask.
No need to give up. There is a simple solution. I will post it in Other topics, since this section is meant for posting programs rather than how-to discussion.
Hi Ramzan,
All comments made here are right. I think that the confusion is caused by the fact that mr. K. is talking about ABSOLUTE positions on a screen and you talk about RELATIVE positions (i.e. "near the bottom of the screen").
Now, as the vertical resolution of the various iPhones and iPads differ, you have to recalculate the actual vertical position to ensure a equal RELATIVE position on any hardware.
The same goes for a relative horizontal position.
So, if you want a button in the mid of the screen and at 90% near the bottom at ANY iphone/pad, the code would be:
sw=screen_width() ! sh=screen_height()
button "blops" at 0.5*sw, 0.9*sh size bx,by
I put bx and by as size in this example, because probably you would want the size of buttons be adapted to the size of the screen too.
It's a nasty thing to make an app that looks similar on ALL hardware, but i think that goes for most if not all programming languages.