mIRC Home    About    Download    Register    News    Help

Print Thread
Return (Enter) Shortcut in a DIALOG #58947 03/11/03 04:37 PM
Joined: Mar 2003
Posts: 86
N
NRJ Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Mar 2003
Posts: 86
I have an edit field in a DIALOG and want to active the data base inquiry, when I push Return (Enter) after write the keyword (for searching or so). How can I configurate my DIALOG or the edit field or a button, that can start the data base inquiry after pushing Enter??


Mathias

Re: Return (Enter) Shortcut in a DIALOG #58948 03/11/03 05:02 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Add a button with the default property, so whenever the user presses Enter in the dialog, a sclick event for that button will trigger. Example:
  • dialog x {
    size -1 -1 100 55
    edit "" 1, 5 5 90 20
    button "Go!" 2, 25 30 50 20, default
    }

    On *:dialog:x:sclick:2:echo Pressed button
Open the dialog - /dialog -m x x, type something in the editbox and press Enter. A message will appear.

Re: Return (Enter) Shortcut in a DIALOG #58949 03/11/03 06:04 PM
Joined: Mar 2003
Posts: 86
N
NRJ Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Mar 2003
Posts: 86
Thx!!!!!!!!!! smile)

Re: Return (Enter) Shortcut in a DIALOG #58950 03/11/03 06:55 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Welcome laugh