Bug SS-208
1 vote

[DEV] RegionHolder FixedLayout vs disable evaluation

Created by Davide on 8/29/2014 10:46 PM Last Updated by Davide on 5/8/2015 2:06 AM
%
 (hrs)
Logged: 0   (hrs)

 Description

When FixedLayout is set to true and the evaluation is disabled, no disabled placeholder is displayed in the top-right corner of the region.

    Davide (Friday, May 8, 2015 2:06 AM) #

Analisys & workarounds:

- a marker can be painted in the canvas when the canv.Evaluable property is set from the RegionHolder

available workaround: set this.canv.Evaluable = this.Evaluable; inside the RegionHolder OnPaint(...)

however when then canv.Evaluable property is set to false, the disabled marker seems small (probably just painted in the canvas out of the bounds)

 

The better workaround is to leave untouched the canv.Evaluable and paint the marker in the RegionHolder OnPaint(...)

if (!this.Evaluable){ e.Graphics.FillRectangle(Brushes.Black, e.ClipRectangle.Right - 4, e.ClipRectangle.Y - 2, 6, 6); }