mIRC Home    About    Download    Register    News    Help

Print Thread
#161331 05/10/06 11:30 PM
Joined: Aug 2005
Posts: 18
M
Mail Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Aug 2005
Posts: 18
I am making a dialog with multiple tabs. I know how to basically refresh the dialog after adding or subtracting entries to it. My problem is this. I want the dialog to refresh to the tab I was working on at the time it refreshed. Surely there has to be a way of doing this. It always wants to reopen back to tab 1. I may have been working on tab 3.

Any help in this matter will be greatly appreciated.

#161332 06/10/06 12:02 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Code:
dialog tabbit {
  title ""
  size -1 -1 200 100
  option dbu
  tab "Tab One", 10, 1 1 198 98 , tab 10
  tab "Tab Two", 20, 1 1 198 98 , tab 20
}

on *:dialog:tabbit:sclick:10:{ set -u300 %tabbit 10 }
on *:dialog:tabbit:sclick:20:{ set -u300 %tabbit 20 }
on *:dialog:tabbit:init:0:{ if (%tabbit) { .timertab 1 1 did -f tabbit %tabbit } }


I noticed a delay is needed so i added a timer

#161333 06/10/06 12:28 AM
Joined: Aug 2005
Posts: 18
M
Mail Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Aug 2005
Posts: 18
Thanks Mike. That seems to work just fine. You saved me alot of guess work.


Link Copied to Clipboard