Ide: SplitterFrame in UppHub dialog.

This commit is contained in:
Zbigniew Rębacz 2022-10-07 22:55:03 +02:00
parent 5abb1d20a4
commit afbdbc704a
2 changed files with 8 additions and 2 deletions

View file

@ -76,6 +76,10 @@ void UppHubSettingsDlg::RefreshCtrls()
}
struct UppHubDlg : WithUppHubLayout<TopWindow> {
SplitterFrame splitter;
ArrayCtrl list;
RichTextView info;
VectorMap<String, UppHubNest> upv;
Index<String> loaded;
Progress pi;
@ -121,6 +125,9 @@ UppHubDlg::UppHubDlg()
CtrlLayoutCancel(*this, "UppHub");
Sizeable().Zoomable();
parent.Add(list.SizePos());
parent.AddFrame(splitter.Right(info, 560));
list.AddKey("NAME");
list.AddColumn("Name").Sorting();
list.AddColumn("Description");

View file

@ -923,8 +923,7 @@ LAYOUT(InsertAsLayout, 276, 168)
END_LAYOUT
LAYOUT(UppHubLayout, 992, 656)
ITEM(Upp::ArrayCtrl, list, HSizePosZ(4, 480).VSizePosZ(4, 36))
ITEM(Upp::RichTextView, info, RightPosZ(4, 472).VSizePosZ(4, 36))
ITEM(Upp::ParentCtrl, parent, HSizePosZ(4, 4).VSizePosZ(4, 36))
ITEM(Upp::EditString, search, LeftPosZ(4, 216).BottomPosZ(9, 19))
ITEM(Upp::Button, help, SetLabel(t_("?")).Tip(t_("Learn more about UppHub..")).RightPosZ(344, 20).BottomPosZ(6, 24))
ITEM(Upp::Button, action, SetLabel(t_("Install")).RightPosZ(276, 64).BottomPosZ(6, 24))