Pardon me, for hijacking this thread but my question falls within the domain of this topic.
[EDIT: moved to a new thread]
It is currently May 2nd, 2024, 9:13 pm
Noob Needing a Scrollbar
-
- Posts: 943
- Joined: May 7th, 2016, 7:32 am
Re: Noob Needing a Scrollbar
My DevArt Gallery
There are many ways to be different - there is only one way to be yourself - be amazing at it
The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
There are many ways to be different - there is only one way to be yourself - be amazing at it
The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
-
- Posts: 17
- Joined: December 2nd, 2019, 3:10 pm
Re: Noob Needing a Scrollbar
eclectic-tech wrote: ↑December 4th, 2019, 4:35 pm Scrolling may be something I look at adding, but in the meantime you can achieve it by making these changes to Gcalendar.ini
Steps:
1.) Create a new variable named 'FirstY' in the [Variables] section and set it's value to 8.
2.) Add 'Container=BackgroundContainer' to the [StyleReaderText], [StyleReaderTextSubheading], and [StyleReaderTextSubtext] sections.
3.) Change [StyleReaderTextFirst] section Y value to 'Y=#FirstY#'
4.) Change [StyleReaderGrabberFirst] Y value to 'Y=284'
5.) Add the new code section below just before the [ItemWhat1] section in the code.
Add as many new item measures to capture more info, and add [ItemWhat#] and [ItemWhen#] meter sections as you want below the current 8 sets.Code: Select all
[BackgroundContainer] Meter=IMAGE ImageName=#@#Images\SkinBackground.#ColorImage#.png ScaleMargins=12,12,12,12 Y=36 W=#SidebarWidth# H=(39 * (#NumOfItems#-1.5)) MouseScrollUpAction=[!SetVariable FirstY (Clamp(#FirstY#+16,-1250,8))][!UpdateMeter *][!Redraw] MouseScrollDownAction=[!SetVariable FirstY (Clamp(#FirstY#-16,-1250,8))][!UpdateMeter *][!Redraw] DynamicVariables=1
This change should support about 50 items using '-1250' as the low clamp value in the Mouse Scroll bangs of the new [BackgroundContainer] section. If more are desired, simply change that value to a lower value.
What this does is define a container area positioned below the header and above the grabbers approximately the same size as 8 items. It sets the first item position equal to 'FirstY' variable. When you scroll the mouse over this area, the value of 'FirstY' will increase/decrease. This will position [ItemWhat1] at a new Y position (relative to the container). All other items are relative to the Y position of [ItemWhat1], so they will also change.
GCalScroll.gif
EDIT: Added image to post
Spoiler contains these changes and a repeat of the 8 items to show the scroll action and as a reference...
I've tried the last few days to get this to work. I even copied and pasted the spoiler into the meter and it's still not scrolling. I'm wondering if it only scrolls with a mouse wheel? I am using a touchscreen laptop and it's not working on this end with touchscreen nor mouse pad.
-
- Rainmeter Sage
- Posts: 5407
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Noob Needing a Scrollbar
Yes, it works with a mouse wheel, but should also work on mouse pads and touch screens that simulate scrolling.tjhuntley wrote: ↑December 14th, 2019, 1:57 am I've tried the last few days to get this to work. I even copied and pasted the spoiler into the meter and it's still not scrolling. I'm wondering if it only scrolls with a mouse wheel? I am using a touchscreen laptop and it's not working on this end with touchscreen nor mouse pad.
Did you enable the scrolling feature on your mouse pad?
Usually scrolling can be achieved on most touch screen and by using 2 fingers on mouse pads.
Some pads use single fingers on the edges to scroll.
I have a Win 10 tablet I will test with tomorrow, but the solution will vary based on how your tablet/mouse pad hardware function.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 186
- Joined: May 27th, 2012, 5:16 am
Re: Noob Needing a Scrollbar
I've coded a skin that has a working scrolling function. If you want to take a look, here's the link.
AsperiaSuite\Gamehall\Tiles\GameScreen1-Tiles.ini is the skin with the scrolling function.
Although I highly recommend replacing AsperiaSuite\Gamehall\Tiles\GameScreen1-Tiles.ini for this one: https://pastebin.com/C1K6VvTL
It has better performance and also has a limiter on mousescroll inputs. An issue I ran into while using the mouse scroll was that scroll inputs kept being registered into rainmeter even despite the X position reaching its both limits. So people in here helped me write a limiter that would prevent that issue
Hope this helps!
AsperiaSuite\Gamehall\Tiles\GameScreen1-Tiles.ini is the skin with the scrolling function.
Although I highly recommend replacing AsperiaSuite\Gamehall\Tiles\GameScreen1-Tiles.ini for this one: https://pastebin.com/C1K6VvTL
It has better performance and also has a limiter on mousescroll inputs. An issue I ran into while using the mouse scroll was that scroll inputs kept being registered into rainmeter even despite the X position reaching its both limits. So people in here helped me write a limiter that would prevent that issue
Code: Select all
[StopMover]
Measure=Calc
Formula=(#ATX#)
UpdateDivider=-1
IfCondition=StopMover > 21
IfTrueAction=[!CommandMeasure MeasureMover "Stop 1"][!DisableMouseAction Rainmeter "MouseScrollUpAction"][!Update]
IfFalseAction=[!EnableMouseAction Rainmeter "MouseScrollUpAction"][!Update]
IfCondition2=StopMover <= #Limit2#
IfTrueAction2=[!CommandMeasure MeasureMover "Stop 2"][!DisableMouseAction Rainmeter "MouseScrollDownAction"][!Update]
IfFalseAction2=[!EnableMouseAction Rainmeter "MouseScrollDownAction"][!Update]
DynamicVariables=1
-
- Rainmeter Sage
- Posts: 16195
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Noob Needing a Scrollbar
Ok, I downloaded and installed the package. The AsperiaSuite\FirstTime\FirstTime.ini skin is loaded. But if I click the Ok, Cool! button, the skin is unloaded. According to Manage Rainmeter two skins are loaded (AsperiaSuite\Gamehall\Toggle\toggle.ini and AsperiaSuite\Loadbar\ActionTimer - Rectangle.ini), and I see an arrow on the right side of the screen, which opens a panel. But if I load the AsperiaSuite\Gamehall\Tiles\GameScreen1-Tiles.ini skin, nothing appears on the screen. Me at least don't see anything. Am I missing something?Krainz wrote: ↑December 14th, 2019, 4:52 pm I've coded a skin that has a working scrolling function. If you want to take a look, here's the link.
AsperiaSuite\Gamehall\Tiles\GameScreen1-Tiles.ini is the skin with the scrolling function.
A description of what we should see and what should go on, would be good.
At least for me it's not clear at all.
-
- Posts: 186
- Joined: May 27th, 2012, 5:16 am
Re: Noob Needing a Scrollbar
If toggle.ini is loaded, try pressing F6
if nothing shows up you might need to configure a specific folder in the settings menu. (click the settings button in the sidebar)
You'll need more than six files (ideally shortcuts) in that folder for the scrolling function to appear.
if nothing shows up you might need to configure a specific folder in the settings menu. (click the settings button in the sidebar)
You'll need more than six files (ideally shortcuts) in that folder for the scrolling function to appear.
-
- Rainmeter Sage
- Posts: 16195
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Noob Needing a Scrollbar
Ok, now I got working the scrolling. Now what is the issue with it? Is it fixed? Because:Krainz wrote: ↑December 14th, 2019, 9:24 pm If toggle.ini is loaded, try pressing F6
if nothing shows up you might need to configure a specific folder in the settings menu. (click the settings button in the sidebar)
You'll need more than six files (ideally shortcuts) in that folder for the scrolling function to appear.
-
- Posts: 186
- Joined: May 27th, 2012, 5:16 am
Re: Noob Needing a Scrollbar
It is fixed with the pastebin version of GameScreen1-Tiles.ini
If you use the package version, try scrolling a lot after reaching the limit, and then scrolling to the opposite side right in the middle of it.
The mouse scroll inputs will lag out and behave badly
But with the fixed pastebin version, the scroll immediately goes to the opposite side, as intended, since the accumulating scrolls beyond limit shouldn't register
-
- Rainmeter Sage
- Posts: 16195
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Noob Needing a Scrollbar
Not sure what you mean by "pastebin version", but if fixed, it's good, I think.
-
- Posts: 186
- Joined: May 27th, 2012, 5:16 am
Re: Noob Needing a Scrollbar
I posted a pastebin link for an updated version of GameScreen1-Tiles.ini in the same post of my package file.
The default file in the package file is supposed to be behaving improperly
The default file in the package file is supposed to be behaving improperly