TwwEdit MaskEdit

Comments

2 comments

  • Roy Woll

    I am not able to reproduce your problem. I tired changing our validation demo with the bound twwedit with your property settings, but everything seeed to work fine.  Can you provide a sample project which exhibits the problem?

    0
    Comment actions Permalink
  • Joze Mauro Alves

    I implemented a custom keyboard. How to insert a character in TwwEdit when the button is pressed, respecting the mask?

    procedure TForm_covas.btnNum1Click(Sender: TObject);
    var v: String;
    begin
    if (screen.FocusControl is TwwEdit) and (not TwwEdit(screen.FocusControl).ReadOnly) then begin
    TwwEdit(screen.FocusControl).BeginUpdate;
    if TwwEdit(screen.FocusControl).SelLength = TwwEdit(screen.FocusControl).Text.Length then
    v := TwwButton(Sender).Text
    else begin
    v := TwwEdit(screen.FocusControl).Text;
    v := v + TwwButton(Sender).Text;
    end;
    TwwEdit(screen.FocusControl).text := v;
    TwwEdit(screen.FocusControl).EndUpdate;
    if v.Length >= TwwEdit(screen.FocusControl).MaxInputLength then
    acNextControl.Execute
    end
    end;

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk