It is currently April 19th, 2024, 3:56 pm

Noob Needing a Scrollbar

Get help with creating, editing & fixing problems with skins
User avatar
Mor3bane
Posts: 943
Joined: May 7th, 2016, 7:32 am

Re: Noob Needing a Scrollbar

Post by Mor3bane »

Pardon me, for hijacking this thread but my question falls within the domain of this topic.
[EDIT: moved to a new thread]
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.
tjhuntley
Posts: 17
Joined: December 2nd, 2019, 3:10 pm

Re: Noob Needing a Scrollbar

Post by tjhuntley »

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.

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

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

Code: Select all

[Rainmeter]
MiddleMouseUpAction=!Refresh
LeftMouseDoubleClickAction=!ActivateConfig #CURRENTCONFIG#

[Variables]
;-----------------------
; FEEDS

; GoogleCalendar1=https://calendar.google.com/calendar/ical/.../full.ics
GoogleCalendar1=https://calendar.google.com/calendar/ical/en.usa%23holiday%40group.v.calendar.google.com/public/full.ics
GoogleCalendar2=https://calendar.google.com/calendar/ical/ht3jlfaac5lfd6263ulfh4tql8%40group.calendar.google.com/public/full.ics
GoogleCalendar3=https://calendar.google.com/calendar/ical/

;--------------------------------------------------------------------------------------------
; ENIGMA DARK

Color1=255,255,255
Color2=#Color1#,160
Color3=#Color1#,108
Color4=#Color1#,25
ColorLink=128,192,255
ColorLink2=#ColorLink#,217
ColorLink3=#ColorLink#,160
ColorBorder=192, 192, 192
ColorBorder2=#ColorBorder#, 128
ColorBorder3=#ColorBorder#, 92
ColorBorder4=#ColorBorder#, 64
ColorPanel=24,24,24
ColorPanel2=#ColorPanel#,128
ColorFilter=0,0,0
ColorFilter2=#ColorFilter#,192
ColorFilter3=#ColorFilter#,128
ColorEvent=255,0,0
ColorEvent2=#ColorEvent#,92
ColorTransparent=0,0,0,2
ColorImage=W

Size1=11
Size4=8
Size3=9
Size2=10
Font=Trebuchet MS
SkinBackgroundAlpha=100
HideBordersTop=1
HideBordersBottom=1

SidebarWidth=200
SidebarSpacingFixed=1
SidebarAlpha=128
SidebarImage=#@#Images\Sidebar\SidebarLeft.#ColorImage#.jpg
SecondSidebarImage=#@#Images\Sidebar\SidebarRight.#ColorImage#.jpg
FirstY=8

;-----------------------
; GENERAL

TriptychInterval=30
TriptychDisabled=0
ProcessInterval=5

SkinMouseOver=0
Reset=1
SwitcherInterval=30
SwitcherDisabled=0
SwitcherInterval=#TriptychInterval#
SwitcherAction=!CommandMeasure "MeasureScriptReader" "ShowNext()"
SwitcherDisabled=#TriptychDisabled#

GoogleCalendarWriteEvents=0
CurrentFeed=1

; 1~3 tabs
NumberOfTabs=2
; 1~8 items
NumOfItems=8
ReaderURL1=#GoogleCalendar1#?futureevents=true&singleevents=true&orderby=starttime&sortorder=a
ReaderURL2=#GoogleCalendar2#?futureevents=true&singleevents=true&orderby=starttime&sortorder=a
ReaderURL3=#GoogleCalendar3#?futureevents=true&singleevents=true&orderby=starttime&sortorder=a
ReaderUpdateRate=600
ReaderWriteEvents=#GoogleCalendarWriteEvents#
ReaderEventFile=#@#User\Calendars\GoogleCalendar1.xml|#@#User\Calendars\GoogleCalendar2.xml|#@#User\Calendars\GoogleCalendar3.xml

FeedTitle=Loading...
Item1Title=
Item2Title=
Item3Title=
Item4Title=
Item5Title=
Item6Title=
Item7Title=
Item8Title=
Item1Date=
Item2Date=
Item3Date=
Item4Date=
Item5Date=
Item6Date=
Item7Date=
Item8Date=

; WebParserSubstitute="<![CDATA[":"","]]>":"","/PRE&gt;":"","PRE&gt;":"","&nbsp;":" ","'s Facebook Notifications":"","Top Stories - Google ":""

; Alternate substitution
WebParserSubstitute="<![CDATA[":"","]]>":"","/PRE&gt;":"","PRE&gt;":"","&nbsp;":" ","'s Facebook Notifications":"","Top Stories - Google ":"","&quot;":'"',"&amp;":"&","&apos;":"'","&lt;":"<","&gt;":">","&nbsp;":" ","&iexcl;":"¡","&cent;":"¢","&pound;":"£","&curren;":"¤","&yen;":"¥","&brvbar;":"¦","&sect;":"§","&uml;":"¨","&copy;":"©","&ordf;":"ª","&laquo;":"«","&not;":"¬","&shy;":" ","&reg;":"®","&macr;":"¯","&deg;":"°","&plusmn;":"±","&sup2;":"²","&sup3;":"³","&acute;":"´","&micro;":"µ","&para;":"¶","&middot;":"·","&cedil;":"¸","&sup1;":"¹","&ordm;":"º","&raquo;":"»","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&iquest;":"¿","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&times;":"×","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&divide;":"÷","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&Alpha;":"?","&Beta;":"?","&Gamma;":"G","&Delta;":"?","&Epsilon;":"?","&Zeta;":"?","&Eta;":"?","&Theta;":"T","&Iota;":"?","&Kappa;":"?","&Lambda;":"?","&Mu;":"?","&Nu;":"?","&Xi;":"?","&Omicron;":"?","&Pi;":"?","&Rho;":"?","&Sigma;":"S","&Tau;":"?","&Upsilon;":"?","&Phi;":"F","&Chi;":"?","&Psi;":"?","&Omega;":"O","&alpha;":"a","&beta;":"ß","&gamma;":"?","&delta;":"d","&epsilon;":"e","&zeta;":"?","&eta;":"?","&theta;":"?","&iota;":"?","&kappa;":"?","&lambda;":"?","&mu;":"µ","&nu;":"?","&xi;":"?","&omicron;":"?","&pi;":"p","&rho;":"?","&sigmaf;":"?","&sigma;":"s","&tau;":"t","&upsilon;":"?","&phi;":"f","&chi;":"?","&psi;":"?","&omega;":"?","&thetasym;":"?","&upsih;":"?","&piv;":"?","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&zwnj;":" ","&zwj;":" ","&lrm;":" ","&rlm;":" ","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&hellip;":"…","&permil;":"‰","&prime;":"'","&Prime;":"?","&lsaquo;":"‹","&rsaquo;":"›","&oline;":"?","&frasl;":"/","&euro;":"€","&image;":"I","&weierp;":"P","&real;":"R","&trade;":"™","&alefsym;":"?","&larr;":"?","&uarr;":"?","&rarr;":"?","&darr;":"?","&harr;":"?","&crarr;":"?","&lArr;":"?","&uArr;":"?","&rArr;":"?","&dArr;":"?","&hArr;":"?","&forall;":"?","&part;":"?","&exist;":"?","&empty;":"Ø","&nabla;":"?","&isin;":"?","&notin;":"?","&ni;":"?","&prod;":"?","&sum;":"?","&minus;":"-","&lowast;":"*","&radic;":"v","&prop;":"?","&infin;":"8","&ang;":"?","&and;":"?","&or;":"?","&cap;":"n","&cup;":"?","&int;":"?","&there4;":"?","&sim;":"~","&cong;":"?","&asymp;":"˜","&ne;":"?","&equiv;":"=","&le;":"=","&ge;":"=","&sub;":"?","&sup;":"?","&nsub;":"?","&sube;":"?","&supe;":"?","&oplus;":"?","&otimes;":"?","&perp;":"?","&sdot;":"·","&vellip;":"?","&lceil;":"?","&rceil;":"?","&lfloor;":"?","&rfloor;":"?","&lang;":"<","&rang;":">","&loz;":"?","&spades;":"?","&clubs;":"?","&hearts;":"?","&diams;":"?"


;---------------------------------------------------------------------
; STYLES

[StyleReaderText]
X=12
Y=15r
H=14
W=(#SidebarWidth#-24)
ClipString=1
StringStyle=NORMAL
FontColor=#Color1#
FontSize=#Size4#
FontFace=#Font#
AntiAlias=1
ToolTipWidth=#SidebarWidth#
DynamicVariables=1
MouseOverAction=[!SetOption "#CURRENTSECTION#" "FontColor" "#ColorLink#"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" "FontColor" "#Color1#"][!UpdateMeter #CURRENTSECTION#][!Redraw]
Container=BackgroundContainer

[StyleReaderTextSubheading]
Y=16r
StringStyle=BOLD
Container=BackgroundContainer

[StyleReaderTextFirst]
Y=#FirstY#

[StyleReaderSubtext]
X=22
Y=14r
H=14
W=(#SidebarWidth#-34)
ClipString=1
StringStyle=NORMAL
FontColor=#Color2#
FontSize=#Size4#
FontFace=#Font#
AntiAlias=1
ToolTipWidth=#SidebarWidth#
DynamicVariables=1
Container=BackgroundContainer


;-----------------------
; GRABBERS

[StyleReaderGrabber]
X=R
Y=r
H=15
W=15
DynamicVariables=1

[StyleReaderGrabberFirst]
X=(#SidebarWidth#-(#NumberOfTabs#*15)-10)
Y=284

[StyleReaderGrabber0]
ImageName=#@#Images\Grabber.#ColorImage#.png
ImageAlpha=128
ToolTipWidth=#SidebarWidth#
ToolTipText=Click to switch to this page.

[StyleReaderGrabber1]
ImageName=#@#Images\GrabberActive.#ColorImage#.png

;---------------------------------------------------------------------
; MEASURES

;-----------------------

[MeasureScriptReader]
Measure=Script
ScriptFile="#@#Measures\Reader.lua"
MeasureName=MeasureFeed1
MinItems=#NumOfItems#
WriteEvents=#ReaderWriteEvents#
EventFile=#ReaderEventFile#
FinishAction=[!UpdateMeasureGroup "FeedData"][!UpdateMeterGroup "FeedData"][!Redraw][!SetVariable Reset 0]

[MeasureActivateTabs]
Measure=Script
ScriptFile=#@#Measures\Tabs.lua
UpdateDivider=-1
Type=Reader
TotalTabs=3

[MeasureFeed1]
Measure=Plugin
Plugin=WebParser
UpdateRate=#ReaderUpdateRate#
URL=#ReaderURL1#
RegExp=(?siU)(.*)$
DecodeCharacterReference=1
Substitute=#WebParserSubstitute#
FinishAction=!CommandMeasure MeasureScriptReader Refresh(1)

[MeasureFeed2]
Measure=Plugin
Plugin=WebParser
UpdateRate=#ReaderUpdateRate#
URL=#ReaderURL2#
RegExp=(?siU)(.*)$
DecodeCharacterReference=1
Substitute=#WebParserSubstitute#
FinishAction=!CommandMeasure MeasureScriptReader Refresh(2)
Group=Tab2
Disabled=1

[MeasureFeed3]
Measure=Plugin
Plugin=WebParser
UpdateRate=#ReaderUpdateRate#
URL=#ReaderURL3#
RegExp=(?siU)(.*)$
DecodeCharacterReference=1
Substitute=#WebParserSubstitute#
FinishAction=!CommandMeasure MeasureScriptReader Refresh(3)
Group=Tab3
Disabled=1

[MeasureActive1]
Measure=Calc
Formula=#CurrentFeed#=1
DynamicVariables=1
Group=FeedData | Tab2
Disabled=1

[MeasureActive2]
Measure=Calc
Formula=#CurrentFeed#=2
DynamicVariables=1
Group=FeedData | Tab2
Disabled=1

[MeasureActive3]
Measure=Calc
Formula=#CurrentFeed#=3
DynamicVariables=1
Group=FeedData | Tab3
Disabled=1

;---------------------------------------------------------------------
; METERS

[Background]
Meter=IMAGE
ImageName=#@#Images\SkinBackground.#ColorImage#.png
ScaleMargins=12,12,12,12
ImageAlpha=1
MouseOverAction=[!SetOption #CURRENTSECTION# ImageAlpha #SkinBackgroundAlpha#][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageAlpha 1][!UpdateMeter #CURRENTSECTION#][!Redraw]
W=#SidebarWidth#
H=(39 * #NumOfItems#)

[Border]
Meter=IMAGE
SolidColor=#ColorBorder4#
X=10
Y=5
W=(#SidebarWidth#-20)
H=1
Hidden=#HideBordersTop#

[Icon]
Meter=IMAGE
Group=FeedData
ImageName=#@#Images\Gcal.#ColorImage#.png
X=10
Y=15
W=25
H=25
LeftMouseUpAction=["#FeedLink#"]

[Title]
Meter=STRING
Group=FeedData
X=37
Y=20
H=15
W=(#SidebarWidth#-49)
ClipString=1
StringStyle=BOLD
FontColor=#Color1#
FontSize=#Size3#
FontFace=#Font#
AntiAlias=1
ToolTipWidth=#SidebarWidth#
DynamicVariables=1
Text=#FeedTitle#
LeftMouseUpAction=["#FeedLink#"]
ToolTipText=#FeedLink#

;-----------------------
; ITEMS

[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

[ItemWhat1]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading | StyleReaderTextFirst
Text=#Item1Title#
LeftMouseUpAction=["#Item1Link#"]

[ItemWhen1]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item1Date#

[ItemWhat2]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item2Title#
LeftMouseUpAction=["#Item2Link#"]

[ItemWhen2]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item2Date#

[ItemWhat3]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item3Title#
LeftMouseUpAction=["#Item3Link#"]

[ItemWhen3]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item3Date#

[ItemWhat4]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item4Title#
LeftMouseUpAction=["#Item4Link#"]

[ItemWhen4]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item4Date#

[ItemWhat5]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item5Title#
LeftMouseUpAction=["#Item5Link#"]

[ItemWhen5]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item5Date#

[ItemWhat6]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item6Title#
LeftMouseUpAction=["#Item6Link#"]

[ItemWhen6]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item6Date#

[ItemWhat7]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item7Title#
LeftMouseUpAction=["#Item7Link#"]


[ItemWhen7]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item7Date#

[ItemWhat8]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item8Title#
LeftMouseUpAction=["#Item8Link#"]

[ItemWhen8]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item8Date#

; ====================
[ItemWhat9]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item1Title#
LeftMouseUpAction=["#Item1Link#"]

[ItemWhen9]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item1Date#

[ItemWhat10]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item2Title#
LeftMouseUpAction=["#Item2Link#"]

[ItemWhen10]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item2Date#

[ItemWhat11]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item3Title#
LeftMouseUpAction=["#Item3Link#"]

[ItemWhen11]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item3Date#

[ItemWhat12]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item4Title#
LeftMouseUpAction=["#Item4Link#"]

[ItemWhen12]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item4Date#

[ItemWhat13]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item5Title#
LeftMouseUpAction=["#Item5Link#"]

[ItemWhen13]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item5Date#

[ItemWhat14]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item6Title#
LeftMouseUpAction=["#Item6Link#"]

[ItemWhen14]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item6Date#

[ItemWhat15]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item7Title#
LeftMouseUpAction=["#Item7Link#"]

[ItemWhen15]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item7Date#

[ItemWhat16]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderText | StyleReaderTextSubheading
Text=#Item8Title#
LeftMouseUpAction=["#Item8Link#"]

[ItemWhen16]
Meter=STRING
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=#Item8Date#

;-----------------------
; BORDER & GRABBERS

[BorderBottom]
Meter=IMAGE
SolidColor=#ColorBorder4#
X=10
Y=25r
W=(#SidebarWidth#-26)
H=1
Hidden=#HideBordersBottom#

[Grabber1]
Meter=IMAGE
MeterStyle=StyleReaderGrabber | StyleReaderGrabber[MeasureActive1] | StyleReaderGrabberFirst
LeftMouseUpAction=!CommandMeasure "MeasureScriptReader" "Show(1)"
Group=FeedData | Tab2
Hidden=1

[Grabber2]
Meter=IMAGE
MeterStyle=StyleReaderGrabber | StyleReaderGrabber[MeasureActive2]
LeftMouseUpAction=!CommandMeasure "MeasureScriptReader" "Show(2)"
Group=FeedData | Tab2
Hidden=1

[Grabber3]
Meter=IMAGE
MeterStyle=StyleReaderGrabber | StyleReaderGrabber[MeasureActive3]
LeftMouseUpAction=!CommandMeasure "MeasureScriptReader" "Show(3)"
Group=FeedData | Tab3
Hidden=1

[Switcher]
Measure=CALC
Formula=((Switcher+1-#SkinMouseOver#) % (#SwitcherInterval#+2)) * #Reset#
IfBelowValue=1
IfBelowAction=!SetVariable Reset 1
IfAboveValue=#SwitcherInterval#
IfAboveAction=#SwitcherAction#
DynamicVariables=1
Disabled=#SwitcherDisabled#

;---------------------------------------------------------------------
; METADATA

[Metadata]
Name=Google Calendar
Information=Shows upcoming events on your Google Calendars in rotating tabs. Based on Enigma GCal by Kaelri
Version=5.0
License=Creative Commons BY-NC-SA 3.0



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.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5396
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Noob Needing a Scrollbar

Post by eclectic-tech »

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.
Yes, it works with a mouse wheel, but should also work on mouse pads and touch screens that simulate scrolling.
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.
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: Noob Needing a Scrollbar

Post by Krainz »

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

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
Hope this helps!
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Noob Needing a Scrollbar

Post by balala »

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.
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?
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.
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: Noob Needing a Scrollbar

Post by Krainz »

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.
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Noob Needing a Scrollbar

Post by balala »

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.
Ok, now I got working the scrolling. Now what is the issue with it? Is it fixed? Because:
Krainz wrote: December 14th, 2019, 4:52 pm 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
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: Noob Needing a Scrollbar

Post by Krainz »

balala wrote: December 15th, 2019, 6:14 pm Ok, now I got working the scrolling. Now what is the issue with it? Is it fixed? Because:
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
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Noob Needing a Scrollbar

Post by balala »

Krainz wrote: December 15th, 2019, 7:35 pm It is fixed with the pastebin version of GameScreen1-Tiles.ini
Not sure what you mean by "pastebin version", but if fixed, it's good, I think.
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: Noob Needing a Scrollbar

Post by Krainz »

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