summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-03make it compile as 64bit under mingwJonas Kümmerlin
2020-05-03classic button: use thunk instead of GWLP_USERDATAJonas Kümmerlin
GWLP_USERDATA belongs to the control user
2020-05-01groupbox: uxtheme supportJonas Kümmerlin
disabled state looks different to original (where it looks the same as the enabled state), but I like it better that way.
2020-05-01groupbox first implementationJonas Kümmerlin
only classic theme for now, will do uxtheme soon
2020-05-01button: don't clip textJonas Kümmerlin
Especially on WinXP, subpixel colors from ClearType may bleed beyond the bounding rectangle, and it looks better when they're visible. I highly suspect that the underlying issue is actually a bug in XP, since ClearType stays within bounds on Win7 and newer.
2020-04-30panel: support edge (like delphi)Jonas Kümmerlin
mainly to force me to implement layout margins
2020-04-29layout: make minimum size actually work as a minimumJonas Kümmerlin
2020-04-29button: use default min size and fixup order vertical centeringJonas Kümmerlin
2020-04-29widget factory: move to tabbed interfaceJonas Kümmerlin
2020-04-28add menus to widget factoryJonas Kümmerlin
2020-04-28first try at checkboxJonas Kümmerlin
The size calculation is really messy and the background stuff does not work with comctl v5. Probably need to go full owner-drawn, again.
2020-04-28Remove 31 makefilesJonas Kümmerlin
With /opt:nowin98, the regular ANSI version will run on Win32s. NT 3.51 has no problems with the 4.0 version either. Older NT versions have been unsupported for some time already.
2020-04-27button: make themed button always use unicode and do internal text handlingJonas Kümmerlin
2020-04-27add functions for drawing disabled text on buttonsJonas Kümmerlin
now using the right way to do it everywhere but on Win3.1
2020-04-24button class redesignJonas Kümmerlin
now using completely custom control on NT, and a stripped down owner-drawn version on Win9x. The old Win3.1 rendering style has been removed, buttons on NT 3.51 and Win32s will now look like on Win95.
2020-04-23move background color and font handling into layoutJonas Kümmerlin
It's the same for window and all panel-like widgets, so it makes sense to share it. Might need to refactor it out if we ever need a layout without background and fonts
2020-04-23changed DPI handling: dpi is now pushed into every control and saved thereJonas Kümmerlin
2020-04-22label: refactor paint and size calculation into own functionsJonas Kümmerlin
2020-04-22label: invalidate layout if one of the ALIGN_*_LIKE_EDIT flags is toggledJonas Kümmerlin
2020-04-22label: add way to customize text colorJonas Kümmerlin
2020-04-22label: allow custom background colorJonas Kümmerlin
2020-04-22notebook: save layout flags to control font and bg inheritanceJonas Kümmerlin
this makes setting fonts and background color for tab panels work, instead of appearing to work but then being overridden later
2020-04-21embarrassing notebook content flicker fixesJonas Kümmerlin
2020-04-21notebook: add option of using a solid backgroundJonas Kümmerlin
unfortunately, only xp supplies actually matching color hints the color hint of Vista and later is very different from the texture used, so it looks quite ugly there :/
2020-04-21make ALF_SetBackgroundColor disable color inheritanceJonas Kümmerlin
2020-04-21fix GDI leak in notebookJonas Kümmerlin
2020-04-20fixup transparent background work and add test in widgetfactoryJonas Kümmerlin
Win32s bites once again with its 16bit WPARAM
2020-04-19TMP window bg testJonas Kümmerlin
2020-04-19window: add paint vfuncJonas Kümmerlin
2020-04-19panel vtbl first implementationJonas Kümmerlin
still basically untested
2020-04-19calc edit sizes in layout, no more subclassingJonas Kümmerlin
2020-04-19widget factory: add more tabs to simulate full notebookJonas Kümmerlin
2020-04-18notebook: draw themed background tiled like winxp does itJonas Kümmerlin
2020-04-18implement background colorJonas Kümmerlin
reduce flickering by keeping pixels if we know the background didn't change panel text is now gone, it would require us to redraw every transparent widget on top, which is a bad tradeoff since that panel text isn't very useful anyway.
2020-04-18extract toplevel window stuff into alfwindow.cppJonas Kümmerlin
2020-04-16remove toplevel WS_EX_COMPOSITED.Jonas Kümmerlin
WS_EX_COMPOSITED is buggy on XP and seemingly unimplemented both pre-XP and Vista+
2020-04-16make it build with -WconversionJonas Kümmerlin
2020-04-16rework grid layoutJonas Kümmerlin
Fractional expand is now supported like Qt, and also per row/column instead of as a widget attribute. Instead of margins, you're now supposed to use empty rows/columns instead. Spacer is also gone, use empty rows/columns with minimum size. Layout engine is prepared to directly calculate edit, button, etc. sizes without subclassing these controls
2020-04-16layout: invalidate and recalculate, automaticallyJonas Kümmerlin
2020-04-16fix embarrassing bug in ALF_TextJonas Kümmerlin
2020-04-16font handling change: allow controls to inherit fontsJonas Kümmerlin
also do it automatically when adding widget to layout, no more calling applyfonts manually
2020-04-16panel: show centered text like DelphiJonas Kümmerlin
2020-04-14replace GetVersion() calls with helper functionsJonas Kümmerlin
2020-04-14fix disabled label on Win32sJonas Kümmerlin
2020-04-14use Win95 fonts and colors even when running on Win32s/NT3.51Jonas Kümmerlin
2020-04-14Make notebook bg gradient work. Anti-flicker work throughout the codebase.Jonas Kümmerlin
2019-07-07first notebook implementationJonas Kümmerlin
2019-07-07label: invalidate on text setJonas Kümmerlin
2019-06-30remove and restore button default state on window inactiveJonas Kümmerlin
2019-06-30label reimplementJonas Kümmerlin