It is currently April 19th, 2024, 2:21 am
Noob Needing a Scrollbar
-
- Posts: 17
- Joined: December 2nd, 2019, 3:10 pm
Noob Needing a Scrollbar
Apologies in advance for not knowing any script for rainmeter. I searched for a widget that would work with Google Sheets and came up empty. (If anyone knows of one, please let me know.) However, I found one that works with google calendar. So I am sending info to calendar then to rainmeter. I have my info displayed on my desktop now but I need 50 lines and it only allows 8 or it stretches and looks horrible and covers up other information. All I need is a scrollbar and a way to keep it from stretching. Is this possible? Also, if you provide a code, please let me know where to drop it into my existing ini. Thanks in advance and if anyone needs help with google sheets formulas, I am your guy.
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Noob Needing a Scrollbar
Which is the skin you found? First post a link please.tjhuntley wrote: ↑December 2nd, 2019, 4:12 pm However, I found one that works with google calendar. So I am sending info to calendar then to rainmeter. I have my info displayed on my desktop now but I need 50 lines and it only allows 8 or it stretches and looks horrible and covers up other information.
-
- Posts: 17
- Joined: December 2nd, 2019, 3:10 pm
Re: Noob Needing a Scrollbar
Here is the ONLY Google Calendar Widget I have found: https://visualskins.com/skin/google-calendar
-
- Posts: 17
- Joined: December 2nd, 2019, 3:10 pm
Re: Noob Needing a Scrollbar
Here is a screenshot of it if it helps. I was able to format everything to my satisfaction but I need to have at least 42 more lines. After adding them, it looks stretched out so I really need a scrollbar or rolling text os something like that.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 134
- Joined: June 30th, 2014, 8:44 am
Re: Noob Needing a Scrollbar
I have a "scrollbar" in this skin.
You can't drag the scrollbar around, but it moves as you scroll with the mousewheel.
It's a reasonably simple skin, but the basic overview is as follows;
You can't drag the scrollbar around, but it moves as you scroll with the mousewheel.
It's a reasonably simple skin, but the basic overview is as follows;
- The [Container] meter is the skin's bounding box, basically. The different configs get drawn in this and everything drawn outside the container is just culled.
- The [Show] meter is all of the configs. I use a #CRLF# character between each line to make it draw on a new line, but you could just have multiple meters and have their Y values all based on a variable with a few small changes.
- When we scroll up/down we move the [Show] meter down/up, making sure to not let it go up/down too far and disappear.
- The scrollbar's drawn in a separate container and the y value + height are determined based on the y value + height of the [Show] meter.
-
- Posts: 943
- Joined: May 7th, 2016, 7:32 am
Re: Noob Needing a Scrollbar
NOICEYamajac wrote: ↑December 3rd, 2019, 3:49 am I have a "scrollbar" in this skin.
You can't drag the scrollbar around, but it moves as you scroll with the mousewheel.
It's a reasonably simple skin, but the basic overview is as follows;
- The [Container] meter is the skin's bounding box, basically. The different configs get drawn in this and everything drawn outside the container is just culled.
- The [Show] meter is all of the configs. I use a #CRLF# character between each line to make it draw on a new line, but you could just have multiple meters and have their Y values all based on a variable with a few small changes.
- When we scroll up/down we move the [Show] meter down/up, making sure to not let it go up/down too far and disappear.
- The scrollbar's drawn in a separate container and the y value + height are determined based on the y value + height of the [Show] meter.
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: 908
- Joined: December 30th, 2015, 9:47 am
Re: Noob Needing a Scrollbar
I think Rainmeter needs a new meter "TextBox" to handle long text with real scroll bars...
-
- Posts: 17
- Joined: December 2nd, 2019, 3:10 pm
Re: Noob Needing a Scrollbar
Hey, thanks! This is exatly what I am needing. However, I cannot get it to work with the other Rainmeter where I am pulling in the info from google calendar. I know this sounds like a dumb question to most of you, but I have never combined two widgets before. How do I take the code from the scrollbar and place it into (and where) the code for the calendar widget?Yamajac wrote: ↑December 3rd, 2019, 3:49 am I have a "scrollbar" in this skin.
You can't drag the scrollbar around, but it moves as you scroll with the mousewheel.
It's a reasonably simple skin, but the basic overview is as follows;
- The [Container] meter is the skin's bounding box, basically. The different configs get drawn in this and everything drawn outside the container is just culled.
- The [Show] meter is all of the configs. I use a #CRLF# character between each line to make it draw on a new line, but you could just have multiple meters and have their Y values all based on a variable with a few small changes.
- When we scroll up/down we move the [Show] meter down/up, making sure to not let it go up/down too far and disappear.
- The scrollbar's drawn in a separate container and the y value + height are determined based on the y value + height of the [Show] meter.
-
- Rainmeter Sage
- Posts: 5391
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Noob Needing a Scrollbar
Scrolling may be something I look at adding, but in the meantime you can achieve it by making these changes to Gcalendar.initjhuntley wrote: ↑December 3rd, 2019, 12:12 pm Hey, thanks! This is exatly what I am needing. However, I cannot get it to work with the other Rainmeter where I am pulling in the info from google calendar. I know this sounds like a dumb question to most of you, but I have never combined two widgets before. How do I take the code from the scrollbar and place it into (and where) the code for the calendar widget?
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.
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. 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...
You do not have the required permissions to view the files attached to this post.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 17
- Joined: December 2nd, 2019, 3:10 pm
Re: Noob Needing a Scrollbar
Thanks for taking the time to post this. This will work perfectly for me if I can get it to work. I think it's not working correctly due to some modifications I made within the skin. Also, it could be because I currently have 3 items in this feed perhaps? It changes every few hours and ranges from 0 to 50. Not sure if that's the reason or not.