09-30-2022, 08:15 AM
(09-30-2022, 02:30 AM)TerryRitchie Wrote: I working on Lesson 20: Libraries and was thinking about having the user go through the process of making one. My idea was to make custom text inputs, popups, message boxes, etc... However, the library would need to know which SCREEN mode it was in first for dimensions, available colors, current colors, etc.
All that information can be easily acquired with existing keywords _WIDTH(0), _HIGHT(0), _PIXELSIZE(0), _DEFAULTCOLOR(0) and _BACKGROUNDCOLOR(0).
On the other hand it's eg. bad to assume the screen's dimension just from the mode number, since it's possible to create ANY size legacy screens with SCREEN _NEWIMAGE(w, h, mode).
GuiTools, Blankers & other Projects:
https://staging.qb64phoenix.com/forumdisplay.php?fid=32
Libraries & useful Functions:
https://staging.qb64phoenix.com/forumdisplay.php?fid=23
https://staging.qb64phoenix.com/forumdisplay.php?fid=32
Libraries & useful Functions:
https://staging.qb64phoenix.com/forumdisplay.php?fid=23