CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Enter intercept in JQDialogOptions.Buttons

by Corwin » 17 Jun 2015 16:29

Hi

i have a frame with two fields (iwedit) input and two buttons
I got the idea from your demo

Code: Select all
    IWCGJQDialogLogin.ResetJSonProps;
    IWCGJQDialogLogin.JQDialogOptions.Buttons.Clear;
    IWCGJQDialogLogin.JQDialogOptions.AutoOpen:= False;
    IWCGJQDialogLogin.Visible:= False;

    IWCGJQDialogLogin.JQDialogOptions.AutoOpen:= True;
    IWCGJQDialogLogin.Visible:= True;
    IWCGJQDialogLogin.JQDialogOptions.Title:= 'Autenticazione';
    IWCGJQDialogLogin.JQDialogOptions.Modal:= True;
    IWCGJQDialogLogin.Width:= 350;
    IWCGJQDialogLogin.Height:= 280;
    iButtom:= IWCGJQDialogLogin.JQDialogOptions.Buttons.Add;
    iButtom.Text:= 'Login';
    iButtom.OnClick.OnEvent:= OnClickRunActionDialog2Event;
    iButtom:= IWCGJQDialogLogin.JQDialogOptions.Buttons.Add;
    iButtom.Text:= 'Cancel';
    iButtom.OnClick.OnEvent:= OnClickCloseDialog2Event;
    IWEditLogin.SetFocus;


I would like to intercept the ENTER key when I arrive on the button

but the method does not exist onkeypress ...

Regards.
Corwin
 
Posts: 114
Joined: 27 Apr 2015 10:01

by Alexander Bulei » 18 Jun 2015 09:21

Hi Corwin,

Code: Select all
I would like to intercept the ENTER key when I arrive on the button


What do you mean?
Tell us, what do you want to do....

Btw, the buttons doesn't have onkeypress event....

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Corwin » 22 Jun 2015 09:40

Hi

I want after entering a value in a field, and with the arrival on the tab button ok, instead of using the mouse, press enter and perform the procedure onclick of the button (enter instead mouse click)

Regards
Corwin
 
Posts: 114
Joined: 27 Apr 2015 10:01


Return to JQDialogEx

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.