예제 #1
0
        //# __________ PROTOCOL :: LAYOUT __________ #//
        public Control GetMainPanel()
        {
            ArrayList v = GetExamples();

            JwLabel h = new JwLabel("Layout Examples");

            _listBox = new JwListBox();
            _listBox.DataSource = GetExamples();
            _listBox.DisplayMember = "DisplayName";
            _listBox.SelectedIndexChanged += new EventHandler(ListBox_SelectedIndexChanged);

            _textBox = new TextBox();
            _textBox.Multiline = true;
            _textBox.Height = 150;
            _textBox.ReadOnly = true;
            if ( v.Count > 0 )
                _textBox.Text = ((Example)v[0]).Description;

            JwHeaderFooterControl b;
            b = new JwHeaderFooterControl();
            b.Body = _listBox;
            b.Footer = _textBox;

            JwLeftRightLayout f;
            f = new JwLeftRightLayout();
            f.LeftControl  = new JwButton("Quit", new EventHandler(Quit_Click));
            f.RightControl = new JwButton("Show", new EventHandler(Show_Click));

            JwHeaderFooterControl p;
            p = new JwHeaderFooterControl();
            p.Header = h;
            p.Body   = b;
            p.Footer = f.CreateEmptyBorder(5);
            return p;
        }
예제 #2
0
 public Control GetCenterControl()
 {
     JwVerticalLayout p = new JwVerticalLayout();
     p.ControlWidth.BeFill();
     p.ControlHeight.BeFill();
     _nestLB = VmUiBuilder.MakeListBox();
     _nestLB.DisplayMember = "DisplayString";
     _inputControlManager.Add(_nestLB, 1);
     p.Add(_nestLB);
     return p;
 }
예제 #3
0
 public Control MakeItemListBox()
 {
     _itemLB = VmUiBuilder.MakeListBox();
     _itemLB.DisplayMember = "TagValue";
     JwTopBottomLayout tb = new JwTopBottomLayout();
     tb.TopControl = MakeItemSummmary();
         VmUiBuilder.MakeFieldLabel(
             //kludge (err)  language
             "Items");
     tb.CenterControl = _itemLB;
     return tb;
 }
예제 #4
0
        public Control MakeNestListBox()
        {
            JwHorizontalLayout h = new JwHorizontalLayout();
            h.AlignBottom();
            // kludge(err) - langauge
            JwLabel l1 = VmUiBuilder.MakeIdentifierLabel("Nests");
            l1.AlignLeft();
            h.Add( VmUiBuilder.MakeIdentifierLabel("Nests ("));
            _nestCountLabel = VmUiBuilder.MakeValueLabel("");
            h.Add(_nestCountLabel);
            JwLabel l2 = VmUiBuilder.MakeIdentifierLabel("):");
            l2.AlignLeft();
            h.Add(l2);

            _nestLB = VmUiBuilder.MakeListBox();
            _nestLB.DisplayMember = "DisplayNestName";
            JwTopBottomLayout tb = new JwTopBottomLayout();
            tb.TopControl = h;
            tb.CenterControl = _nestLB;
            return tb;
        }
예제 #5
0
 public static JwListBox MakeListBox()
 {
     Font font = new Font("Arial", 8F, System.Drawing.FontStyle.Bold);
     JwListBox lb =  new JwListBox();
     lb.Font = font;
     return lb;
 }