mIRC Home    About    Download    Register    News    Help

Print Thread
N
NRJ
NRJ
N
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,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
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.

N
NRJ
NRJ
N
Thx!!!!!!!!!! smile)

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


Link Copied to Clipboard