mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
hey, could someone please help me
i have a dialog with a vertical scrollbar and two
quite big editboxes (1 and 2) i want to be able to input a number of
how many editboxes there are so i can scroll down to the edit box.
for example i had an alias called editboxes and when i type
/editboxes 20
it would open the dialog and i would be able to scroll down and
see 20 editboxes.
any ideas?

heres the dialog:
Code:
[color:orange]
dialog scroll {
  title "scroll test"
  size -1 -1 316 175
  option dbu
  edit "", 2, 18 35 180 45, multi return vsbar
  text " 1st edit", 3, 19 28 22 7
  text " 2nd edit", 4, 18 83 23 8
  edit "", 5, 18 92 180 45, autovs multi return vsbar
  scroll "", 1, 4 24 195 116, left
}[/color]

please help me

thaks alot

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You can't create controls with a Dialog command not that I'm aware of anyway.

What you could do, is have about 10 editboxes hidden and each time the scrollbar position has changed reveals an editbox. Probably completely off topic, but probably the closest you're going to get.

I don't think MDX (mIRC Dialog eXtensions) supports control insertion via commands either.

Last edited by SladeKraven; 23/02/05 11:07 PM.
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
yes thats what i want ^_^
basicly i just want to know how to make the scrollbars work :P
could you help?

thanks
laugh

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You could try...

Code:
dialog scroll {
  title "Scroll bar..."
  size -1 -1 178 162
  option dbu
  scroll "", 1, 2 4 8 156, range 39
  edit "", 2, 19 3 50 10, hide
  edit "", 3, 19 15 50 10, hide
  edit "", 4, 19 27 50 10, hide
  edit "", 5, 19 39 50 10, hide
  edit "", 6, 19 52 50 10, hide
  edit "", 7, 19 64 50 10, hide
  edit "", 8, 19 76 50 10, hide
  edit "", 9, 19 88 50 10, hide
  edit "", 10, 19 101 50 10, hide
  edit "", 11, 19 113 50 10, hide
  edit "", 12, 19 125 50 10, hide
  edit "", 13, 19 137 50 10, hide
  edit "", 14, 19 149 50 10, hide
  edit "", 15, 71 3 50 10, hide
  edit "", 16, 71 15 50 10, hide
  edit "", 17, 71 27 50 10, hide
  edit "", 18, 71 39 50 10, hide
  edit "", 19, 71 52 50 10, hide
  edit "", 20, 71 64 50 10, hide
  edit "", 21, 71 76 50 10, hide
  edit "", 22, 71 88 50 10, hide
  edit "", 23, 71 101 50 10, hide
  edit "", 24, 71 113 50 10, hide
  edit "", 25, 71 125 50 10, hide
  edit "", 26, 71 137 50 10, hide
  edit "", 27, 71 149 50 10, hide
  edit "", 28, 124 3 50 10, hide
  edit "", 29, 124 15 50 10, hide
  edit "", 30, 124 27 50 10, hide
  edit "", 31, 124 39 50 10, hide
  edit "", 32, 124 52 50 10, hide
  edit "", 33, 124 64 50 10, hide
  edit "", 34, 124 76 50 10, hide
  edit "", 35, 124 88 50 10, hide
  edit "", 36, 124 101 50 10, hide
  edit "", 37, 124 113 50 10, hide
  edit "", 38, 124 125 50 10, hide
  edit "", 39, 124 137 50 10, hide
  edit "", 40, 124 149 50 10, hide
}

on 1:dialog:scroll:init:0: {
  set %scroll.mnt 1 
}

on 1:dialog:scroll:close:0: {
set %scroll.mnt 1
}

on 1:dialog:scroll:scroll:1: {
  inc %scroll.mnt
  did -v scroll %scroll.mnt
  if (%scroll.mnt == 40) { set %scroll.mnt 1 }
}

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Quote:
I don't think MDX (mIRC Dialog eXtensions) supports control insertion via commands either.


It does, but you can't receive events (Scroll, sclick, dclick, etc) from that control.


New username: hixxy
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Ah, cheers. smile

Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
thanks alot for that
thats what i wanted to know
cheers ^_^

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome. grin
I wasn't sure if it was what you meant.


Link Copied to Clipboard