My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 8 attachment: Main.cs (715 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Main.cs created with MonoDevelop
// User: jordanwb at 15:27 01/21/2009
//
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
//
using System;
using HollyLibrary;
using Gtk;

namespace Test
{
public partial class TreeViewExample : Gtk.Window
{
public static void Main ()
{
Gtk.Application.Init ();
new TreeViewExample ();
Gtk.Application.Run ();
}

public TreeViewExample () : base (Gtk.WindowType.Toplevel)
{
this.Build ();

HollyLibrary.HTreeView tree = new HollyLibrary.HTreeView ();

HTreeNode n1 = new HTreeNode("Hello");

n1.Nodes.Add (new HTreeNode ("World"));

tree.Nodes.Add (n1);

this.Add (tree);
this.ShowAll ();
}
}
}
Powered by Google Project Hosting