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 3 1673
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.publi c.dotnet.framew ork.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
Actually, I can't find the newsgroup
"microsoft.publ ic.dotnet.frame work.drawing".
Is there a problem with asking about custom control problems in this group??
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP15.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.publi c.dotnet.framew ork.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
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@trndd c02... Actually, I can't find the newsgroup "microsoft.publ ic.dotnet.frame work.drawing".
Is there a problem with asking about custom control problems in this group??
"Cor Ligthert" <no************ @planet.nl> wrote in message news:%2******** ********@TK2MSF TNGP15.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.publi c.dotnet.framew ork.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 > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 provide an
open TD with a DIV in it for the content of this formlet. (The DIV is
for DHTML to hide and show the content)
I've created a web page showing step by step the two problems I'm
encountering. This problem is much easier to see than it...
|
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
button in that panel that should be associated with a event method - but it
isn't working:
protected override void Render(HtmlTextWriter output)
{
Panel panel = new Panel();
nextButton = new Button();
|
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 WebControls.TextBox control inside my custom control with ID
set to "MyTextBox".
When this page renderes, inspection of the HTML source shows that the Name
attribute of the input tag generated from MyTextBox is now actually
|
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 the overall
control.
* I do not want the entire user control to be a panel/container
control. I just want the panel part of it to work as expected.
Any suggestions?
|
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 ID="panel2">
...
</asp:Pane2>
| |
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 page. For
now, I will call them box1 and box2. Each box has a panel and will display a
list of link buttons on the panel.
When the page loads for the first time, box1 will call the database and
create a list of linkbuttons and each link button has...
|
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 accept other controls. The
control i drag drop on it becomes the child of my custom control's
parent form and not the child of my custom control. Then i added this
line
""
before my custom control class (i dont know what this line does). Now
|
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 a master page,
with a single ContentPlaceholder on it.
I have a page that uses that Master template, and is meant to place 2
controls of type Fred in the content placeholder. The .aspx for this
page goes like this:
....
|
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 when data in A is
updated.
I know cutom events in wxpython may work. But I found no material
paricularly
helpful :(
|
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) ). You set an image to the Image property of the custom panel, and it scrolls very smoothly through that image according to the value of the scrollbars, in an optimised way in the above OnPaint function.
Through the designer, i dropped this custom...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |