mIRC Home    About    Download    Register    News    Help

Print Thread
#95975 28/08/04 11:11 PM
Joined: Sep 2003
Posts: 149
S
Stealth Offline OP
Vogon poet
OP Offline
Vogon poet
S
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
#95976 28/08/04 11:21 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
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.

#95977 28/08/04 11:35 PM
Joined: Sep 2003
Posts: 149
S
Stealth Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Sep 2003
Posts: 149
yucky crazy


mIRC 6.21 - Win XP Pro (SP2) - 2.4 Ghz - 1 GB Mem
irc.x-tab.org
#95978 29/08/04 12:06 AM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
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 smile

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 smile


"All we are saying is give peace a chance" -- John Lennon
#95979 29/08/04 01:18 AM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
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.

#95980 29/08/04 01:56 AM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
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? smile

Thanks for the explanation! smile

Zyzzyx.


"All we are saying is give peace a chance" -- John Lennon
#95981 29/08/04 02:04 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
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.
Code:
//window -l -t10,20,30,40 @window | aline @window row1	two	three	four | aline @window row2	text	more	data


#95982 29/08/04 02:08 AM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
That works too smile I had a suspicion about the -t switch, but didn't know what those 'tabs' were and how to put them.

Thanks smile

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
#95983 29/08/04 10:32 AM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
While, -t is a better alternative (and personal preference), P&P actually uses $chr(160).

#95984 29/08/04 10:32 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
ROFL I seriously doubt it. grin

Update:
Well heres the line -- tabbed spacing.
Code:
  iline %win 4  	 $+ $1 $+ 	Days old	Set by


Last edited by Iori; 29/08/04 10:53 PM.
#95985 29/08/04 10:34 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
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.

#95986 29/08/04 11:43 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
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.

#95987 30/08/04 05:29 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
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 :P

Oh, I see. smile 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

Link Copied to Clipboard