I'm just setting this up and have hit a few snags I can't seem to sort out!
1. When I left click the Scroll Bar Indicator (SBI) in order to drag it, it 'jumps' around 20/25 or so pixels down below the mouse cursor position, I have tried adjusting everything that I think relates to it, but nothing works: Notice how when I first click it, it drops down before I even move the cursor.
Once I reach the bottom of the scroll bar background, it goes past the 'end' position. I have found a solution that stops this, but I believe it is more of a hack than a solution. I think the original drop and the fact it goes past the end point are likely connected?
The 'hack' is this:The '-48' in the Clamp part is where I am preventing it going past the end point. This was originally '20'
I also tried editin the '-34' part of the Clamp, but nothing here works and only worsens the problem, even with addition instead of subtraction which is weird!
Mouse Scrolling is working ok, but again I don't really understand what's happening so I can't gauge if it's correct, even though it stays within the bounds of the Scroll Bar Background.
2. As I am using this with a FileView type skin, I am trying to adjust the vertical size of the SBI dynamically as Windows Explorer, Web Browsers, etc, would. I have added what I believe to be a correct formula, but it makes the SBI disappear. Any idea what's wrong?I used this to determine the height of the SBI: (([1:H]+[m1Name:H])*(Round([mFileCount:]/8)))
Description:
So if I add everything into my formula, I have this:
(([1:H] + [m1Name:H]) * (Round([mFileCount]/8)))
(((135*#Scale#) + (40*#Scale#)) * (Round(209/8)))
Which gives:
(175 * (Round26.125))
But here I'm also unsure about the Round. Does that affect the way this would work due to rounding it down? Essentially this is 27 rows with the last row being incomplete, but as they are shunted up in order to NOT leave any blank spaces, I don't know how exactly this works.
How would you round this up? I plan on trying to sort out actually showing blank spaces with dummy items in order to avoid this shunting process if possible. So I need this to Round UP to 27 rows in this case.
Scrollbar code: Thanks. ![Thumbs Up :thumbup:]()
1. When I left click the Scroll Bar Indicator (SBI) in order to drag it, it 'jumps' around 20/25 or so pixels down below the mouse cursor position, I have tried adjusting everything that I think relates to it, but nothing works: Notice how when I first click it, it drops down before I even move the cursor.
Once I reach the bottom of the scroll bar background, it goes past the 'end' position. I have found a solution that stops this, but I believe it is more of a hack than a solution. I think the original drop and the fact it goes past the end point are likely connected?
The 'hack' is this:
Code:
[mMouse]Measure=PluginPlugin=MouseLeftMouseDragAction=[!SetVariable YPositionDrag "(Clamp($MouseY$-34,0,(948*#Scale#)-48))"][!UpdateMeasure mPercent][!UpdateMeter *][!Redraw]
I also tried editin the '-34' part of the Clamp, but nothing here works and only worsens the problem, even with addition instead of subtraction which is weird!
Mouse Scrolling is working ok, but again I don't really understand what's happening so I can't gauge if it's correct, even though it stays within the bounds of the Scroll Bar Background.
2. As I am using this with a FileView type skin, I am trying to adjust the vertical size of the SBI dynamically as Windows Explorer, Web Browsers, etc, would. I have added what I believe to be a correct formula, but it makes the SBI disappear. Any idea what's wrong?
Code:
[ScrollbarIndicator]Meter=ShapeShape=Rectangle 0, (Abs(#YPosition#)/((#MaxScrollHeight#/((948*#Scale#)+0.00001))+0.00001)), (20*#Scale#), ([1:H]+[m1Name:H]*(Round[mFileCount:]/8)), (7*#Scale#) | StrokeWidth 0 | Fill Color #Aqua#,150LeftMouseDownAction=[!CommandMeasure mMouse "Start"]Container=FileViewContainerGroup=ScrollbarDynamicVariables=1X=(1440*#Scale#)Y=(50*#Scale#)
Description:
- [1] = Index1 Icon shown in FileView.
- [m1Name] = Index1 Text appearing underneath.
- The '8' is for the number of columns shown in the FileView.
So if I add everything into my formula, I have this:
(([1:H] + [m1Name:H]) * (Round([mFileCount]/8)))
(((135*#Scale#) + (40*#Scale#)) * (Round(209/8)))
Which gives:
(175 * (Round26.125))
But here I'm also unsure about the Round. Does that affect the way this would work due to rounding it down? Essentially this is 27 rows with the last row being incomplete, but as they are shunted up in order to NOT leave any blank spaces, I don't know how exactly this works.
How would you round this up? I plan on trying to sort out actually showing blank spaces with dummy items in order to avoid this shunting process if possible. So I need this to Round UP to 27 rows in this case.
Scrollbar code:

Statistics: Posted by sl23 — 35 minutes ago