BBC BASIC
« Search Results »

Welcome Guest. Please Login or Register.
Feb 21st, 2018, 01:58am


Cross-platform BBC BASIC (Win32, Linux x86, Android, Mac OS-X, Raspberry Pi)

Search Results

Total results: 10


 1   Android / Re: SYS  on: Yesterday at 08:08am
Started by roy | Post by roy
Thanks Richard

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

Regards Roy

 
  Reply Quote Notify of replies

 2   Android / Re: SYS  on: Feb 19th, 2018, 5:05pm
Started by roy | Post by Richard Russell
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.

 
  Reply Quote Notify of replies

 3   Android / Re: SYS  on: Feb 19th, 2018, 08:07am
Started by roy | Post by roy
Richard I can't fined SDLIDE.bbc sad Can you tell me where is

Roy

 
  Reply Quote Notify of replies

 4   Support and Promote / Re: The Entertainer  on: Feb 19th, 2018, 08:04am
Started by Richard Russell | Post by DDRM
Hi Richard,

Thanks, yes: I always find such accounts of clever ways of doing things interesting, illuminating, and useful!

Best wishes,

D
 
  Reply Quote Notify of replies

 5   Android / Re: SYS  on: Feb 19th, 2018, 07:52am
Started by roy | Post by roy
Thanks Richard
 
  Reply Quote Notify of replies

 6   Android / Re: SYS  on: Feb 19th, 2018, 07:11am
Started by roy | Post by Richard Russell
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.

 
  Reply Quote Notify of replies

 7   Android / Re: SYS  on: Feb 19th, 2018, 06:51am
Started by roy | Post by roy
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
 
  Reply Quote Notify of replies

 8   Android / Re: SYS  on: Feb 18th, 2018, 9:12pm
Started by roy | Post by Richard Russell
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.

 
  Reply Quote Notify of replies

 9   Android / SYS  on: Feb 18th, 2018, 7:06pm
Started by roy | Post by roy
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


 
  Reply Quote Notify of replies

 10   Graphics and Games / Re: Angled text  on: Feb 18th, 2018, 5:28pm
Started by KenDown | Post by Richard Russell
on Feb 18th, 2018, 4:32pm, KenDown wrote:
Is there any way of finding the bounding box of some angled text?

If GDI is working properly, it should always update the 'system' bounding box, i.e. the one accessed by the SetBoundsRect and GetBoundsRect APIs.

I say "if GDI is working properly" not because I suspect it isn't - hopefully you can be confident that it will work in 'real' Windows - but because for a long time it didn't work in Wine and this was a major compatibility issue for BB4W. I don't even know for sure that angled text updates the bounding box in Wine now.

Richard.

 
  Reply Quote Notify of replies


Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls