WINDOW TO DIALOG SCREEN CO-ORDINATES CONVERSION

WINDOW TO DIALOG SCREEN CO-ORDINATES CONVERSION

Postby RAMESHBABU » Tue Dec 27, 2005 11:43 am

Can anybody advise me how to calculate the Dialog co-ordinates from a
window.

Originally I had a Child window painted in the client area of the MDI Window, with some controls on it. When ever the user changes the screen resolution, the child windoow is being adjusted automatically.

As per my new requirement I have decided to change child window to a
modal dialog. When I continue to use the child window coordinates for the dialog, the position and the size of the dialog is going beyond the client area of the MDI Window.

Can someone guide me how to convert the window coordinates to
dialog which should adjust automatically based on the resolution of the
windows.

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 625
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: WINDOW TO DIALOG SCREEN CO-ORDINATES CONVERSION

Postby ask » Tue Dec 27, 2005 11:54 am

RAMESHBABU wrote:Can anybody advise me how to calculate the Dialog co-ordinates from a
window.

Originally I had a Child window painted in the client area of the MDI Window, with some controls on it. When ever the user changes the screen resolution, the child windoow is being adjusted automatically.

As per my new requirement I have decided to change child window to a
modal dialog. When I continue to use the child window coordinates for the dialog, the position and the size of the dialog is going beyond the client area of the MDI Window.

Can someone guide me how to convert the window coordinates to
dialog which should adjust automatically based on the resolution of the
windows.

- Ramesh Babu P


To have the same output with dialog as you have with window devide window width,height ,ntop,nleft by 2 (and all the objects inside it).


regands
A.S.K
ask
 
Posts: 99
Joined: Wed Nov 02, 2005 10:40 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 51 guests