public JwLayout MakeText() { JwVerticalLayout vp1 = new JwVerticalLayout(); vp1.ControlWidth.BeFill(); vp1.AlignCenter(); vp1.Gap = 0; // kludge (err) language AddText( vp1, "By using training mode, no scans or"); AddText( vp1, "collected data will be uploaded to"); AddText( vp1, "the server. During this time the device"); AddText( vp1, "will show an image of a light bulb:"); JwVerticalLayout vp2 = new JwVerticalLayout(); vp2.ControlWidth.BeFill(); vp2.AlignCenter(); vp2.Gap = 0; AddText( vp2, "When done, press this lightbulb to"); AddText( vp2, "end training."); JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout(); vp.ControlWidth.BeFill(); vp.AlignCenter(); vp.Add(vp1); JwPictureBox pb = VmUiBuilder.MakePictureBox( VmImageManager.Default.GetTrainingImage() ); JwLeftRightLayout lr = new JwLeftRightLayout(); lr.RightControl = pb; vp.Add(lr); vp.Add(vp2); return vp; }
//# __________ PROTOCOL :: MAKE (INPUT AREA) __________ #// public void AddFlightLabel(JwLayout p) { JwVerticalLayout v = new JwVerticalLayout(); v.Gap = 1; v.ControlWidth.BeFill(); JwLabeledControl lc; lc = VmUiBuilder.MakeLabeledValueLabel( VmLanguage.Default.GetFlight(), VmLanguage.Default.GetChange(), ChangeClicked); v.Add(lc); _flightNumberLabel = (JwLabel)lc.Control; // kludge (err) - language lc = VmUiBuilder.MakeLabeledValueLabel("Departure Date"); v.Add(lc); _departureDateLabel = (JwLabel)lc.Control; lc = VmUiBuilder.MakeLabeledValueLabel("Destination Airport"); v.Add(lc); _destinationLabel = (JwLabel)lc.Control; p.Add(v); }
public JwLayout MakeText() { JwVerticalLayout vp1 = new JwVerticalLayout(); vp1.ControlWidth.BeFill(); vp1.AlignCenter(); vp1.Gap = 0; // kludge (err) language AddText( vp1, "Warning: you are currently in"); AddText( vp1, "training mode. The scans and data"); AddText( vp1, "that you are collecting are not"); AddText( vp1, "really being sent to the server."); JwVerticalLayout vp2 = new JwVerticalLayout(); vp2.ControlWidth.BeFill(); vp2.AlignCenter(); vp2.Gap = 0; AddText( vp2, "To quit training click the light"); AddText( vp2, "bulb image above that looks like:"); JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout(); vp.ControlWidth.BeFill(); vp.AlignCenter(); vp.Add(vp1); JwPictureBox pb = VmUiBuilder.MakePictureBox( VmImageManager.Default.GetTrainingImage() ); JwLeftRightLayout lr = new JwLeftRightLayout(); lr.RightControl = pb; vp.Add(vp2); vp.Add(lr); return vp; }
public JwLayout MakeText() { JwVerticalLayout vp1 = new JwVerticalLayout(); vp1.ControlWidth.BeFill(); vp1.AlignCenter(); vp1.Gap = 0; // kludge (err) language AddText( vp1, "Routing data is not available"); AddText( vp1, "for this item. What would you"); AddText( vp1, "like to do?"); /* JwVerticalLayout vp2 = new JwVerticalLayout(); vp2.ControlWidth.BeFill(); vp2.AlignCenter(); vp2.Gap = 0; AddText( vp2, "To quit training click the light"); AddText( vp2, "bulb image above that looks like:"); */ JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout(); vp.ControlWidth.BeFill(); vp.AlignCenter(); vp.Add(vp1); JwPictureBox pb = VmUiBuilder.MakePictureBox(VmImageManager.Default.GetAirPlaneConfirmImage()); JwLeftRightLayout lr = new JwLeftRightLayout(); lr.RightControl = pb; vp.Add(lr); return vp; }
public JwLayout MakeText() { JwVerticalLayout vp1 = new JwVerticalLayout(); vp1.ControlWidth.BeFill(); vp1.AlignCenter(); vp1.Gap = 0; // kludge (err) language AddText( vp1, "The close out information for this"); AddText( vp1, "routing is not available. What would"); AddText( vp1, "you like to do?"); JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout(); vp.ControlWidth.BeFill(); vp.AlignCenter(); vp.Add(vp1); JwPictureBox pb = VmUiBuilder.MakePictureBox(VmImageManager.Default.GetClockConfirmImage()); JwLeftRightLayout lr = new JwLeftRightLayout(); lr.RightControl = pb; vp.Add(lr); return vp; }
public override Control GetControl() { JwLabel x; JwVerticalLayout e = new JwVerticalLayout(); e.ControlWidth.BeEqual(); e.AlignCenter(); e.AlignMiddle(); e.AddRaisedBorder().AddLabel("AcBevelBorder (raised)"); e.AddLoweredBorder().AddLabel("AcBevelBorder (lowered)"); x = e.AddRaisedBorder().AddLabel("AcBevelBorder (toggle)"); x.MouseUp += new MouseEventHandler(Label_MouseUp); x.MouseDown += new MouseEventHandler(Label_MouseDown); e.AddGap(20); e.AddThinRaisedBorder().AddLabel("AcThinBevelBorder (raised)"); e.AddThinLoweredBorder().AddLabel("AcThinBevelBorder (lowered)"); x = e.AddThinRaisedBorder().AddLabel("AcThinBevelBorder (toggle)"); x.MouseUp += new MouseEventHandler(Label_MouseUp); x.MouseDown += new MouseEventHandler(Label_MouseDown); e.AddGap(20); e.AddSolidBorder(3, Color.Red).AddEmptyBorder(5).AddSolidBorder().AddLabel("solid + empty + solid(3, red)"); return e; }
public JwLayout MakeText() { JwVerticalLayout vp = new JwVerticalLayout(); vp.ControlWidth.BeFill(); vp.AlignMiddle(); vp.AlignCenter(); // kludge (err) language String value1Text = "There was a problem"+ "\r\n" + "connecting to the" + "\r\n" + "server."; String value2Text = "Host Name: " + VmProperties.Default.GetMessageHostName() + "\r\n" + "Request Path: " + VmUtility.GetRequestPath() + "\r\n" + "Port: " + VmProperties.Default.GetMessageHostPort(); JwLabel value1 = VmUiBuilder.MakeValueLabel(value1Text); value1.AlignCenter(); vp.Add(value1); JwLabel value2 = VmUiBuilder.MakeIdentifierLabel(value2Text); value2.AlignCenter(); vp.Add(value2); return vp; }
public override Control GetControl() { JwVerticalLayout v; JwHorizontalLayout h = new JwHorizontalLayout(); v = new JwVerticalLayout(); v.BackColor = Color.Yellow; // v.AddLabel("five").UseParentBackColor = false; // v.AddLabel("ten").UseParentBackColor = false; // v.AddLabel("twenty").UseParentBackColor = false; v.AddLabel("five"); v.AddLabel("ten"); v.AddLabel("twenty"); h.Add(v); v = new JwVerticalLayout(); v.BackColor = Color.Green; v.SetPreferredSize(new Size(75, 100)); // v.AddLabel("five").UseParentBackColor = false; // v.AddLabel("ten").UseParentBackColor = false; // v.AddLabel("twenty").UseParentBackColor = false; v.AddLabel("five"); v.AddLabel("ten"); v.AddLabel("twenty"); h.Add(v); return h; }
public override Control GetControl() { JwVerticalLayout v = new JwVerticalLayout(); JwSolidBorder b; b = new JwSolidBorder(2); b.SetPreferredSize(100, 50); b.ControlLayout.HorizontalFill = false; b.ControlLayout.VerticalFill = false; b.ControlLayout.AlignLeft(); b.ControlLayout.AlignTop(); b.AddSolidBorder(Color.Red).AddLabel("top left"); v.Add(b); b = new JwSolidBorder(2); b.SetPreferredSize(100, 50); b.ControlLayout.HorizontalFill = false; b.ControlLayout.VerticalFill = false; b.ControlLayout.AlignCenter(); b.ControlLayout.AlignBottom(); b.AddSolidBorder(Color.Red).AddLabel("bottom center"); v.Add(b); b = new JwSolidBorder(2); b.SetPreferredSize(100, 50); b.ControlLayout.HorizontalFill = true; b.ControlLayout.VerticalFill = false; b.ControlLayout.AlignMiddle(); b.AddSolidBorder(Color.Red).AddLabel("hFill middle"); v.Add(b); return v; }
public override Control GetControl() { Label a; a = new Label(); a.Text = "Standard Label"; Label b; b = new Label(); b.BackColor = Color.Cyan; b.Text = "Standard Label (cyan)"; JwLabel c; c = new JwLabel(); c.Text = "AccuCode Label"; JwLabel d; d = new JwLabel(); d.BackColor = Color.Cyan; d.Text = "AccuCode Label (cyan)"; JwVerticalLayout v = new JwVerticalLayout(); v.Add(a); v.Add(b); v.Add(c); v.Add(d); return v; }
public Control MakeInputArea() { JwVerticalLayout p = new JwVerticalLayout(); p.ControlWidth.BeFill(); p.Add( MakeWeightTB()); return p; }
public Control MakeNestPanel() { _subpanel = MakeNestSubpanel(); _subpanel.BackColor = Color.White; JwEmptyBorder emptyBorder = new JwEmptyBorder(_subpanel, 1); JwSolidBorder solidBorder = new JwSolidBorder(emptyBorder, 1, Color.Black); JwVerticalLayout v = new JwVerticalLayout(); v.ControlWidth.BeFill(); v.AlignLeft(); v.Gap = 0; JwLabel nestIdentifier = VmUiBuilder.MakeFieldLabel(VmLanguage.Default.GetNest()); JwVerticalLayout nestIdentifierPanel = new JwVerticalLayout(); // nestIdentifierPanel.ControlWidth.BeFill(); nestIdentifierPanel.AlignBottom(); nestIdentifierPanel.Add(nestIdentifier); JwLeftRightLayout lr = new JwLeftRightLayout(); // lr.LeftControl = nestIdentifierPanel; // lr.RightControl = MakeNestNamePanel(); lr.LeftControl= nestIdentifier; lr.RightControl = MakeNestNamePanel(); v.Add(lr); v.Add(solidBorder); return v; }
public JwLayout MakeText() { JwVerticalLayout vp1 = new JwVerticalLayout(); vp1.ControlWidth.BeFill(); vp1.AlignCenter(); vp1.Gap = 0; // kludge (err) language AddText( vp1, "This device contains untransmitted"); AddText( vp1, "data and scans. You are strongly"); AddText( vp1, "advised to transmit this data"); AddText( vp1, "now. If not transmitted, this data"); AddText( vp1, "will be lost."); JwVerticalLayout vp2 = new JwVerticalLayout(); vp2.ControlWidth.BeFill(); vp2.AlignCenter(); vp2.Gap = 0; AddText( vp2, "Would you like to transmit this"); AddText( vp2, "data?"); JwVerticalLayout vp = new JwVerticalLayout(); vp.ControlWidth.BeFill(); vp.AlignMiddle(); vp.AlignCenter(); vp.Gap = 5; vp.Add(vp1); vp.Add(vp2); return vp; }
public Control MakeOkButton() { JwButton b = VmUiBuilder.MakeOkButton( new EventHandler(OkButtonClick)); Control c = new JwEmptyBorder( b, new JwMargin(0,0,0,4)); JwVerticalLayout p = new JwVerticalLayout(); p.ControlWidth.BeFill(); p.Add(c); return p; }
public void AddNote(JwVerticalLayout p, params String[] sa) { foreach( String value in sa ) { JwLabel label = VmUiBuilder.MakeIdentifierLabel(value); label.AlignCenter(); p.Add(label); } }
public override Control GetControl() { JwVerticalLayout v = new JwVerticalLayout(); v.AddSolidBorder().AddLabel("one"); v.AddSolidBorder().AddLabel("two two"); v.AddSolidBorder().AddLabel("three three three"); v.AddSolidBorder().AddLabel("four four four four"); return v; }
public override Control GetControl() { JwVerticalLayout e; e = new JwVerticalLayout(); e.ControlWidth.BeFill(); e.AddLabel("left").AlignLeft(); e.AddLabel("center").AlignCenter(); e.AddLabel("right").AlignRight(); return e; }
public JwLayout MakeAccountChooser() { _accountCB = VmUiBuilder.MakeComboBox(0); JwLayout lc = VmUiBuilder.MakeLabeledControl( VmLanguage.Default.GetAccount(), _accountCB); JwVerticalLayout vp = new JwVerticalLayout(); vp.ControlWidth.BeFill(); vp.AlignMiddle(); vp.Add(lc); return vp; }
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; }
public override Control GetControl() { JwVerticalLayout v = new JwVerticalLayout(); v.AddLabel("line one"); v.AddLabel("line two"); v.AddLabel("line three... and some extra text."); v.AddLabel("line four"); JwVerticalLayout p = new JwVerticalLayout(); p.Add(v); return p; }
public Control MakeNestNamePanel() { _nameLabel = VmUiBuilder.MakeSmallValueLabel("XXXXXXXXXXXXXXXX"); _nameLabel.AlignRight(); JwVerticalLayout v = new JwVerticalLayout(); // v.ControlWidth.BeFill(); v.AlignBottom(); v.AlignRight(); v.Add(_nameLabel); // return v; return _nameLabel; }
public JwLayout MakeProfileChooser() { _profileCB = VmUiBuilder.MakeComboBox(0); JwLayout lc = VmUiBuilder.MakeLabeledControl( // kludge (err) - langauge "Airport Mode", _profileCB); JwVerticalLayout vp = new JwVerticalLayout(); vp.ControlWidth.BeFill(); vp.AlignMiddle(); vp.Add(lc); return vp; }
public void AddUldControl(JwLayout p) { _uldTypeVisibilityWrapper = VmUiBuilder.MakeVisibilityWrappedValidationErrorPictureBox(); _uldNumberVisibilityWrapper = VmUiBuilder.MakeVisibilityWrappedValidationErrorPictureBox(); _uldOwnerVisibilityWrapper = VmUiBuilder.MakeVisibilityWrappedValidationErrorPictureBox(); JwVerticalLayout v = new JwVerticalLayout(); v.Gap = 0; v.ControlWidth.BeFill(); v.Add(MakeUldLabel()); v.Add(MakeUldWidgets()); p.Add(v); }
public Control MakeTextArea() { JwVerticalLayout p = new JwVerticalLayout(); p.ControlWidth.BeFill(); p.ControlHeight.BeFill(); _textArea = new JwTextBox(); _textArea.Multiline = true; _textArea.ReadOnly = true; _textArea.ScrollBars = System.Windows.Forms.ScrollBars.Both; _textArea.AcceptsReturn = true; p.Add(_textArea); return p; }
public override Control GetControl() { JwVerticalLayout e = new JwVerticalLayout(); e.ControlWidth.BeEqual(); e.AlignCenter(); e.AlignMiddle(); e.AddBumpBorder().AddLabel("bump"); e.AddGrooveBorder().AddLabel("groove"); e.AddGap(20); e.AddThinBumpBorder().AddLabel("thin bump"); e.AddThinGrooveBorder().AddLabel("thin groove"); return e; }
public override Control GetControl() { JwRowLayout c = new JwRowLayout(); JwVerticalLayout v; v = new JwVerticalLayout(); v.SetPreferredSize(60, 200); v.AddGap(10, Color.Red); v.AddGap(30, Color.Green); v.AddGap(50, Color.Blue); c.AddLabel("default"); c.AddSolidBorder().Add(v); v = new JwVerticalLayout(); v.SetPreferredSize(60, 200); v.AlignCenter(); v.AddGap(10, Color.Red); v.AddGap(30, Color.Green); v.AddGap(50, Color.Blue); c.AddLabel("align center"); c.AddSolidBorder().Add(v); v = new JwVerticalLayout(); v.SetPreferredSize(60, 200); v.AlignRight(); v.AddGap(10, Color.Red); v.AddGap(30, Color.Green); v.AddGap(50, Color.Blue); c.AddLabel("align right"); c.AddSolidBorder().Add(v); v = new JwVerticalLayout(); v.SetPreferredSize(60, 200); v.AlignBottom(); v.AddGap(10, Color.Red); v.AddGap(30, Color.Green); v.AddGap(50, Color.Blue); c.AddLabel("align bottom"); c.AddSolidBorder().Add(v); JwVerticalLayout e; e = new JwVerticalLayout(); e.Add(c); return e; }
public override Control GetControl() { Font font = new Font("Arial", 8F, System.Drawing.FontStyle.Bold); Label a; a = new Label(); a.Text = "Standard Label"; a.Font = font; JwPanelLabel c; c = new JwPanelLabel(); c.Text = "AccuCode Label"; c.Font = font; JwVerticalLayout v = new JwVerticalLayout(); v.Add(a); v.Add(c); return v; }
public JwLabel AddNestBox( JwLayout layout, String labelName, EventHandler ev) { JwLeftRightLayout lr = new JwLeftRightLayout(); lr.LeftControl = VmUiBuilder.MakeFieldLabel(labelName); // kludge (err) - language lr.RightControl = VmUiBuilder.MakeLinkedLabel("Change", ev); JwLabel valueLabel = VmUiBuilder.MakeSmallValueLabel(""); JwVerticalLayout p = new JwVerticalLayout(); p.Gap = 1; p.ControlWidth.BeFill(); p.Add(lr); p.Add(valueLabel); layout.Add(p); return valueLabel; }
//# __________ PROTOCOL :: PROTECTED __________ #// public JwLeftRightLayout MakeSplashPanel() { JwPictureBox leftImage = VmUiBuilder.MakePictureBox( VmImageManager.Default.GetSplashLeftImage()); JwPictureBox rightImage = VmUiBuilder.MakePictureBox( VmImageManager.Default.GetSplashRightImage()); JwLabel versionLabel = VmUiBuilder.MakeNoteLabel("(v) " + VmConstant.VERSION); JwVerticalLayout vp = new JwVerticalLayout(); vp.ControlWidth.BeFill(); vp.AlignBottom(); vp.AlignLeft(); vp.Add(versionLabel); JwLeftRightLayout lr = new JwLeftRightLayout(); lr.LeftControl = leftImage; lr.CenterControl = vp; lr.RightControl = rightImage; return lr; }
public JwLabeledControl( JwLabel label, JwLabel linkedLabel, Control c, JwPictureBox validationErrorPictureBox) : base(0) { Label = label; LinkLabel = linkedLabel; Control = c; PictureBox = validationErrorPictureBox; JwVerticalLayout p = new JwVerticalLayout(); p.ControlWidth.BeFill(); p.Gap = 0; p.AlignLeft(); p.Add(MakeLabelPanel()); p.Add(c); Add(p); }