public void AddNoteTB(JwLayout p) { JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, VmLanguage.Default.GetNote()); _noteTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 2, VmVirtualNestValidator.ValidateNote); }
public void AddCarrierCodeTB(JwLayout p) { JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, VmLanguage.Default.GetCarrier()); _carrierCodeTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 3, VmScheduledFlightValidator.ValidateCarrierCode); }
public void AddIdentifierTB(JwLayout p) { JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, VmLanguage.Default.GetIdentifier()); _identifierTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 1, VmContainerValidator.ValidateIdentifier); }
public void AddPasswordTB(JwLayout p) { JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, VmLanguage.Default.GetPassword()); _passwordTB = (JwTextBox)lc.Control; if( VmProperties.Default.ShouldSuppressPassword() ) _passwordTB.PasswordChar = '*'; _inputControlManager.Add( _passwordTB, 1); }
public void AddUserNameTB(JwLayout p) { JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, VmLanguage.Default.GetUserName()); _userNameTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 0, VmUserValidator.ValidateUserName); }
public void AddUldType(JwLayout p) { //kludge (err) - language JwLabeledControl lc = VmUiBuilder.MakeLabeledTextBox("ULD Type"); _uldTypeTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 1); p.Add(lc); }
public void AddNameTB(JwLayout p) { // kludge (err) - language JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, "Name"); _nameTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 1, VmVirtualNestValidator.ValidateName); }
public void AddUserNameTB(JwLayout p) { // kludge (err) - language JwLabeledControl lc = VmUiBuilder.MakeLabeledTextBox(VmLanguage.Default.GetUserName(), "Update Device", RemoteLogin); p.Add(lc); _userNameTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 0, VmUserValidator.ValidateUserName); }
public void AddUldOwner(JwLayout p) { //kludge (err) - language JwLabeledControl lc = VmUiBuilder.MakeLabeledTextBox("ULD Owner"); _uldOwnerTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 3, VmUldValidator.ValidateOwner); p.Add(lc); }
public Control MakeAirportCodeTB() { JwLabeledControl lc = VmUiBuilder.MakeLabeledTextBox( VmLanguage.Default.GetAirportCode()); _airportCodeTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 1, VmGeneralValidator.ValidateAirportCode); return lc; }
public Control MakeCarrierField() { JwLabeledControl lc = VmUiBuilder.MakeLabeledTextBox( // kludge (err) language "Carrier Code"); _carrierTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 1, VmCarrierValidator.ValidateCarrierCode); return lc; }
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 v = new JwVerticalLayout(); JwTextBox e; e = new JwTextBox(); e.Text = "default"; v.Add(e); e = new JwTextBox(); e.ColumnCount = 5; e.SampleText = "88888"; e.Text = "12345"; v.Add(e); e = new JwTextBox(); e.SampleText = "8"; e.Text = "sample='8'"; v.Add(e); e = new JwTextBox(); e.SampleText = "W"; e.Text = "sample='W'"; v.Add(e); e = new JwTextBox(); e.SampleText = "W"; e.Font = new Font("Courier New", 9F, FontStyle.Regular); e.Text = "Courier New"; v.Add(e); e = new JwTextBox(); e.SampleText = "W"; e.Font = new Font("Lucida Console", 9F, FontStyle.Regular); e.Text = "Lucida Console"; v.Add(e); return v; }
public override Control GetControl() { JwVerticalLayout v = new JwVerticalLayout(); JwTextBox e; e = new JwTextBox(); e.SampleText = "W"; e.RowCount = 4; e.Multiline = true; e.Text = "rows=4\r\nsample='W'\r\nline3\r\nline4"; v.Add(e); e = new JwTextBox(); e.SampleText = "W"; e.RowCount = 4; e.Multiline = true; e.ScrollBars = ScrollBars.Vertical; e.Text = "rows=4\r\nsample='W'\r\nline3\r\nline4\r\nline5"; v.Add(e); return v; }
public Control MakeIdentifierTB() { // kludge (err) - language JwLabeledControl lc = VmUiBuilder.MakeLabeledNonScanningTextBox("Number"); _identifierTB = (JwTextBox)lc.Control; _identifierTB.GotFocus += new EventHandler(SpecialScanningTextBoxGotFocus); _identifierTB.LostFocus += new EventHandler(SpecialScanningTextBoxLostFocus); _inputControlManager.AddLabeledTextBox( lc, 2, VmCartValidator.ValidateSerialNumber); return lc; }
public Control MakeDestinationAirportTB() { _destinationAirportCodeTB = VmUiBuilder.MakeTextBox(); _destinationAirportCodeTB.ColumnCount = 4; _destinationAirportCodeTB.TextChanged += new EventHandler(DestinationAirportTBChanged); return _destinationAirportCodeTB; }
public Control MakeNoteTB() { JwLabeledControl lc = VmUiBuilder.MakeLabeledTextBox(VmLanguage.Default.GetNote()); _noteTb = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 1, VmContainerValidator.ValidateNote); return lc; }
public Control MakeWeightTB() { // kludge (err) language String weightText = (VmProperties.Default.ShouldUseMetric() ) ? "Kilograms" : "Pounds"; JwLabeledControl lc = VmUiBuilder.MakeLabeledTextBox( weightText); _weightTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 1, VmItemValidator.ValidateWeight); return lc; }
public static JwTextBox MakeNonScanningTextBox() { JwTextBox tb = new JwTextBox(); tb.Font = new System.Drawing.Font("Arial", FIELD_FONT_SIZE, System.Drawing.FontStyle.Bold); JwLabel l = VmUiUtility.MakeLabel(tb.Font, "XXX"); // tb.Size = new System.Drawing.Size(50, l.Height+20); return tb; }
public Control MakeSerialNumberTB() { JwLabeledControl lc = VmUiBuilder.MakeLabeledTextBox( VmLanguage.Default.GetIdentifier()); _serialNumberTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 1, VmContainerValidator.ValidateIdentifier); return lc; }
public Control MakeTagTB() { JwLabeledControl lc = VmUiBuilder.MakeLabeledNonScanningTextBox( VmLanguage.Default.GetTag()); _tagTB = (JwTextBox)lc.Control; _tagTB.GotFocus += new EventHandler(SpecialScanningTextBoxGotFocus); _tagTB.LostFocus += new EventHandler(SpecialScanningTextBoxLostFocus); _inputControlManager.Add( _tagTB, 2); return lc; }
public Control MakeUldSerialNumberTB() { // kludge (err) - language _uldNumberTB = VmUiBuilder.MakeNonScanningTextBox(); _uldNumberTB.GotFocus += new EventHandler(SpecialScanningTextBoxGotFocus); _uldNumberTB.LostFocus += new EventHandler(SpecialScanningTextBoxLostFocus); _inputControlManager.AddTextBox( _uldNumberTB, 3, VmUldValidator.ValidateSerialNumber, _uldNumberVisibilityWrapper); return _uldNumberTB; }
public Control MakeUldSerialNumberTB() { // kludge (err) - language _uldNumberTB = VmUiBuilder.MakeTextBox(); _inputControlManager.AddTextBox( _uldNumberTB, 2, VmContainerValidator.ValidateUldSerialNumber, _uldNumberVisibilityWrapper); return _uldNumberTB; }
public void AddTextBox( JwTextBox control, int tabOrderIndex, JwInputControlModel.ValidateDelegateType validateDelegate, JwVisibilityWrapper validationVisibilityWrapper) { Add( control, tabOrderIndex, JwTextBox.GetValue, validateDelegate, (JwPictureBox)validationVisibilityWrapper.GetControl(), validationVisibilityWrapper); }
public void AddFlightNumberTB(JwLayout p) { JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, VmLanguage.Default.GetFlightNumber()); _flightNumberTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 4, VmScheduledFlightValidator.ValidateFlightNumber); }
public Control MakeFinderTB(int columnCount) { _finderTB = VmUiBuilder.MakeTextBox(); _finderTB.ColumnCount = columnCount; _finderTB.TextChanged += new EventHandler(FinderChanged); return _finderTB; }
/** * In cases, scan input actually comes from a keyboard wedge. It * appears that for the key input to be forwarded correctly from * the Operating System to the application, an applicable control * must be focused. * * This field provides for that control. **/ public Control MakeScanArea() { _scanTextBox = VmUiBuilder.MakeScanHackTextBox(); _scanTextBox.GotFocus += new EventHandler(ScanTextBoxGotFocus); _scanTextBox.LostFocus += new EventHandler(ScanTextBoxLostFocus); _inputControlManager.Add(_scanTextBox, 0); JwVerticalLayout v = new JwVerticalLayout(); v.Add(MakeFocusTextBox()); v.Add(_scanTextBox); JwVisibilityWrapper vw = new JwVisibilityWrapper(v, false); return vw; }
/** * The below text field both enables keyboard input as well as controls scanner * enabling through focus. This is a problem, in that if the field already has * focus...the gotFocus event won't re-trigger. This becomes an issue because the * field will retain focus, even when its containing panel is no longer attached * to the form. This field provides temporary focus, for the single purpose of * allowing the scanfield to properly obtain focus. */ public Control MakeFocusTextBox() { _focusTextBox = new JwTextBox(); return _focusTextBox; }