mIRC Home    About    Download    Register    News    Help

Print Thread
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

Joined: Dec 2002
Posts: 1,922
O
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.

Joined: Mar 2003
Posts: 86
N
NRJ Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Mar 2003
Posts: 86
Thx!!!!!!!!!! smile)

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Welcome laugh


Link Copied to Clipboard