I have modified the in-browser (web) edition of BBC BASIC for SDL 2.0 by adding a Fullscreen button. If this is clicked/tapped the program currently running will switch to Fullscreen mode.
If the program has been written to adapt to window-size changes (e.g. by the inclusion of the PROCresize procedure) it should adjust its output accordingly. Several of the supplied example programs do this.
To exit Fullscreen mode press Escape, as is usual for browsers (the Escape keypress will not be sent to your program). To control Fullscreen operation 'programmatically' use SYS "SDL_SetWindowFullscreen",@hwnd%,flag%,@memhdc% in the usual way.
Fullscreen button
Re: Fullscreen button
Incidentally browsers are tricky things, because of their (understandable) obsession with 'security'. If you programmatically enable Fullscreen mode in response to the user pressing a key or clicking a button, it will probably work. But if your program tries to switch to Fullscreen mode without any user input, it probably won't work!Hated Moron wrote: ↑Tue 12 Dec 2023, 13:53 To control Fullscreen operation 'programmatically' use SYS "SDL_SetWindowFullscreen",@hwnd%,flag%,@memhdc% in the usual way.
It's for a similar reason that Copy and Paste don't work in the web edition, browsers won't allow these actions unless they are sure they were as a result of user-input rather than an automated process which might be trying to do something dangerous or fraudulent (such as fake user input). We just have to live with these restrictions.
Re: Fullscreen button
Does nobody have anything to say about this? Sometimes I feel as though my announcements are 'screaming into the void'!Hated Moron wrote: ↑Tue 12 Dec 2023, 13:53 I have modified the in-browser (web) edition of BBC BASIC for SDL 2.0 by adding a Fullscreen button. If this is clicked/tapped the program currently running will switch to Fullscreen mode.

It's a great pity that this forum doesn't have an equivalent of the Facebook Like button which allows you to show appreciation without actually making a comment. The Discussion Group does, but I'm not sure I can remember anybody ever having 'liked' one of my forwarded posts.

-
- Posts: 4
- Joined: Tue 03 Apr 2018, 11:59
Re: Fullscreen button
Mr Void here, listening unobtrusively.
Like many (I expect) reading your posts, I find they deal with topics that aren't immediately useful to me. However, they are usually both stimulating and rigorous, which is a bonus on any forum.
For my part, please accept my usually silent thanks and appreciation.
PT
Like many (I expect) reading your posts, I find they deal with topics that aren't immediately useful to me. However, they are usually both stimulating and rigorous, which is a bonus on any forum.
For my part, please accept my usually silent thanks and appreciation.
PT
-
- Posts: 14
- Joined: Fri 08 Jul 2022, 02:47
- Location: England
Re: Fullscreen button
When I click the link in the email notification it takes me to the forum, which has no like button, as you said.
The other problem is the pop up asking me to accept cookies on the forum frequently doesn’t show, so I can’t even post!
I also offer my thanks and appreciation.
The other problem is the pop up asking me to accept cookies on the forum frequently doesn’t show, so I can’t even post!
I also offer my thanks and appreciation.
Finishing that game Any Decade Now™
Re: Fullscreen button
Once you have accepted Cookies it shouldn't be necessary to do so again; I never have to. As far as shortcomings in the forum software (phpBB) are concerned, I believe the admin is planning to update it to the latest version sometime soon, so that may help. DDRM can you confirm?Flatlander wrote: ↑Fri 15 Dec 2023, 17:46 The other problem is the pop up asking me to accept cookies on the forum frequently doesn’t show, so I can’t even post!