Music Player

User avatar
Mr. Kibernetik
Site Admin
Posts: 4782
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Music Player

Post by Mr. Kibernetik »

Ramzan wrote:How do I make a button then that will be in the same position on all devices?
Smart BASIC has this behavior by default.

Ramzan
Posts: 26
Joined: Mon Jan 04, 2016 11:13 pm
My devices: iPad
Flag: Great Britain

Re: Music Player

Post by Ramzan »

I'm so confused now.

Will BUTTON AT 30,700 be in the same position on every iPhone and iPad? I don't want the button to be offscreen on lower resolution phones and tablets.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4782
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Music Player

Post by Mr. Kibernetik »

Ramzan wrote:I'm so confused now.

Will BUTTON AT 30,700 be in the same position on every iPhone and iPad? I don't want the button to be offscreen on lower resolution phones and tablets.
How do you plan to have button with position at 700 points height on iPhone which screen is only 480 points height?

Ramzan
Posts: 26
Joined: Mon Jan 04, 2016 11:13 pm
My devices: iPad
Flag: Great Britain

Re: Music Player

Post by Ramzan »

That's my point.

What command do I use to ensure the button is in the same position on every iPhone and iPad? How do I make such a button?

User avatar
Mr. Kibernetik
Site Admin
Posts: 4782
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Music Player

Post by Mr. Kibernetik »

Ramzan wrote:That's my point.

What command do I use to ensure the button is in the same position on every iPhone and iPad? How do I make such a button?
It will be at the same position on any iPhone or iPad.
But you must know that not all devices have the same screen size, and you need to take this into account.

Ramzan
Posts: 26
Joined: Mon Jan 04, 2016 11:13 pm
My devices: iPad
Flag: Great Britain

Re: Music Player

Post by Ramzan »

I just don't understand anything now. Give me an example of a button that will be at the same position. Please type some code.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4782
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Music Player

Post by Mr. Kibernetik »

Ramzan wrote:I just don't understand anything now. Give me an example of a button that will be at the same position. Please type some code.
BUTTON 0 TEXT "My Button" AT 10,10

Ramzan
Posts: 26
Joined: Mon Jan 04, 2016 11:13 pm
My devices: iPad
Flag: Great Britain

Re: Music Player

Post by Ramzan »

So that command will work on any iPhone and iPad because their resolutions are high enough.

But BUTTON 30,700 will ONLY work on SOME iPhones and iPads which have a resolution high enough to support it?

User avatar
Mr. Kibernetik
Site Admin
Posts: 4782
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Music Player

Post by Mr. Kibernetik »

Ramzan wrote:So that command will work on any iPhone and iPad because their resolutions are high enough.

But BUTTON 30,700 will ONLY work on SOME iPhones and iPads which have a resolution high enough to support it?
They will work. But button will be off the screen on iPhones or iPods with smaller screens.

Ramzan
Posts: 26
Joined: Mon Jan 04, 2016 11:13 pm
My devices: iPad
Flag: Great Britain

Re: Music Player

Post by Ramzan »

Ok.

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?

Post Reply