Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1089

Help: Rainmeter Skins • Re: Scrollbar for Notes from Moxx.Pack

$
0
0
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:
ScrollDrag.gif
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]
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?

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#)
I used this to determine the height of the SBI: (([1:H]+[m1Name:H])*(Round([mFileCount:]/8)))
Description:
  • [1] = Index1 Icon shown in FileView.
  • [m1Name] = Index1 Text appearing underneath.
  • The '8' is for the number of columns shown in the FileView.
I am wondering if this is how the FileView plugin works though? I'm assuming it functions similarly to the Notes app where you define a maximum height and it goes from that?

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)))

Thanks. :thumbup:

Statistics: Posted by sl23 — 28 minutes ago



Viewing all articles
Browse latest Browse all 1089

Trending Articles