PBXB64 Grafik & GUI
Grafik & GUI Standard
Vollständige Grafik- und GUI-Unterstützung with GRAPHIC WINDOW, LINE, BOX, CIRCLE, COLOR, FONT, PRINT, and GUI NEW / MESSAGE LOOP. Fenster erstellen, Primitive zeichnen, Ereignisse behandeln, and vollständige Win32-GUI-Anwendungen bauen. Alles unterstützt von echten GDI/GDI+-Aufrufen.
GRAPHIC WINDOW - Drawing Surface
Grafikfenster mit Primitiven
FUNCTION PBMAIN() AS LONG
GRAPHIC WINDOW "My Drawing", 100, 100, 640, 480
GRAPHIC COLOR %RGB_RED, %RGB_BLACK
GRAPHIC LINE (50, 50) - (200, 150)
GRAPHIC BOX (220, 50) - (320, 150)
GRAPHIC BOX (340, 50) - (440, 150), 0, %RGB_GREEN, %RGB_BLUE
GRAPHIC CIRCLE (500, 100), 50, %RGB_YELLOW
GRAPHIC FONT "Arial", 16, 0
GRAPHIC PRINT "Hello Graphics!"
SLEEP 3000
GRAPHIC CLOSE
FUNCTION = 0
END FUNCTIONGRAPHIC WINDOW creates a drawing surface. LINE, BOX (filled/outlined), CIRCLE, COLOR (foreground/background), FONT, and PRINT all work with real GDI calls. GRAPHIC CLOSE releases resources.
GUI NEW - Win32-Fenster
GUI window with message loop
FUNCTION PBMAIN() AS LONG
LOCAL hWnd AS LONG
hWnd = GUI NEW "MyWindow", 100, 100, 400, 300
' Message loop
GUI MESSAGE LOOP hWnd
FUNCTION = 0
END FUNCTIONGUI NEW creates a real Win32 window with class registration and WndProc. GUI MESSAGE LOOP runs the standard GetMessage/DispatchMessage loop. All Win32 messages are processed correctly.