|
@@ -7,6 +7,8 @@ namespace UICatalog {
|
|
[ScenarioMetadata (Name: "HexEditor", Description: "A Terminal.Gui binary (hex) editor via HexView")]
|
|
[ScenarioMetadata (Name: "HexEditor", Description: "A Terminal.Gui binary (hex) editor via HexView")]
|
|
[ScenarioCategory ("Controls")]
|
|
[ScenarioCategory ("Controls")]
|
|
[ScenarioCategory ("Text")]
|
|
[ScenarioCategory ("Text")]
|
|
|
|
+ [ScenarioCategory ("Dialogs")]
|
|
|
|
+ [ScenarioCategory ("TopLevel")]
|
|
class HexEditor : Scenario {
|
|
class HexEditor : Scenario {
|
|
private string _fileName = "demo.bin";
|
|
private string _fileName = "demo.bin";
|
|
private HexView _hexView;
|
|
private HexView _hexView;
|
|
@@ -16,6 +18,7 @@ namespace UICatalog {
|
|
{
|
|
{
|
|
Win.Title = this.GetName() + "-" + _fileName ?? "Untitled";
|
|
Win.Title = this.GetName() + "-" + _fileName ?? "Untitled";
|
|
Win.Y = 1;
|
|
Win.Y = 1;
|
|
|
|
+ Win.Height = Dim.Fill (1);
|
|
Top.LayoutSubviews ();
|
|
Top.LayoutSubviews ();
|
|
|
|
|
|
var menu = new MenuBar (new MenuBarItem [] {
|
|
var menu = new MenuBar (new MenuBarItem [] {
|