Task 3: refine three placement minimums from live verification

TFontDialog height 320->340 (caption clipped), TOpenPictureDialog / TSavePictureDialog width 400->480 (filter string truncated). Same values as C.
This commit is contained in:
cnmcdee committed 2026-12-02 04:42:21 +00:00
1 parent 079947b3d1
commit 6ebec05c44
3 files changed
+9 -9

No files matched your search

+3 -3
View File
@@ -55,12 +55,12 @@ fn min_size(name: &str) -> (u16, u16) {
"TCalendarDialog" => (320, 280),
"TColorDialog" => (520, 300),
"TFindDialog" => (380, 260),
"TFontDialog" => (320, 320),
"TOpenPictureDialog" => (400, 240),
"TFontDialog" => (320, 340),
"TOpenPictureDialog" => (480, 240),
"TPageSetupDialog" => (320, 400),
"TPrintDialog" => (320, 300),
"TReplaceDialog" => (360, 260),
"TSavePictureDialog" => (400, 240),
"TSavePictureDialog" => (480, 240),
"TSelectDirectoryDialog" => (360, 260),
"TTaskDialog" => (340, 280),
"GtkCalendar" => (260, 200),
+3 -3
View File
@@ -185,12 +185,12 @@ MIN_SIZES = {
"TCalendarDialog": (320, 280),
"TColorDialog": (520, 300),
"TFindDialog": (380, 260),
"TFontDialog": (320, 320),
"TOpenPictureDialog": (400, 240),
"TFontDialog": (320, 340),
"TOpenPictureDialog": (480, 240),
"TPageSetupDialog": (320, 400),
"TPrintDialog": (320, 300),
"TReplaceDialog": (360, 260),
"TSavePictureDialog": (400, 240),
"TSavePictureDialog": (480, 240),
"TSelectDirectoryDialog": (360, 260),
"TTaskDialog": (340, 280),
"GtkCalendar": (260, 200),
+3 -3
View File
@@ -517,7 +517,7 @@ pub static REGISTRY: &[RegistryEntry] = &[
RegistryEntry { index: 487, name: "TFindDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 380, default_h: 260, archetype: Archetype::Dialog, kind: "FindDialog", line: None },
RegistryEntry { index: 488, name: "TFloatSpinEdit", family: "T", section: "Text & Entry", section_index: 4, default_w: 150, default_h: 36, archetype: Archetype::Range, kind: "FloatSpinEdit", line: None },
RegistryEntry { index: 489, name: "TFlowPanel", family: "T", section: "Containers & Layout", section_index: 1, default_w: 200, default_h: 90, archetype: Archetype::Container, kind: "FlowPanel", line: None },
RegistryEntry { index: 490, name: "TFontDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 320, default_h: 320, archetype: Archetype::Dialog, kind: "FontDialog", line: None },
RegistryEntry { index: 490, name: "TFontDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 320, default_h: 340, archetype: Archetype::Dialog, kind: "FontDialog", line: None },
RegistryEntry { index: 491, name: "TForm", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 300, default_h: 220, archetype: Archetype::Container, kind: "Form", line: None },
RegistryEntry { index: 492, name: "TFrame", family: "T", section: "Containers & Layout", section_index: 1, default_w: 200, default_h: 90, archetype: Archetype::Container, kind: "Frame", line: None },
RegistryEntry { index: 493, name: "TGroupBox", family: "T", section: "Containers & Layout", section_index: 1, default_w: 200, default_h: 90, archetype: Archetype::Container, kind: "GroupBox", line: None },
@@ -533,7 +533,7 @@ pub static REGISTRY: &[RegistryEntry] = &[
RegistryEntry { index: 503, name: "TMemo", family: "T", section: "Text & Entry", section_index: 4, default_w: 260, default_h: 180, archetype: Archetype::Entry, kind: "Memo", line: None },
RegistryEntry { index: 504, name: "TNotebook", family: "T", section: "Containers & Layout", section_index: 1, default_w: 260, default_h: 180, archetype: Archetype::Container, kind: "Notebook", line: None },
RegistryEntry { index: 505, name: "TOpenDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 300, default_h: 220, archetype: Archetype::Dialog, kind: "OpenDialog", line: None },
RegistryEntry { index: 506, name: "TOpenPictureDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 400, default_h: 240, archetype: Archetype::Dialog, kind: "OpenPictureDialog", line: None },
RegistryEntry { index: 506, name: "TOpenPictureDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 480, default_h: 240, archetype: Archetype::Dialog, kind: "OpenPictureDialog", line: None },
RegistryEntry { index: 507, name: "TPageControl", family: "T", section: "Containers & Layout", section_index: 1, default_w: 260, default_h: 180, archetype: Archetype::Container, kind: "PageControl", line: None },
RegistryEntry { index: 508, name: "TPageSetupDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 320, default_h: 400, archetype: Archetype::Dialog, kind: "PageSetupDialog", line: None },
RegistryEntry { index: 509, name: "TPaintBox", family: "T", section: "Display", section_index: 3, default_w: 200, default_h: 90, archetype: Archetype::Display, kind: "PaintBox", line: None },
@@ -548,7 +548,7 @@ pub static REGISTRY: &[RegistryEntry] = &[
RegistryEntry { index: 518, name: "TRadioGroup", family: "T", section: "Views & Lists", section_index: 6, default_w: 150, default_h: 36, archetype: Archetype::ListSel, kind: "RadioGroup", line: None },
RegistryEntry { index: 519, name: "TReplaceDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 360, default_h: 260, archetype: Archetype::Dialog, kind: "ReplaceDialog", line: None },
RegistryEntry { index: 520, name: "TSaveDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 300, default_h: 220, archetype: Archetype::Dialog, kind: "SaveDialog", line: None },
RegistryEntry { index: 521, name: "TSavePictureDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 400, default_h: 240, archetype: Archetype::Dialog, kind: "SavePictureDialog", line: None },
RegistryEntry { index: 521, name: "TSavePictureDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 480, default_h: 240, archetype: Archetype::Dialog, kind: "SavePictureDialog", line: None },
RegistryEntry { index: 522, name: "TScrollBar", family: "T", section: "Containers & Layout", section_index: 1, default_w: 180, default_h: 30, archetype: Archetype::Range, kind: "ScrollBar", line: None },
RegistryEntry { index: 523, name: "TScrollBox", family: "T", section: "Containers & Layout", section_index: 1, default_w: 200, default_h: 90, archetype: Archetype::Container, kind: "ScrollBox", line: None },
RegistryEntry { index: 524, name: "TSelectDirectoryDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 360, default_h: 260, archetype: Archetype::Dialog, kind: "SelectDirectoryDialog", line: None },