mIRC Homepage
Posted By: Om3n Default tab in dialogs - 04/09/03 08:02 AM
What i am trying to do is set a default tab in a dialog, that is, i dont want the first tab to be the one that is shown when the dialog is launched. I have tried what the help file says... /did -vh $dname 4 3... /did -v $dname 4... /did -h $dname 3 ect

Maybe i am putting it in the wrong place? (on dialog init)
Posted By: LocutusofBorg Re: Default tab in dialogs - 04/09/03 08:44 AM
/did -v and /did -h show and hide the tab. Try /did -fu.

helpfile: You can use /did -fu to set the focus on a specific tab,
Posted By: Om3n Re: Default tab in dialogs - 04/09/03 11:03 AM
I tried all the -fu combinations i could think of earlier also, but nothing seems to work.
Posted By: vexx0r Re: Default tab in dialogs - 04/09/03 08:21 PM
I have had this problem before, simply fixed by making this command /did -f $dname dialogname id for example in my case
it was like this

on init blah blah: { did -f $dname cpanel 34 | other init commands }

I don't know if this is what you needed but blah, we can't win them all.. :tongue:
Posted By: Om3n Re: Default tab in dialogs - 05/09/03 06:58 AM
/did -f $dname rls_set 4
* /did: 'rls_set' invalid id '0' (line 44, rls.ini)

must use as... /did -f $dname 4

For anybody else who may be interested, i seems that this is an init problem. /did will not allow you to change the focus in a dialog from within the init event.

.timer -u 1 0 did -f $dname id worked for me.

Thanks for the replys
Posted By: Naz Re: Default tab in dialogs - 05/09/03 07:07 AM
From your menu you can use
Code:
 
Menuitem:dialog -m name name | did -f name id
 

to accomplish this as well.
© mIRC Discussion Forums