By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,314 Members | 1,793 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,314 IT Pros & Developers. It's quick & easy.

Custom panel

P: n/a
I'm having a problem with a custom-painted panel. Upon resize, it's
invalidated, and redrawn properly. It's also double-buffered so there's no
flicker.

When I resize the control during runtime, it paints fine. However, when the
control is docked, and it's parent is expanded, the child isn't properly
redrawn. It's being invalidated and OnPaint is properly called, but
sometimes the repaint doesn't actually take effect. If you gradually expand
the parent container, the custom control's border fills in the space. If
the window is then dragged out of view and back in, it repains fine.

Any thoughts or help?

Thanks in advance!

--
Bill
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Bill,

Painting is not really something I like as questions. However there is a
newsgroup where you mostly get good answers on that kind of questions.

microsoft.public.dotnet.framework.drawing

In your situation and I could not find the answer myself, than I would try
it there

Cor

"Bill Merrill" <bi**@soniccube.com>

....
I'm having a problem with a custom-painted panel. Upon resize, it's
invalidated, and redrawn properly. It's also double-buffered so there's
no
flicker.

When I resize the control during runtime, it paints fine. However, when
the
control is docked, and it's parent is expanded, the child isn't properly
redrawn. It's being invalidated and OnPaint is properly called, but
sometimes the repaint doesn't actually take effect. If you gradually
expand
the parent container, the custom control's border fills in the space. If
the window is then dragged out of view and back in, it repains fine.

Any thoughts or help?

Thanks in advance!

--
Bill

Jul 21 '05 #2

P: n/a
Actually, I can't find the newsgroup
"microsoft.public.dotnet.framework.drawing".

Is there a problem with asking about custom control problems in this group??

"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Bill,

Painting is not really something I like as questions. However there is a
newsgroup where you mostly get good answers on that kind of questions.

microsoft.public.dotnet.framework.drawing

In your situation and I could not find the answer myself, than I would try
it there

Cor

"Bill Merrill" <bi**@soniccube.com>

...
I'm having a problem with a custom-painted panel. Upon resize, it's
invalidated, and redrawn properly. It's also double-buffered so there's
no
flicker.

When I resize the control during runtime, it paints fine. However, when
the
control is docked, and it's parent is expanded, the child isn't properly
redrawn. It's being invalidated and OnPaint is properly called, but
sometimes the repaint doesn't actually take effect. If you gradually
expand
the parent container, the custom control's border fills in the space. If the window is then dragged out of view and back in, it repains fine.

Any thoughts or help?

Thanks in advance!

--
Bill


Jul 21 '05 #3

P: n/a
Bill,

There is not any problem for me whatever you ask here, I only tell you that
you have probably a better/quicker change to get an answer on your question
in that newsgroup.

Drawing
news://msnews.microsoft.com/microsof...mework.drawing

Web interface:
http://communities2.microsoft.com/co...mework.drawing

I hope that these links help?

Cor
"Bill Merrill" <bi**@soniccube.com> schreef in bericht
news:Txcvd.4113$lZ6.2244@trnddc02...
Actually, I can't find the newsgroup
"microsoft.public.dotnet.framework.drawing".

Is there a problem with asking about custom control problems in this
group??

"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Bill,

Painting is not really something I like as questions. However there is a
newsgroup where you mostly get good answers on that kind of questions.

microsoft.public.dotnet.framework.drawing

In your situation and I could not find the answer myself, than I would
try
it there

Cor

"Bill Merrill" <bi**@soniccube.com>

...
> I'm having a problem with a custom-painted panel. Upon resize, it's
> invalidated, and redrawn properly. It's also double-buffered so
> there's
> no
> flicker.
>
> When I resize the control during runtime, it paints fine. However,
> when
> the
> control is docked, and it's parent is expanded, the child isn't
> properly
> redrawn. It's being invalidated and OnPaint is properly called, but
> sometimes the repaint doesn't actually take effect. If you gradually
> expand
> the parent container, the custom control's border fills in the space. If > the window is then dragged out of view and back in, it repains fine.
>
> Any thoughts or help?
>
> Thanks in advance!
>
> --
> Bill
>
>



Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.