[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: SWT Shell with rounded corners

Probably, you add a listener to the Paint event of the shell and call drawImage method there. There is a drawImage version with more parameters, which resizes the image, put the original image size and the shell size into the parameters. But this will resize the whole image, all shapes on it will appear smaller or larger. You probably need to cut the background into small images and draw them without resizing to the proper corner of the shell...

Viliam

Monica wrote / napísal(a):
Hi Viliam,
Thanks for your response. Yes I think the background image would work but I have a little problem.
What I did for now is the following: I drew (manually) a image that has a black border as I need it. But my dialogs are of different sizes and the image I drew is of fix size. Is there a way of resizing the image with the resizing of the shell?
I hope I am making sense.
Thanks!