mIRC Home    About    Download    Register    News    Help

Print Thread
#146413 04/04/06 09:41 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Here is the initialization code for a dialog that I'm working on. If the actual dialog layout is necessary, I will post it, but it's fairly lengthy, which is why I didn't post it right away.

The problem is that ID's 1622 & 1624 are visible even immediately after initialization, which (to my understanding) they should not be, especially when the ID's before, the one in-between (1623) and all of the ID's after are hidden.

Any ideas as to why these two won't hide and/or how I can get them hidden, since I don't want them displayed all of the time.
Code:
 on *:dialog:Channel_Control:init:*:{
  did -ra $dname 1 $date(ddd mmm d yyyy)
  .timertime -m 0 500 did -ra $dname 2 $!time(h:nn:ss tt)
  .scon -at1 did -a $dname 1002,2002,302 $!network
  did -h $dname 1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020
  did -h $dname 1100,1101,1102,1103,1104,1110,1111,1112,1113,1114,1120,1121,1122,1123,1124,1130,1131,1132,1133,1134,1140,1141,1142,1143,1144,1150
  did -h $dname 1151,1152,1153,1154
  did -h $dname 1200,1201,1210,1211,1212,1213,1214,1215,1220,1221,1222,1223,1224,1225,1230,1231,1232,1233,1234,1235,1240,1241,1242,1243,1244,1245,1250
  did -h $dname 1251,1252,1253,1254,1255,1260,1261,1262,1263,1264,1265
  did -h $dname 1300,1301,1302,1303,1304,1310,1311,1312,1313,1314,1320,1321,1322,1323,1324,1330,1331,1332,1333,1334,1335,1340
  did -h $dname 1400,1410,1411,1412,1413,1414,1420,1421,1422,1423,1424
  did -h $dname 1500,1501,1502,1510,1511,1512,1520,1521,1522,1530,1531,1532,1540,1541,1542,1550,1551,1552,1560,1561,1562,1571,1572,1573,1574
  did -h $dname 1600,1601,1602,1603,1604,1605,1606,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624
  did -h $dname 1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1720,1721,1722,1723,1724,1725,1730,1731,1732,1733,1734,1735,1740,1741
  did -h $dname 1742,1743,1744,1745,1746,1747,1748
  did -h $dname 2003,2004,2005,2006,2010,2011,2012,2013,2014,2015,2016,2017,2020,2021,2022,2025,2026,2027,2028,2031,2032,2033,2034,2035,2036,2037,2038
  did -h $dname 2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116
  did -h $dname 303,304,305,306,311,312,313,314,315,316,317,318,320,321,322,323,324,325,326,327,328,329
  did -h $dname 400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,431,432,433,434,435,436,441,442,443,444
  did -h $dname 500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,531,532,533,534,535,536,541,542,543,544
  did -h $dname 600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629
  did -h $dname 630,631,632,635,636,637,638
  didtok $dname 1618 32 Nick Clones IRCops
  didtok $dname 1619 32 Bans Exceptions Invites
}
 

#146414 04/04/06 01:38 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Hmm they should be hidden unless a "-v" has been given to those IDs after init.

Also, if you're using 6.17 (and I think you are), you can simplify those IDs. Like in the first did -h, it could be done as

Code:
 did -h $dname 1003-1020 


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#146415 04/04/06 02:55 PM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
In your example, there is no point in setting visibility in the init event, since their initial states can be specified with the dialog defination. Now if intial states were dependant on a variable, that would be different...

From mIRC Help
Quote:

Other Styles
In addition to the styles shown in brackets for each type of control, you can also specify these styles:

disable - disables the control
hide - hides the control

Last edited by NaquadaServ; 04/04/06 02:59 PM.

NaquadaBomb
www.mirc-dll.com
#146416 04/04/06 04:50 PM
Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
if you use a tab that exceed the dialog size ( say the dialog is 200x200 the tabcontrol would be -100 -100 400 400) and tab the controls in groups you want too show. you can show/hide much more effectively by focusing a tab.


$maybe
#146417 04/04/06 04:53 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
My point is that those two ID's are still showing upon the initialization.
Yes, I am using 6.17, however, I know of at least 5 other people that are waiting for me to finish this code, and are not using 6.17

#146418 04/04/06 04:55 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I'll give that a try and see if it makes a difference.

#146419 04/04/06 04:58 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Hmm...I'm not sure how I'd go about setting the focus on a single tab, although I don't think it would make a difference, as my tabs are all smaller than the dialog size
Code:
dialog Channel_Control {
  title "Channel Control v. 2.0"
  size -1 -1 830 540
  option pixels
  tab "Channel Control", 1000, 5 25 815 510
  

#146420 05/04/06 12:07 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Thanks for the suggestion, that is solving the problem, although I'm still confused as to why it was just those two ID's that weren't being hidden via the /did -h commands.

#146421 05/04/06 02:50 AM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Quote:
Thanks for the suggestion, that is solving the problem, although I'm still confused as to why it was just those two ID's that weren't being hidden via the /did -h commands.


Programming 101 - If what you are doing isn't working, do it completely different, and that will usually work. Some bugs (scripting errors) are so suttle the starting over can help... smile

Try using an mIRC dialog design interface...


NaquadaBomb
www.mirc-dll.com
#146422 05/04/06 03:01 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I used (and do use) Dialog Studio for the basic layout, but you can't do the actual coding as to what each ID is supposed to do when selected, there's still stuff that can (and did) creep up that's not related to the dialog design.

#146423 05/04/06 03:43 AM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Yeah, there really needs to be a better dialog designer, one where the entire script can be loaded with all events related to the dialog...


NaquadaBomb
www.mirc-dll.com
#146424 05/04/06 10:28 AM
Joined: Oct 2005
Posts: 126
Vogon poet
Offline
Vogon poet
Joined: Oct 2005
Posts: 126
indeed mad


If you mess with the best, u will die like the rest !

Link Copied to Clipboard