using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using wx;
namespace SnapForms
{
class Main : Frame
{
MenuBar menuBar = new MenuBar();
FlexGridSizer sizer = new FlexGridSizer(1, 0, 0);
Panel panel;
public Main() : base("ImageView", wxDefaultPosition, new Size(500, 500))
{
panel = new Panel(this);
Menu fileMenu = new Menu();
fileMenu.Append(1, "&Open Directory...\tCtrl+O", "Open a directory with anything, just an example");
fileMenu.AppendSeparator();
fileMenu.Append(2, "E&xit\tCtrl+Shift+W", "Exit this fine application");
menuBar.Append(fileMenu, "&File");
MenuBar = menuBar;
}
}
public class RosterList : ScrolledWindow
{
public RosterList(Window parent) : base(parent, -1, wxDefaultPosition, new Size(140, -1))
{
FlexGridSizer sizer = new FlexGridSizer(1, 0, 0);
for (int i = 10; i < 10; i++)
{
Sizer = sizer;
Sizer.Add(new RosterItem(), 1, Stretch.wxEXPAND);
sizer.SetSizeHints(this);
}
SetScrollbars(0, 1, 0, 0);
}
}
public class RosterItem : Panel
{
private StaticText buddyname = new StaticText();
public RosterItem() : base()
{
buddyname.Title = "asdf";
}
}
}