mIRC Home    About    Download    Register    News    Help

Print Thread
#8070 24/01/03 09:29 AM
Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
I got problem trying focus on tab with id 4, when the dialog appear, it always focus on the default tab 1! What's is wrong?
dialog agent {
tab "Position", 1, 8 10 290 100
tab "Animation", 2
tab "Loop Anim.", 3
tab "Speech", 4
}
on 1:dialog:agent:init:0: {
did -f agent 4
}

#8071 24/01/03 10:20 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
No idea why it doesn't work but
Code:
on 1:dialog:agent:init:0: {
.timer -m 1 1 did -f agent 4
}

worked for me.

#8072 24/01/03 10:37 AM
Joined: Dec 2002
Posts: 169
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
This is kind of hidden in the help file but it appears under Tab Control just after the sample dialog table.

You can use /did -fu to set the focus on a specific tab, and /did -vh to show/hide the entire tab control.

#8073 24/01/03 10:45 AM
Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
I tried using -fu, still would not work! Another weird occurence is that when I clicked on id 4 tab, it appear to be "hanged" on the dialog.

#8074 24/01/03 10:48 AM
Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
It works using the timer as indicated! I wonder if the script is being executed too fast, as I've similar problem on /editbox until someone recommend me to a 3rd party script called /sleep.


Link Copied to Clipboard