mIRC Home    About    Download    Register    News    Help

Print Thread
#6801 16/01/03 03:42 AM
C
Couper2k
Couper2k
C
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,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
$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,253
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,253
on *:DIALOG:dname:scroll:ScrollID#: echo -ati2 Current position: $did($dname,$did)

#6804 16/01/03 04:09 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
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,253
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,253
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

#6806 21/01/03 12:33 AM
C
Couper2k
Couper2k
C
Thx @ both
i´m Happy laugh


#6807 21/01/03 12:49 AM
C
Couper2k
Couper2k
C
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,253
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,253
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]

#6809 21/01/03 10:42 AM
C
Couper2k
Couper2k
C
Thx a lot ,
it´s nice to see people ,who want to help others !

Respect !!!!!!

Greez: Couper2k


Link Copied to Clipboard