|
Joined: Jan 2003
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2003
Posts: 4 |
Hello,
In mIRC-Dialog´s , I can use a "scroll" (Scrollbar) simply without anithing, coz i cant find the identifyers for the curent position , !
can annybody help me please ?
thx
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
$did([color:blue]dialogname,IDofScrollBar).sel[/color] will return the position of the scrollbar. Replace the text in blue with the correct information.
|
|
|
|
Joined: Dec 2002
Posts: 1,321
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,321 |
on *:DIALOG:dname:scroll:ScrollID#: echo -ati2 Current position: $did($dname,$did)
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
Hammer, you need the .sel on the end, or atleast it did for me...
|
|
|
|
Joined: Dec 2002
Posts: 1,321
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,321 |
You're right and I'm tired, Collective.
dialog tdefScroll {
option dbu
size -1 -1 100 100
title "Now with more cheese!"
scroll "Scroll bar test", 1, 5 5 90 25, horizontal range 1 100
button "OK" , 2, 5 60 90 25, ok
}
alias dscroll dialog -m dScroll tdefScroll
on *:DIALOG:dScroll:scroll:1: echo -ati2 * New scroll value: $did($dname,$did).sel
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
|
|
|
|
Joined: Jan 2003
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2003
Posts: 4 |
Thx @ both i´m Happy
|
|
|
|
Joined: Jan 2003
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2003
Posts: 4 |
And the 2nd question is,
can i set the position of the scroll with a script ?
like
alias setpos { ( the script to set the opsition ) %presetedvalue }
|
|
|
|
Joined: Dec 2002
Posts: 1,321
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,321 |
dialog tdefScroll {
option dbu
size -1 -1 100 100
title "Now with more cheese!"
scroll "Scroll bar test", 1, 5 5 90 25, horizontal range 1 100
button "Center" , 3, 5 35 90 20
button "OK" , 2, 5 60 90 25, ok
}
alias dscroll dialog -m dScroll tdefScroll
on *:DIALOG:dScroll:scroll:1: echo -sti2 * New scroll value: $did($dname,$did).sel
[color:#840017]on *:DIALOG:dScroll:sclick:3: did -c $dname 1 50[/color]
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
|
|
|
|
Joined: Jan 2003
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2003
Posts: 4 |
Thx a lot , it´s nice to see people ,who want to help others !
Respect !!!!!!
Greez: Couper2k
|
|
|
|
|