mIRC Home    About    Download    Register    News    Help

Print Thread
#179468 23/06/07 10:39 AM
Joined: Dec 2006
Posts: 15
U
UFP Offline OP
Pikka bird
OP Offline
Pikka bird
U
Joined: Dec 2006
Posts: 15
I miss as Event the possibility, if I change with the TAB or with the mouse to the next ID (e.g. a Editbox) in a DIALOG, that I can execute a Script.
So I could color the active Editbox.



Mathias

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
With the mouse, that's what the sclick event is for. Not sure if the TAB key triggers any events and I don't have time to test it before I leave for work.


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
It doesn't.

OP: you can't change the colour of an editbox anyway, so that would have to be added also to do what you're requesting.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
hixxy, does DCX handle coloring editboxes and perhaps TAB events? I haven't looked that closely at it other than the minor use I put it to in one of my game scripts.


Invision Support
#Invision on irc.irchighway.net
Joined: Dec 2006
Posts: 15
U
UFP Offline OP
Pikka bird
OP Offline
Pikka bird
U
Joined: Dec 2006
Posts: 15
DCX already supported coloring editboxes, but not TAB events. frown

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
In any case, a focus event could be useful. For some reason, I think I remember a reason why this was a problem, but I don't remember what it was. I could just be imagining things, though.


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
DCX supports both as far as I know.

According to the DCX docs:

Quote:
focus
Triggered when a control gains the focus where $3 is the control ID.
Syntax:
/cb_alias DNAME focus ID
Example:
/cb_alias dcx focus 4

Joined: Dec 2006
Posts: 15
U
UFP Offline OP
Pikka bird
OP Offline
Pikka bird
U
Joined: Dec 2006
Posts: 15
That is however no Event, or?

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
DCX uses callback aliases instead of events. Read the DCX docs or ask on their forums for help.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yeah, it takes getting used to, but it's really pretty easy once you get the hang of it.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard