I tried to use OPENW, MOVEW, FULLW, CLOSEW in the Windows version of X11-Basic, but it seems that always the same default graphics window is used, and it does not respond to any of these statements. (SIZEW works, though, using Window number 1.) Also, it does not close when an END statement is reached. So there seems to be no way for an X11-Basic program to close its own graphics window (except using QUIT, which shuts down the interpreter as well).
Also, the contents of the graphics window is not being refreshed when it loses focus and gains focus again; so if it was covered by another window (for example the X11-Basic console), it becomes blank after that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes... but if this is not done automatically, then my program would need to know somehow when the graphics window loses focus and when it regains focus, in order to execute SHOWPAGE when necessary.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, I know now what the problem is: Since X11-basic uses the graphics engine SDL V.1.2 on windows there are several restrictions on windows:
1. Only one window
2. MOVEW is not possible
3. CLOSEW also not possible
4. FULLW not possible
On The other hand, a FULLSCREEN mode would be possible.
I could find out, that SDL Version 2.0 has new functions for handling multiple windows. But I havent used that version so far. Maybe with some tricks I could make MOVEW, FULLW and CLOSEW work on this single window, if you want.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I see. For me it's not that urgent, I am more interested in the Android version. But as far as I understand, there it would be even more difficult to make multiple windows work, wouldn't it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can the graphics window be made to respond to the user's maximizing or resizing it and a window resize event sent to the running program? What appeared to be a reasonable size for SIZEW in my first attempt at a graphics program turned out to be tiny on my Windows H8.1 machine. Also, should the user be able to close the graphics window, and if so, how should the program be made aware of this? I see no window close event documented in the 1.26 manual. If more than one graphics window is ever supported, how to find out which window is clicked on, moved, resized, or otherwise fiddled with using EVENT?
Oh yeah, this is using X11-Basic-1.25-50d for Windows.
Thanks!
Last edit: Yet Another Troll 2019-06-03
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to use OPENW, MOVEW, FULLW, CLOSEW in the Windows version of X11-Basic, but it seems that always the same default graphics window is used, and it does not respond to any of these statements. (SIZEW works, though, using Window number 1.) Also, it does not close when an END statement is reached. So there seems to be no way for an X11-Basic program to close its own graphics window (except using QUIT, which shuts down the interpreter as well).
Also, the contents of the graphics window is not being refreshed when it loses focus and gains focus again; so if it was covered by another window (for example the X11-Basic console), it becomes blank after that.
OK, thanks. I will have a look at this. The refresh of the contents of the windows is done with SHOWPAGE
Yes... but if this is not done automatically, then my program would need to know somehow when the graphics window loses focus and when it regains focus, in order to execute SHOWPAGE when necessary.
OK, I know now what the problem is: Since X11-basic uses the graphics engine SDL V.1.2 on windows there are several restrictions on windows:
1. Only one window
2. MOVEW is not possible
3. CLOSEW also not possible
4. FULLW not possible
On The other hand, a FULLSCREEN mode would be possible.
I could find out, that SDL Version 2.0 has new functions for handling multiple windows. But I havent used that version so far. Maybe with some tricks I could make MOVEW, FULLW and CLOSEW work on this single window, if you want.
I see. For me it's not that urgent, I am more interested in the Android version. But as far as I understand, there it would be even more difficult to make multiple windows work, wouldn't it?
Can the graphics window be made to respond to the user's maximizing or resizing it and a window resize event sent to the running program? What appeared to be a reasonable size for SIZEW in my first attempt at a graphics program turned out to be tiny on my Windows H8.1 machine. Also, should the user be able to close the graphics window, and if so, how should the program be made aware of this? I see no window close event documented in the 1.26 manual. If more than one graphics window is ever supported, how to find out which window is clicked on, moved, resized, or otherwise fiddled with using EVENT?
Oh yeah, this is using X11-Basic-1.25-50d for Windows.
Thanks!
Last edit: Yet Another Troll 2019-06-03