my app has a backdrop that is not white (it’s a pale graduated grey)
most of the controls have a transparent option, and they sit nicely
checkbox seems to have a white “ghost” around it
I have set the width to 16 and use a label for the text part
how can I get rid of the horrible white ghost?
thanks
When I ran in the same issue some time ago, then I received the answer here that setting a custom backdrop would be non-standard and discouraged by Microsoft …
So I wrote my own custom checkbox, just for Windows. Similar issue with PushButtons : on Windows I use Einhugur PictureButtons instead.
[quote=93541:@Oliver Osswald]When I ran in the same issue some time ago, then I received the answer here that setting a custom backdrop would be non-standard and discouraged by Microsoft …
So I wrote my own custom checkbox, just for Windows. Similar issue with PushButtons : on Windows I use Einhugur PictureButtons instead.[/quote]
I had a bad feeling that would be the answer
sigh
I don’t know if this is actually a good idea, but it looks like making the checkbox 13x13 works correctly (instead of 16x16). I don’t know if it will be correct on all versions, though.
LOL - actually, it only looked awful in design mode until I ran it, then when I got back to the IDE it looked good. I’m not sure what’s going on there.
I’m not 100% sure, but back in the RealStudio days, I believe I had used a container control with a canvas and an offscreen checkbox. The canvas transferred all events to the checkbox, which was drawn into the canvas. I don’t think that the checkbox drawn into the canvas had the same issues when overlaid on a non-standard background.
They work fine except for one issue I have never been able to get around. In special instances when I need this, if you place them to close to each other, they flicker when the mouse cursor leaves or enters the control (I think it redraws and dirtys the other control which then redraws). Have you seen this or have a workaround?