o1-preview-2024-09-12· OpenAI
WildChat-4.8M (AI2)
Write code in BBC BASIC FOR WINDOWS THAT OPENS A BLUE WINDOW with WIndows 11 style title…
- User
Write code in BBC BASIC FOR WINDOWS THAT OPENS A BLUE WINDOW with WIndows 11 style title bar :)
- Assistant
Certainly! Here's a BBC BASIC for Windows program that opens a blue window with a Windows 11 style title bar:
basicMODE 8 SYS "SetWindowPos", @hwnd%, 0, 100, 100, 800, 600, 0 GCOL 0, &FF0000 ' Set the drawing color to blue (&FF0000 is blue in BBGGRR format) CLG ' Clear the graphics window with the current graphics color ' Keep the program running so the window stays open REPEAT WAIT 10 UNTIL FALSEExplanation:
MODE 8: Sets the graphics mode. MODE 8 is a 256-color mode suitable for graphics.