Niamita
10th June 2011, 07:33
Hi all
I am facing a big problem i am developing a application in which i draw buttons through paint on the fixed cordinate according to the desktop screen size, now the problem is that if screen size decreased then my all drawing should adjust according to the screen but it is not happening, what should i have to do for achieving the same either i should make a formula for height and width and then set drawing cordinates on the basis of screen size of device or is there any other way to do this.
Can with the help of spacer it can do so that according to the screen of corresponding device the painted button should adjust.
I draw the shape on frame and then this frame is set over the MainWindow.
I have to develop same application for tablet as well as for mobile.
Please help me.
I am facing a big problem i am developing a application in which i draw buttons through paint on the fixed cordinate according to the desktop screen size, now the problem is that if screen size decreased then my all drawing should adjust according to the screen but it is not happening, what should i have to do for achieving the same either i should make a formula for height and width and then set drawing cordinates on the basis of screen size of device or is there any other way to do this.
Can with the help of spacer it can do so that according to the screen of corresponding device the painted button should adjust.
I draw the shape on frame and then this frame is set over the MainWindow.
I have to develop same application for tablet as well as for mobile.
Please help me.