mIRC Home    About    Download    Register    News    Help

Print Thread
#44041 25/08/03 05:51 AM
Joined: Aug 2003
Posts: 5
N
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Aug 2003
Posts: 5
If you create a tab control and try and hide it and it has enough tabs that it needs to display the "extended buttons" ( < > ) so you can move over left or right to view all the tabs it doesnt hide these "extended buttons."

Rephrase:
The "extended (left and right) tab" buttons do not hide when you hide a tab control.

#44042 26/08/03 10:33 PM
Joined: Aug 2003
Posts: 148
K
Vogon poet
Offline
Vogon poet
K
Joined: Aug 2003
Posts: 148
care for a code and screen shot?


_________
may death strike you.
#44043 26/08/03 11:38 PM
Joined: Aug 2003
Posts: 5
N
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Aug 2003
Posts: 5


Providing code would be irrelevant, just code a tab control with a really long tab (long name) and you'll see it.

#44044 26/08/03 11:44 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
IMHO mIRC should use the Windows builtin tab system. Khaled wrote his own tab control because of mIRC 16bit, but thats now gone, why not use the control built into windows which would not have such a problem. Plus, under WindowXP, the mIRC tabs don't look like the tabs of any other program because they do not correctly use XP's theme support; so why deprive XP users of having correct support to allow people using a dead-OS to have correct support? Doesn't make sense to me.

#44045 27/08/03 02:36 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Most likely to save the time of porting new code to accomidate the new style.


-KingTomato
#44046 27/08/03 04:31 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
There shouldn't be any code to port, Windows handles all of that. Themes are fully backwards compatible.

#44047 27/08/03 07:49 PM
Joined: May 2003
Posts: 161
A
Vogon poet
Offline
Vogon poet
A
Joined: May 2003
Posts: 161
I think he meant porting to use the windows builtin tab controls, instead of mIRC's hand-made ones.

#44048 27/08/03 08:01 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Seeing as how mIRC seems to use something that is compatible with the builtin windows tab control, it doesn't seem like it should be too much work.

#44049 28/08/03 09:05 PM
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
My question is, why are you hiding the tabs? It's clear that you're using them to make your own config. dialog, but if you just make the tabs larger then the dialog itself, then the tab buttons won't appear and you can just use /did -c dialog <tab id>. Also, any dialog control (button, check, etc.) which isn't designated to a specific tab, will appear on all the tabs.
button "Hello", 1, 1 1 20 10, tab 1 ;will appear on tab 1
button "Exit", 2, 1 12 20 10, ok ;will appear on all tabs

Here's an example script:
Code:
dialog tabs {
  title "Tabs"
  size -1 -1 100 100
  option dbu
  ;the first dialog is made larger then the dialog and positioned
  ;so that the edges of the tab aren't visible.
  tab "", 1, -5 -20 110 125
  tab "", 2
  tab "", 3
  button "Tab 1", 4, 1 1 20 10
  button "Tab 2", 5, 1 12 20 10
  button "Tab 3", 6, 1 23 20 10
  text "Tab 1 is visible", 7, 30 5 70 8, tab 1
  check "Tab 2 is visible", 8, 30 5 70 8, tab 2
  radio "Tab 3 is visible", 9, 30 5 70 8, tab 3
}
on *:DIALOG:tabs:sclick:*: {
  if ($did == 4) { did -c $dname 1 }
  elseif ($did == 5) { did -c $dname 2 }
  elseif ($did == 6) { did -c $dname 3 }
}


- Jason
#44050 02/09/03 12:06 AM
Joined: Aug 2003
Posts: 5
N
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Aug 2003
Posts: 5
You are missing what I am trying to do. The tabs arent used to hide the different sections but there is a tab control in the actual "section" of the tree view. I think to fix my problem I just need to clear all the text in the tab whenever I switch to different sections.... but I would still call that a bug =\


Link Copied to Clipboard