|Canvas with overlaid buttons speed problem [message #659739]
||Tue, 15 March 2011 12:59
| Dominic Hanlan
Registered: July 2009
I have an editor which as its main component has a canvas, I have added a paintlistener to this which draws an image (png) on the background.
So far so good.
As this is a "home page" I have placed buttons in a grid over the canvas. Originally the canvas was just a plain composite, but I want to brand the product with the image.
Now the problem is one of speed, as the screen is displayed, either initially or on resize, the image is resized correctly. The buttons in the forground though take about a half a second each to display!!!.
I have read several snippets about using canvas and painlistener to render the image, but the overlaying buttons are the issue.
I got the idea from another eclipse application I saw, unfortunately this is a commercial product and not open to discussion of implementation.
Any ideas, pointers???
Powered by FUDForum
. Page generated in 0.01996 seconds