mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 17:27:32 +00:00
- LFM: Position = poDesigned (was poScreenCenter, overriding our restore) - RestoreWindowBounds: remove position scaling (L,T invariant across DPI); scale size correctly per backend: LCLWin32 uses CurDPI/SavedDPI (physical px), Qt6/GTK/Cocoa use SavedDPI/CurDPI (logical px, inverse); fix min-size inflation on Qt6 (was MulDiv(900,DPI,96) which exceeds logical screen width at 150%+ scale, forcing window to 0,0) - SaveWindowBounds moved from FormDestroy to FormClose while window is still stable; add guard for bogus RestoredLeft/Top values on Qt6 when maximized - RestoreWindowBounds stores FRestoreL/T and re-applies position in AfterShowTick (200ms after show) when WM frame extents are already known to Qt, fixing the systematic right/down drift caused by unknown frame extents at FormCreate time - Save and restore WindowState (maximized flag); skip AfterShowTick position re-apply when window is maximized Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
328 B
Plaintext
17 lines
328 B
Plaintext
object MainForm: TMainForm
|
|
Left = 100
|
|
Height = 720
|
|
Top = 50
|
|
Width = 1280
|
|
Caption = 'EWSDR | OpenHPSDR'
|
|
Color = clBlack
|
|
Font.Color = clSilver
|
|
Font.Height = -13
|
|
Font.Name = 'Courier New'
|
|
Position = poDesigned
|
|
LCLVersion = '4.6.0.0'
|
|
OnClose = FormClose
|
|
OnCreate = FormCreate
|
|
OnDestroy = FormDestroy
|
|
end
|