From bfcbd3cb0dcefc96314f1473344fd7e03a5aeb2f Mon Sep 17 00:00:00 2001 From: Charlie Kindel Date: Tue, 9 Jun 2020 12:04:54 -0600 Subject: [PATCH] switched Window to FrameView --- UICatalog/UICatalog.cs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/UICatalog/UICatalog.cs b/UICatalog/UICatalog.cs index d2c524ed4..c90f64e46 100644 --- a/UICatalog/UICatalog.cs +++ b/UICatalog/UICatalog.cs @@ -46,10 +46,10 @@ namespace UICatalog { private static Toplevel _top; private static MenuBar _menu; private static int _nameColumnWidth; - private static Window _leftPane; + private static FrameView _leftPane; private static List _categories; private static ListView _categoryListView; - private static Window _rightPane; + private static FrameView _rightPane; private static List _scenarios; private static ListView _scenarioListView; private static StatusBar _statusBar; @@ -212,11 +212,11 @@ namespace UICatalog { new MenuBarItem ("_About...", "About this app", () => MessageBox.Query ("About UI Catalog", aboutMessage.ToString(), "Ok")), }); - _leftPane = new Window ("Categories") { + _leftPane = new FrameView ("Categories") { X = 0, Y = 1, // for menu Width = 25, - Height = Dim.Fill (), + Height = Dim.Fill (1), CanFocus = false, }; @@ -236,12 +236,12 @@ namespace UICatalog { _categoryListView.SelectedItemChanged += CategoryListView_SelectedChanged; _leftPane.Add (_categoryListView); - _rightPane = new Window ("Scenarios") { + _rightPane = new FrameView ("Scenarios") { X = 25, Y = 1, // for menu Width = Dim.Fill (), - Height = Dim.Fill (), - CanFocus = false, + Height = Dim.Fill (1), + CanFocus = true, }; @@ -348,13 +348,13 @@ namespace UICatalog { /// private static void KeyDownHandler (View.KeyEventEventArgs a) { - if (a.KeyEvent.Key == Key.Tab || a.KeyEvent.Key == Key.BackTab) { - // BUGBUG: Work around Issue #434 by implementing our own TAB navigation - if (_top.MostFocused == _categoryListView) - _top.SetFocus (_rightPane); - else - _top.SetFocus (_leftPane); - } + //if (a.KeyEvent.Key == Key.Tab || a.KeyEvent.Key == Key.BackTab) { + // // BUGBUG: Work around Issue #434 by implementing our own TAB navigation + // if (_top.MostFocused == _categoryListView) + // _top.SetFocus (_rightPane); + // else + // _top.SetFocus (_leftPane); + //} if (a.KeyEvent.IsCapslock) { _capslock.Title = "Capslock: On";