Re: Making a panel and its contents transparent



On Feb 28, 5:23 am, "Kaish" <siriainjohn...@xxxxxxxxx> wrote:
...
I'm coding an app that draws a little circle every time a user clicks
the mouse. This is fine and working. However, I want to be able to
toggle all the circles between visible and invisible.

The best way I can think of is to create one big panel and put all my
other panels containing their components inside it, then make a
checkbox that sets that big panel's opacity to false. I do this, but
the panel remains exactly the same.

I thought it might have been a repaint() problem, so I tried making
the panel not opaque at initialization, but all the components inside
still remain visible.

Am I missing something obvious?

The Opacity of the panel does not apply
to things inside it, only things *behind*
it.

Andrew T.

.



Relevant Pages

  • Re: translucent panel...
    ... the opacity is really only available to top level windows. ... solution using GDI+ to solve translucent panel problem is an optional ... if there's a button behind the "translucent" ... panel, the button which should be visible is not visible actually. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • windows forms - transparence question
    ... i'm using .net framework 2.0 and i need a panel to be 50% ... transparent/transluctant. ... i was desperately looking for an opacity ... property with no luck. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Making panels transparent?
    ... > Why don't you create a image set the opacity you want then set the ... The background in that case would be the panel itself, ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Tube Equaliser/Tone Control
    ... across a 200mm front panel looks decidedly odd. ... there would only be two knobs in any case. ... A rotary switch could be up to 24 positions, but a toggle can have only ... 3dB shelf at 5kHz ...
    (rec.audio.tubes)
  • Re: Tube Equaliser/Tone Control
    ... across a 200mm front panel looks decidedly odd. ... It's not clear to me how the rotary switch vs. toggle switch question ... there would only be two knobs in any case. ... A rotary switch could be up to 24 positions, but a toggle can have only ...
    (rec.audio.tubes)