Hi Olaf,
When the cwProgressBar is in marquee mode the rendering of the marquee portion appears to be "off" a bit. See below:

I've traced this to the DrawUsedArea method:
Private Sub DrawUsedArea(CC As cCairoContext)
Dim ScaledValue As Double, StartX As Double
CC.SetLineWidth 0
ScaledValue = ((mValue - mMin) / (mMax - mMin)) * (mInternalW - 2.5)
If mStyle <> pg_Standard Then
StartX = ScaledValue - (mInternalW * MarqueeWidthPct)
End If
Cairo.Theme.DrawTo CC, W, thmTypeProgressFace, thmStateSolidColor, StartX, 0, ScaledValue - StartX, mInternalH, mBorderRadius
End Sub
In particular the StartX value is being calculated a -70 on my machine where ScaledValue = 0, mInternalW = 280, and MarqueeWidthPct = 0.25.
I'm not 100% sure what the goal of the code is there, leaving StartX at 0 seems to render "correctly" IMO:

Is there a good reason for the StartX = ScaledValue - (mInternalW * MarqueeWidthPct) line but the calculation is off for some displays/environments, or should we delete the whole If mStyle <> pg_Standard block?
Hi Olaf,
When the cwProgressBar is in marquee mode the rendering of the marquee portion appears to be "off" a bit. See below:
I've traced this to the DrawUsedArea method:
In particular the
StartXvalue is being calculated a-70on my machine whereScaledValue = 0,mInternalW = 280, andMarqueeWidthPct = 0.25.I'm not 100% sure what the goal of the code is there, leaving StartX at 0 seems to render "correctly" IMO:
Is there a good reason for the
StartX = ScaledValue - (mInternalW * MarqueeWidthPct)line but the calculation is off for some displays/environments, or should we delete the wholeIf mStyle <> pg_Standardblock?