mIRC Homepage
Posted By: Tank Hiding tab hides all - 16/10/03 02:15 PM
I can't hide one tab in a dialog with did -h.
All tabs disapears instead of the one I want.
Using mIRC 6.12

Any ideas?
Posted By: Online Re: Hiding tab hides all - 16/10/03 02:34 PM
The help file says "You can use /did -fu to set het focus on a specific tab, and /did -vh to show/hide the entire tab control".

Apparently what you're trying to do is impossible.
Posted By: Tank Re: Hiding tab hides all - 16/10/03 02:46 PM
I'm pretty sure it means what it says, that the entire tab should be hidden. Not all tabs.
Anyway, it works as I expect in 6.03.
Posted By: Online Re: Hiding tab hides all - 16/10/03 03:58 PM
I used this dialog,
  • dialog x {
    size -1 -1 100 100
    tab "one" 1, 5 5 90 90
    tab "two" 2
    }
and the command "/did -h x 1" did hide both tabs even on v6.03.
Posted By: Iori Re: Hiding tab hides all - 17/10/03 05:36 AM
Yeah, it does mean what it says, show/hide the entire tab control. There is only one tab control, it includes ALL tab "pages" you define. wink
Posted By: Tank Re: Hiding tab hides all - 17/10/03 07:39 AM
Compare the result of this code in 6.03 and 6.12 and you'll see what I mean.

Code:
dialog test {
  title "This is a test"
  size -1 -1 100 100
  option dbu

  tab "Tab 1", 1, 2 0 296 225
  tab "Tab 2", 2

  button "OK", 681, 130 227 40 12, Cancel

  box " A box here ",100, 4 16 92 68, tab 1
  check "click if you want", 101, 20 30 65 10, tab 1

  box "Another box", 102, 4 21 92 34, tab 2
  edit "", 103, 5 30 50 10, tab 2 center autohs
  check "check here", 104, 5 43 50 9, tab 2
  check "is this unchecked?", 105, 40 43 55 9, tab 2
}

On *:dialog:test:*:*:{
  if ( $devent == init ) {
   ; did -h $dname 2
  }
}


Try both with and without the comment.
Posted By: Tank Re: Hiding tab hides all - 17/10/03 02:02 PM
Ok, after testing some I found the difference between 6.03 and 6.12.
In 6.03 the info on tab1 is used if the tabs are hidden, but in 6.12 you have to
supply un-tabbed info for it to be displayed.
This is going to be a pain to recover from since it can't be duplicate id's. The script has to be rewritten to take that into account.
Posted By: Online Re: Hiding tab hides all - 17/10/03 02:10 PM
Yes, after testing your code I also came to that conclusion, and in my opinion the way it works now is better. Btw, I strongly suggest using a dialog editor for the table design (if you don't use one already).
Posted By: Iori Re: Hiding tab hides all - 18/10/03 07:35 PM
Ok in 6.03
Bring tab 2 to the foreground and then hide tab 2. The controls on tab2 now are left in view. :tongue:

IMHO the bug is in 6.03 for leaving remnants of the tab control when it is hidden.
© mIRC Discussion Forums