mIRC Homepage
Posted By: NRJ Return (Enter) Shortcut in a DIALOG - 03/11/03 04:37 PM
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
Posted By: Online Re: Return (Enter) Shortcut in a DIALOG - 03/11/03 05:02 PM
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.
Posted By: NRJ Re: Return (Enter) Shortcut in a DIALOG - 03/11/03 06:04 PM
Thx!!!!!!!!!! smile)
Posted By: Online Re: Return (Enter) Shortcut in a DIALOG - 03/11/03 06:55 PM
Welcome laugh
© mIRC Discussion Forums