mIRC Home    About    Download    Register    News    Help

Print Thread
#6801 16/01/03 03:42 AM
Joined: Jan 2003
Posts: 4
C
Self-satisified door
OP Offline
Self-satisified door
C
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

#6802 16/01/03 04:00 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
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.

#6803 16/01/03 04:05 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
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
#6804 16/01/03 04:09 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Hammer, you need the .sel on the end, or atleast it did for me...

#6805 16/01/03 05:24 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
You're right and I'm tired, Collective.
Code:

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
#6806 21/01/03 12:33 AM
Joined: Jan 2003
Posts: 4
C
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Jan 2003
Posts: 4
Thx @ both
i´m Happy laugh


#6807 21/01/03 12:49 AM
Joined: Jan 2003
Posts: 4
C
Self-satisified door
OP Offline
Self-satisified door
C
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
}


#6808 21/01/03 02:36 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Code:

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
#6809 21/01/03 10:42 AM
Joined: Jan 2003
Posts: 4
C
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Jan 2003
Posts: 4
Thx a lot ,
it´s nice to see people ,who want to help others !

Respect !!!!!!

Greez: Couper2k


Link Copied to Clipboard