mIRC Homepage
Posted By: sparta channel central - 01/05/09 10:25 AM
I working on a channel central, and i looking for ideas, how would you display custom modes. in a separate dialog, or in the same dialog as the other modes? if in the same dialog, any idea on how make it look good? the problem as i see it is that i need to be able to get the information for the modes that are available for the server i connect to, and since some networks don't support more then the default modes (tnimklps) it would look strange if you have check boxes for 20 more modes in the dialog. The value i working with is stored in a %variable, and in the format

%variable owghraAORTVSxNCWqBzvdHG
Posted By: RusselB Re: channel central - 01/05/09 03:42 PM
Why not go with a list box that uses the check option?

As to which modes are supported, I believe, but am unable to confirm at the moment, raw 005 contains this, and much more, information.

P.S.: This really should've been put in the Scripts & Pop-Ups section.
Posted By: sparta Re: channel central - 01/05/09 08:18 PM
Since i don't ask for help to make the dialog i posted it here smile it's more like a general question wink and yes, i was thinking of the list box that uses the check option, but im not shure on how make them, but i guess i figure it out.. smile
Posted By: argv0 Re: channel central - 01/05/09 09:20 PM
This is still a script related question. Variables have nothing to do with an IRC client "in general".
Posted By: RusselB Re: channel central - 02/05/09 01:05 AM
In your dialog setup, remember the check option for the listbox.
Then fill the listbox like you normally would, possibly using /did -a
Note that you will need a bigger listbox when using the check option than if you weren't, as the lines in the listbox become the height of the checkbox. I have a script where I was trying to use both checked and unchecked lists with the two corresponding, but the alignment of the text went off fairly quickly (definetely noticable after about 5 items).

Remember that the check option for the listbox only allows for two states as opposed to the checkbox which can be set as a 3state item.
© mIRC Discussion Forums