AUTO FRAME CONTROL FIX
A downloadable project for Windows
๐ Hello GFA-BASIC Coders and Aficionados!
Ready to squash those pesky UI glitches? This GFA-BASIC gem is here to save the day! ๐ฅ
We're diving into a hands-on educational example that tackles one of the more annoying quirks in Windows UI development: font size glitches in Frame controls. This program spins up two windows, each featuring a styled Frame with custom font settings—and it does so with finesse.
But the real hero here? The Lib_AutoFixFrame
library. ๐ ๏ธ
๐ง What It Fixes
Ever changed a Frame's font size only to see an awkward extra line or visual hiccup? This library zaps that bug by:
- Installing a Windows hook (
WH_CALLWNDPROC
) to intercept control messages. - Watching for
WM_CTLCOLORSTATIC
messages that affect static control rendering. - Detecting font size changes and automatically redrawing the Frame by toggling its border style—no manual refresh needed!
- Using a smart flag (
Fixing
) to avoid recursive redraws and keep things smooth. - Offering clean setup (
L_HookAutoFixFrame
) and teardown (L_UnHookAutoFixFrame
) functions for seamless integration.
๐ Why It Rocks
This isn't just a workaround—it's a proactive fix that keeps your UI crisp, clean, and consistent. Whether you're building a utility or polishing a full-blown app, this library ensures your Frames behave like they should.
So go ahead, tweak those fonts with confidence. Your UI just got a whole lot smarter. ๐
Published | 1 day ago |
Status | Released |
Category | Other |
Platforms | Windows |
Author | PLANET XAVIER |
Download
Install instructions
You can download the source files and compile the library for use.
Development log
- How'd I get here?1 day ago
Leave a comment
Log in with itch.io to leave a comment.