From afbdbc704aa52d640ff3587e35442046d50f226e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20R=C4=99bacz?= Date: Fri, 7 Oct 2022 22:55:03 +0200 Subject: [PATCH] Ide: SplitterFrame in UppHub dialog. --- uppsrc/ide/UppHub.cpp | 7 +++++++ uppsrc/ide/ide.lay | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/uppsrc/ide/UppHub.cpp b/uppsrc/ide/UppHub.cpp index 0d9525e9a..85ca836dd 100644 --- a/uppsrc/ide/UppHub.cpp +++ b/uppsrc/ide/UppHub.cpp @@ -76,6 +76,10 @@ void UppHubSettingsDlg::RefreshCtrls() } struct UppHubDlg : WithUppHubLayout { + SplitterFrame splitter; + ArrayCtrl list; + RichTextView info; + VectorMap upv; Index 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"); diff --git a/uppsrc/ide/ide.lay b/uppsrc/ide/ide.lay index 60b0f14e7..60d2b9d00 100644 --- a/uppsrc/ide/ide.lay +++ b/uppsrc/ide/ide.lay @@ -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))