Windows similar, and very userfriendly GUI function.bb for blitz3d halffinished!!!

Miscellaneous Forums/Blitz Showcase/Windows similar, and very userfriendly GUI function.bb for blitz3d halffinished!!!

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

This is a little project I have, to make GUI for editors, and stuff easy, and easy configurable. The windows are created with CreateWindow(title$,screenx,screeny,width,height,closebutton), and you simply use DrawWindows() in the gameloop to update the window drawings (not cpu consuming). These graphics are written with FastPixelWrite, and does not use any external graphics. It's also possible to do DrawBackground, to draw stuff like the gradiented blue (or any other color) background if you don't have any other rendering in the back, which is very good for 2d editors, or programs like chat programs. A 2D gradiented background is VERY cpu consuming though, since it writes each pixel at the screen in loops. Currently it supports creating buttons, notify when it's pressed (with an if), and it can create labels, and modify stuff like positions, and caption. I'm working on an input field now, memo, viewport-in-windows, and possibility to have pictures created inside a window now. Wish me good luck :).And, ofcourse all the windows can be moved by dragging the titlebar :). Here are the screenshots:

Windows with blue gradiented color:


Windows with 3d rendered background:


Hope you enjoy the screens, and wish me good luck :)!


PS: The color theme for everything can also be changed with a command :).