mIRC Homepage
Posted By: quartz dialog scroll - 30/07/20 08:17 PM
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)
Posted By: maroon Re: dialog scroll - 30/07/20 08:22 PM
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.
Posted By: quartz Re: dialog scroll - 30/07/20 11:47 PM
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
Posted By: quartz Re: dialog scroll - 31/07/20 10:46 AM
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
© mIRC Discussion Forums