public DebugPanel() { this.AutoScroll = true; //FlowDirection = FlowDirection.TopDown; //WrapContents = false; var grid = new GridLineManager(this, false); grid.ElementDistance = 0; grid.AddElementFilling(grid.AddLineFixed(100), new Finder.EditorFinderClassByName(null), GlobalLayout.MinFill); grid.AddElementFilling(grid.AddLineFixed(100), new Finder.EditorFinderClassByName(null), GlobalLayout.MinFill); grid.AddElementFilling(grid.AddLineFixed(100), new Finder.EditorFinderClassByName(null), GlobalLayout.MinFill); }
private void InitializeGridLineManager() { Text = "TypeSelector"; txtTypeCompile = new FastColoredTextBox(); txtTypeCompile.Multiline = false; txtTypeCompile.ShowLineNumbers = false; txtTypeCompile.Language = Language.CSharp; txtTypeName = new TextBox(); txtTypeName.ReadOnly = true; var grid = new GridLineManager(this, true); int line = grid.AddLineFixed(GlobalLayout.LineHeight); grid.AddElementFixed(line, GlobalLayout.GenMetroLabel("TypeCompiler"), GlobalLayout.LabelWidth); grid.AddElementFilling(line, txtTypeCompile, GlobalLayout.MinFill); grid.AddElementStretchable(line, GlobalLayout.GenMetroButton("Compile", TypeCompiler_Click), GlobalLayout.MinFill, GlobalLayout.LabelWidth); line = grid.AddLineFixed(GlobalLayout.LineHeight); grid.AddElementFixed(line, GlobalLayout.GenMetroLabel("Type"), GlobalLayout.LabelWidth); grid.AddElementFilling(line, txtTypeName, GlobalLayout.MinFill); grid.AddElementStretchable(line, GlobalLayout.GenMetroButton("Pick", PickMethod_Click), GlobalLayout.MinFill, GlobalLayout.LabelWidth); line = grid.AddLineFixed(GlobalLayout.LineHeight); grid.AddElementFilling(line, null, 0); grid.AddElementFixed(line, GlobalLayout.GenMetroButton("OK", OK_Click), GlobalLayout.LabelWidth); }
private void InitializeGridLineManager() { structureViever = new StructureViewer(dataStruct); //structureViever.RebuildHalfAsync(); structureViever.AfterSelect += structureViever1_AfterSelect; btnSelect = GlobalLayout.GenMetroButton("Select", Select_Click); var grid = new GridLineManager(this, true); int line = grid.AddLineFilling(GlobalLayout.LineHeight); grid.AddElementFilling(line, structureViever, GlobalLayout.MinFill); line = grid.AddLineFixed(GlobalLayout.LineHeight); grid.AddElementStretchable(line, btnSelect, GlobalLayout.MinFill, GlobalLayout.LabelWidth); grid.AddElementStretchable(line, GlobalLayout.GenMetroButton("Cancel", Cancel_Click), GlobalLayout.MinFill, GlobalLayout.LabelWidth); }