mIRC Home    About    Download    Register    News    Help

Print Thread
dialog scroll #267518 30/07/20 08:17 PM
Joined: Dec 2019
Posts: 30
Q
quartz Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Dec 2019
Posts: 30
so I don't know if scroll is what I want?

scroll "text", id, x y w h, style

Ive got a dialog window, it's got a section with a few id's of text, about 15 seperate lines so far. they take up some space in the dialog, I want to create a small vertically scrolling section, the same width as the text (no problem) about 50% the height of all the rows, so I scroll up or down to see all the lines of text. not sure if 'scroll' is right for this? it seems like a thing you could do in a dialog

(I could use a listbox, but that seems a bit messy when I want the text on regular dialog background, and I dont need all functionality of a listbox for just displaying the text)

Last edited by quartz; 30/07/20 08:18 PM.
Re: dialog scroll [Re: quartz] #267519 30/07/20 08:22 PM
Joined: Jan 2004
Posts: 1,388
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,388
Does this help?
https://en.wikichip.org/wiki/mirc/dialog_components

There's a 'scroll' dialog item, and there's also horizontal and vertical scrollbars in other items.

Re: dialog scroll [Re: maroon] #267520 30/07/20 11:47 PM
Joined: Dec 2019
Posts: 30
Q
quartz Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Dec 2019
Posts: 30
good link - I've got the page open now smile (had it open for a week), haven't yet seen the thing that does what I want it to do. I'm assuming a scrolling block of 'text id' actually is a thing

Last edited by quartz; 30/07/20 11:47 PM.
Re: dialog scroll [Re: quartz] #267521 31/07/20 10:46 AM
Joined: Dec 2019
Posts: 30
Q
quartz Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Dec 2019
Posts: 30
so I'm guessing I need to put in a scrolling area which has it's own tab id, and then have a

text "text here", id, x y x y, "tab scrolling area id"

this doesn't work

scroll "something", 103, 20 385 400 50, right
text "1: first thing description here on a line", 1250 20 350 450 20, tab 103
text "2: second thing description here on a line", 1251 20 370 450 20, tab 103
text "3: third thing description here on a line", 1252 20 390 450 20, tab 103
text "4: fourth thing description here on a line", 1253 20 410 450 20, tab 103
text "5: fifth thing description here on a line", 1254 20 430 450 20, tab 103
...
text "10: tenth thing description here on a line", 1260 20 450 450 20, tab 103


but it might not be how scroll is supposed to be used
-- actually it won't be tab, because it isn't a tab

basically it's just an area of text, but rather that in a dialog, it's in a scrolling area of a dialog

Last edited by quartz; 31/07/20 10:48 AM.