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
StatusReleased
CategoryOther
PlatformsWindows
AuthorPLANET XAVIER

Download

Download
Test Auto Fix Frame FontSize Change Quirk.G32 1.8 kB
Download
Lib_AutoFixFrame.G32 4.2 kB

Install instructions

You can download the source files and compile the library for use.

Development log

Leave a comment

Log in with itch.io to leave a comment.