All pastes #359705 Raw Edit

Something

public text v1 · immutable
·published 2007-02-17 00:33 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

using wx;

namespace SnapForms
{
     class Main : Frame
     {
          ImageViewer m_viewer;
          MenuBar menuBar = new MenuBar();
          FlexGridSizer sizer = new FlexGridSizer(1, 0, 0);

          public Main() : base("ImageView", wxDefaultPosition, new Size(500, 500))
          {
               Menu fileMenu = new Menu();
               fileMenu.Append(1, "&Open Directory...\tCtrl+O", "Open a directory with images");
               fileMenu.AppendSeparator();
               fileMenu.Append(2, "E&xit\tCtrl+Shift+W", "Exit this fine application");
               menuBar.Append(fileMenu, "&File");
               this.MenuBar = menuBar;
          }
     }

     public class ImageList : ScrolledWindow
     {
          private ImageViewer m_viewer;

          public ImageList(Window parent, ImageViewer viewer) : base(parent, -1, wxDefaultPosition, new Size(140, -1))
          {
               m_viewer = viewer;
     
               FlexGridSizer sizer = new FlexGridSizer(1, 0, 0);
               
               for (int i = 10; i < 10; i++)
               {
                    Sizer = sizer;
                    Sizer.Add(new Thumbnail(), 1, Stretch.wxEXPAND);
                    sizer.SetSizeHints(this);
               }
               SetScrollbars(0, 1, 0, 0);
          }
     }

     public class Thumbnail : Panel
     {
          private StaticText m_label = new StaticText();

          public Thumbnail() : base()
          {
               m_label.Title = "asdf";
          }
     }
}