|
Joined: Sep 2003
Posts: 149
Vogon poet
|
OP
Vogon poet
Joined: Sep 2003
Posts: 149 |
With an @Window that has a listbox, the PgUp and PgDown keys dont work for the main window. Instead they affect the side list box.
I don't know if this is a feature or an annoyance, and there doesnt seem to be any simple way around it. Perhaps Khaled meant for PgUp and PgDown keys to affect the a listbox window?
Either way, I think it should be fixed... It is quite annoying having to scroll through my log veiwer with the mouse.
mIRC 6.21 - Win XP Pro (SP2) - 2.4 Ghz - 1 GB Mem irc.x-tab.org
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
Reproduced on Windows XP Home SP2, mIRC 6.16.
A workaround is to open the window with the -e switch (edit box). When the edit box has focus pgup and pgdn will affect the main window.
|
|
|
|
Joined: Sep 2003
Posts: 149
Vogon poet
|
OP
Vogon poet
Joined: Sep 2003
Posts: 149 |
yucky
mIRC 6.21 - Win XP Pro (SP2) - 2.4 Ghz - 1 GB Mem irc.x-tab.org
|
|
|
|
Joined: Feb 2004
Posts: 714
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 714 |
I didn't want to start a new thread about it, so I'm just posting my question in here - yes, the topic is @Windows  I've seen custom windows with "colums" in them, like the one below:  I went through the help file, but the @window part of it sounds pretty confusing to me, and I found nothing about it. How do I do that? PS: The screenshow was takne from a banlist with Peace n Protection script loaded. Zyzzyx
"All we are saying is give peace a chance" -- John Lennon
|
|
|
|
Joined: Dec 2002
Posts: 788
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 788 |
Its done, with hard spaces basically, $chr(160).
//var %c1 = This is an, %c2 = example of ident | //echo $+(%c1,$str($chr(160),$calc(50 - $len(%i))),%c2)
Creates an IDENT of, 50 between the 2 parts of the line, to create the COLUMN effect, you would need to look at the widest (longest), parts and calculate with them accordingly.
To further enhance the confusion.
//echo [color:red]ABCDE $+ $str($chr(160),50) $+ B //echo ABC $+ $str($chr(160),$calc(50 + ($len(ABCDE) - $len(ABC)))) $+ B //echo ABCDEF $+ $str($chr(160),$calc(50 + ($len(ABCDE) - $len(ABCDEF)))) $+ B [/color]
Will result in all 3 lines being aligned correctly, however notice the starting 'words' are of different length, the FIRST one is our starting length, the 2nd one is a shorter one showing you how to calculate that and the last is a larger length.
Eamonn.
|
|
|
|
Joined: Feb 2004
Posts: 714
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 714 |
I see your point, I thought there was a switch of some kind that would do it. Maybe this can turn into a feature suggestion?  Thanks for the explanation!  Zyzzyx.
"All we are saying is give peace a chance" -- John Lennon
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
More likely it's a @window opened with the -t switch. - The -t switch used to set the tab positions in a listbox.
t[N,...,N] = specifies the tab positions in a listbox, if text contains tabs it will be spaced out according to these tab settings
You then use a tab ($chr(9)) to seperate the columns. e.g. //window -l -t10,20,30,40 @window | aline @window row1 two three four | aline @window row2 text more data
|
|
|
|
Joined: Feb 2004
Posts: 714
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 714 |
That works too  I had a suspicion about the -t switch, but didn't know what those 'tabs' were and how to put them. Thanks Edit: btw, what is the unit of 10,20,30,40? Pixels?
Last edited by Zyzzyx26; 29/08/04 02:14 AM.
"All we are saying is give peace a chance" -- John Lennon
|
|
|
|
Joined: Dec 2002
Posts: 788
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 788 |
While, -t is a better alternative (and personal preference), P&P actually uses $chr(160).
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
ROFL I seriously doubt it. Update: Well heres the line -- tabbed spacing. iline %win 4 $+ $1 $+ Days old Set by
Last edited by Iori; 29/08/04 10:53 PM.
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
Its chars. -t10,20 means 10 chars for the first column, 10 for the second. -t5,30 means 5 chars for the first column, 25 for the second.
|
|
|
|
Joined: Dec 2002
Posts: 788
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 788 |
Well in the v. I have installed here, I dont see it but then I dont suppose its a recent version. (Not that i use it).
Eamonn.
|
|
|
|
Joined: Feb 2004
Posts: 714
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 714 |
I had replied to this already, but my connection hanged. If another post appears, please delete/do whatever you want :POh, I see.  Personally I'm glad its chars instead of pixels, because I've no idea what a pixels is in my screen :P Ty!
"All we are saying is give peace a chance" -- John Lennon
|
|
|
|
|