09-25-2012 11:21 AM
The color of classic flat circle decorations are not solid; pixels of the background color show through.
The flat frame and rectangle decorations are totally solid, just circles have the problem.
Is there a way to make the circles completely solid in color or were they designed this way for visual effect?
Scott T
09-25-2012 01:51 PM
The Circle decoration should be opaque. I am not able to reproduce any background color showing through. Do you have a screenshot?
What version of CVI are you using?
09-25-2012 02:31 PM
May not be the best picture, but you can see the circle contains black dots, while the rectangle sitting on top is solid without black dots.
I'm using the latest CVI 2012 DS3, but this effect goes back to at least 6.0
As a follow up question, is there a way to increase the thickness of the circle outline?
09-25-2012 03:17 PM
09-25-2012 03:25 PM
That's correct, it's the flat round frame. Sorry for any confusion.
10-05-2012 01:04 AM
I have just tried and found that also on Win XP the frame is not solid but speckled (CVI2012)
10-05-2012 10:57 AM
I have filed a bug and you can track it with Known Issue ID 373393.
Wolfgang, you mentioned that you did not see this in previous versions? I can't find a version/OS combo that does not reproduce this. I went back to 6.0 with Windows XP.
As a workaround, you can use a Canvas control to draw the frame. Set the background color to transparent, set the pen width and color, then draw an oval. Try the following code:
SetCtrlAttribute (panelHandle, PANEL_CANVAS, ATTR_PICT_BGCOLOR, VAL_TRANSPARENT); SetCtrlAttribute(panelHandle, PANEL_CANVAS, ATTR_PEN_WIDTH, 4); SetCtrlAttribute (panelHandle, PANEL_CANVAS, ATTR_PEN_COLOR, VAL_RED); CanvasDrawOval (panelHandle, PANEL_CANVAS, MakeRect(0,0, 100, 100), VAL_DRAW_FRAME);
10-05-2012 10:59 AM - edited 10-05-2012 11:03 AM
Hi,
my phrase of 'didn't notice it earlier' was meant to express that I never realized it before... not that it was working properly before - sorry for the misleading wording... (it's all too obvious that I am not a native speaker...)
...and thank you for the idea with the Canvas! Although I am not using circular decorations myself it might be a good idea to replace all decorations with a canvas which might provide more flexible shapes... I will try that later-on
08-09-2015 12:17 AM
Resolved in CVI2013