473,385 Members | 1,925 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,385 software developers and data experts.

Slow repaint problem

Hello,

I realize this is probably a very ambiguous question but I
don't know enough about the way everything works to ask it
intelligently. I have a 3rd party application that can be
installed as a control. It's purpose is to provide
generic x-y coordinate 2D line graphs. It's actually
really a neat and versatile application. I have a dialog
that has 8 of these graphs on it. Whenever I drag another
window over it, then drag it back off, the redraw of the
graphs takes a good 5 seconds. You can actually see it
redrawing all the axes, tick marks, and labels. I have a
2.7GHz system and I've never seen this problem with any
other application. I have a similar Java application and
the redraw is so quick you can't see it happen. Does this
behaviour mean anything obvious to any of you? If so,
please explain and possibly tell me how I can remedy the
problem. Someone told me the application should be
greating a bitmap then telling the system to draw the
bitmap rather than whatever it's doing now. I do have the
source code.

Thanks,
Ray Mitchell
Nov 15 '05 #1
1 1671
First, you should try this on another machine to see if this is something to
do with a slow video memory or the way the video memory is accessed.

Second, You can try and make the control do "double-buffering" to minimize
flicker during re-draw (this actually internally draws onto a bitmap buffer
and blasts it to the screen, instead of directly drawing on the screen)

-vJ
"Ray Mitchell" <Ra***************@MeanOldTeacher.com> wrote in message
news:03****************************@phx.gbl...
Hello,

I realize this is probably a very ambiguous question but I
don't know enough about the way everything works to ask it
intelligently. I have a 3rd party application that can be
installed as a control. It's purpose is to provide
generic x-y coordinate 2D line graphs. It's actually
really a neat and versatile application. I have a dialog
that has 8 of these graphs on it. Whenever I drag another
window over it, then drag it back off, the redraw of the
graphs takes a good 5 seconds. You can actually see it
redrawing all the axes, tick marks, and labels. I have a
2.7GHz system and I've never seen this problem with any
other application. I have a similar Java application and
the redraw is so quick you can't see it happen. Does this
behaviour mean anything obvious to any of you? If so,
please explain and possibly tell me how I can remedy the
problem. Someone told me the application should be
greating a bitmap then telling the system to draw the
bitmap rather than whatever it's doing now. I do have the
source code.

Thanks,
Ray Mitchell

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Ike | last post by:
I changing the size of frames dynamically in a page (I am restricted in that I cannot perform a reload of the content of any of the frames). In MSIE, when I resize the frames, thinks repaint...
2
by: Joe A | last post by:
I'm using Access 2002 on Windows XP PC, 500 megs ram, Front end/back end app. I have a simple form that draws a thermometer to indicate progress of code that is running. The thermometer form...
5
by: Alien | last post by:
I have a hex editor-type class that extends UserControl and paints its data to a PictureBox. Basically the problem is that repainting it takes usually between 60 and 80ms, which may seem pretty...
2
by: Joe Stateson | last post by:
Not sure what is going on. I have a treeview of an XmlDataSource with cacheing enabled. With only a few nodes there is no problem on a postback, the treeview is repainted immediately. With a lot...
4
by: rubyhcurry | last post by:
Hello, I have a small application which acts like a wizard with 5 steps. I use a tab control, and 'back' and 'next' buttons to switch between the 5 tabs (1 tab page for each step). The...
4
by: thesti | last post by:
Hi, i have problem with a JPanel in my JInternalFrame. it's like a maze game. after the game finished, i want to display game's statistic in the same panel i draw the tiles of the maze. but...
0
by: 123456mmmmmm | last post by:
Hi, I have a problem with Repaint my control. At first my control Create correctly. But with every changes like move scroll or anythings else my contrlo will be repaint. How can I avoid repainting...
4
by: drexlin | last post by:
Hi, I hope this is the correct place to post questions about visual c++ 6.0. If not, sorry. Anyway, the program I am working on takes messages from another computer and prints them on the screen....
0
by: milkay | last post by:
<I have code that uses 2 images> the program creates a window and then when u press play, it removes all components in the container. then, i add a NewPanel object. i add mouse listeners and all...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...

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.