473,324 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Custom panel

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
3 1647
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
2
by: Novice | last post by:
I can't seem to get my Custom WebControl to output a button whose click event is associated with a particular method. Here is the code I have right now that contains a panel and there is a...
1
by: Chris Newby | last post by:
I have a custom control that derives from the WebControls.Panel class. In a given ASPX document, I have an instance of my custom control with ID set to "MyControl". Then I put a...
2
by: topdawg147 | last post by:
I'm trying to build a custom control that includes a panel control on it. However, in design-time when I drag a new control (e.g. a textbox, etc) into the panel, it's not added in the panel--just...
3
by: Charles Zhang | last post by:
I want to create a simple server control that does thing like: <Mc:CollapsibleControl TitlePanelID="panel1" BodyPanelID="Panel2"> <asp:Panel ID="panel1"> ... </asp:Panel> <asp:Panel...
0
by: Walter | last post by:
Hi, can someone please help me with my custom control viewstate problem....I haven't slept for hours trying to get this fixed. I am making two custom controls which will be included on a single...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
2
by: Olorin | last post by:
I'm encountering some weird behavior with the ClientID property. Let's see if I can give you enough info and if anyone has ideas/suggestions. I'm working in ASP.NET 2.0. I have a Web Project with...
4
by: Jimmy | last post by:
hi, all I'm having a problem with creating custom events in wxpython. I have a class A handling some data processing work and another class B of GUI matter. I need GUI to display information...
2
tranc3d
by: tranc3d | last post by:
Hello, I have a custom panel in my project (this one: http://www.codeproject.com/KB/graphics/fastimagedrawing.aspx) with a custom paint event ( protected override void OnPaint(PaintEventArgs pe)...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.