BBC BASIC
« SYS »

Welcome Guest. Please Login or Register.
Mar 31st, 2018, 10:42pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Cross-platform BBC BASIC (Windows, Linux x86, Mac OS-X, Android, iOS, Raspberry Pi)
BBC BASIC Resources
BBC BASIC Help Documentation
BBC BASIC for Windows Home Page
BBC BASIC Programmers' Reference
BBC BASIC Beginners' Tutorial
BBC BASIC for SDL 2.0 Home Page
BBC BASIC Discussion Group

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: SYS  (Read 164 times)
roy
New Member
Image


member is offline

Avatar




PM


Posts: 44
xx SYS
« Thread started on: Feb 18th, 2018, 7:06pm »

Hi All

Is there a way to use the SYS calls with Android.
I'v been trying to get the code below to work, but can't

Is there a list with SYS calls that do work with Android.
Code:
message$ = "Test message"
caption$ = "Test caption"
SYS "MessageBox", @hwnd%, message$, caption$, 0
 


Regards Roy

User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 803
xx Re: SYS
« Reply #1 on: Feb 18th, 2018, 9:12pm »

on Feb 18th, 2018, 7:06pm, roy wrote:
Is there a way to use the SYS calls with Android.

Yes, SYS is fully implemented in the Android version.

Quote:
I've been trying to get the code below to work, but can't

They're Windows API functions! Try:

Code:
      message$ = "Test message"
      caption$ = "Test caption"
      SYS "SDL_ShowSimpleMessageBox", 0, caption$, message$, @hwnd% 

Quote:
Is there a list with SYS calls that do work with Android.

Yes: https://wiki.libsdl.org/APIByCategory

Richard.
User IP Logged

roy
New Member
Image


member is offline

Avatar




PM


Posts: 44
xx Re: SYS
« Reply #2 on: Feb 19th, 2018, 06:51am »

Thanks for that Richard

Is there away to get say a Yes No button and a Question mark, like below would do in Windows. I have been trying without successes.

Code:
message$ = "Test message"
caption$ = "Test caption"
SYS "MessageBox", @hwnd%, message$, caption$, 36 TO result% 
 


Roy
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 803
xx Re: SYS
« Reply #3 on: Feb 19th, 2018, 07:11am »

on Feb 19th, 2018, 06:51am, roy wrote:
Is there away to get say a Yes No button and a Question mark


SYS "SDL_ShowMessageBox" will do that, although it's fiddlier to use than the Windows equivalent. You can check out how it's called in SDLIDE.bbc for some sample code.

Richard.
User IP Logged

roy
New Member
Image


member is offline

Avatar




PM


Posts: 44
xx Re: SYS
« Reply #4 on: Feb 19th, 2018, 07:52am »

Thanks Richard
User IP Logged

roy
New Member
Image


member is offline

Avatar




PM


Posts: 44
xx Re: SYS
« Reply #5 on: Feb 19th, 2018, 08:07am »

Richard I can't fined SDLIDE.bbc sad Can you tell me where is

Roy
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 803
xx Re: SYS
« Reply #6 on: Feb 19th, 2018, 5:05pm »

on Feb 19th, 2018, 08:07am, roy wrote:
Richard I can't fined SDLIDE.bbc sad Can you tell me where is

In the BBCSDL examples/tools directory (in any of the desktop editions). It's what you are using (I presume, and hope) to develop and test your programs before attempting to port them to Android. wink

I would strongly advise against attempting to move from BB4W directly to Android; much easier to use 'desktop' BBCSDL as an intermediate step. It's one of the great benefits of a cross-platform language.

Richard.
User IP Logged

roy
New Member
Image


member is offline

Avatar




PM


Posts: 44
xx Re: SYS
« Reply #7 on: Feb 20th, 2018, 08:08am »

Thanks Richard

I was using BBC4W embarassed so now I on the right track I may get somewhere smiley

Regards Roy
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls