mIRC Homepage
Posted By: Mail Dialog Question - 05/10/06 11:30 PM
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.
Posted By: MikeChat Re: Dialog Question - 06/10/06 12:02 AM
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
Posted By: Mail Re: Dialog Question - 06/10/06 12:28 AM
Thanks Mike. That seems to work just fine. You saved me alot of guess work.
© mIRC Discussion Forums