|
@@ -47,38 +47,6 @@ namespace UICatalog {
|
|
class UICatalogApp {
|
|
class UICatalogApp {
|
|
static void Main (string [] args)
|
|
static void Main (string [] args)
|
|
{
|
|
{
|
|
-
|
|
|
|
- Application.Init ();
|
|
|
|
-
|
|
|
|
- var win = new Window ();
|
|
|
|
- var mb = new MenuBar (new []{new MenuBarItem(
|
|
|
|
- new []{
|
|
|
|
- new MenuItem("Click Me","",()=>{ })
|
|
|
|
-
|
|
|
|
- }){
|
|
|
|
- Title = "File (F9)"}
|
|
|
|
- });
|
|
|
|
- win.Add (mb);
|
|
|
|
-
|
|
|
|
- var txt = new TextView {
|
|
|
|
- Y = 1,
|
|
|
|
- Width = Dim.Fill (),
|
|
|
|
- Height = Dim.Fill (),
|
|
|
|
- AllowsTab = false,
|
|
|
|
- WordWrap = true,
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- win.Add (txt);
|
|
|
|
- Random r = new Random ();
|
|
|
|
- Application.MainLoop.AddTimeout (TimeSpan.FromSeconds (1),
|
|
|
|
- (m) => {
|
|
|
|
- Application.MainLoop.Invoke (() =>
|
|
|
|
- txt.Text = new string ((char)r.Next (255), 999)
|
|
|
|
- );
|
|
|
|
- return true;
|
|
|
|
- });
|
|
|
|
- Application.Run (win);
|
|
|
|
-
|
|
|
|
Console.OutputEncoding = Encoding.Default;
|
|
Console.OutputEncoding = Encoding.Default;
|
|
|
|
|
|
if (Debugger.IsAttached) {
|
|
if (Debugger.IsAttached) {
|
|
@@ -182,12 +150,12 @@ namespace UICatalog {
|
|
class UICatalogTopLevel : Toplevel {
|
|
class UICatalogTopLevel : Toplevel {
|
|
public MenuItem miIsMouseDisabled;
|
|
public MenuItem miIsMouseDisabled;
|
|
public MenuItem miHeightAsBuffer;
|
|
public MenuItem miHeightAsBuffer;
|
|
-
|
|
|
|
|
|
+
|
|
public FrameView LeftPane;
|
|
public FrameView LeftPane;
|
|
public ListView CategoryListView;
|
|
public ListView CategoryListView;
|
|
public FrameView RightPane;
|
|
public FrameView RightPane;
|
|
public ListView ScenarioListView;
|
|
public ListView ScenarioListView;
|
|
-
|
|
|
|
|
|
+
|
|
public StatusItem Capslock;
|
|
public StatusItem Capslock;
|
|
public StatusItem Numlock;
|
|
public StatusItem Numlock;
|
|
public StatusItem Scrolllock;
|
|
public StatusItem Scrolllock;
|