X,Y Coodinates: Dos Windows and Dialog Windows
-
Hello, Can anyone tell me how the coordinate system works for a dialog window. Is the origin at the upper left of the Dialog window? I have an application that will require me to use X, Y coordinate data designed for a Dos window and apply it to a Dialog window, in a Dialog application. Also, can you open multiple Dos windows within a Dialog application??... if so it may make it easier for me to use the older style code. :) Jerry
-
Hello, Can anyone tell me how the coordinate system works for a dialog window. Is the origin at the upper left of the Dialog window? I have an application that will require me to use X, Y coordinate data designed for a Dos window and apply it to a Dialog window, in a Dialog application. Also, can you open multiple Dos windows within a Dialog application??... if so it may make it easier for me to use the older style code. :) Jerry
The Co-ordinate for the dialog window has its origin at the Left-Top corner of the dialog window(dialog box) As far as i understand u will have to convert the co-ordinates form Dos-window to Dialog Window. Opening multiple window ? i dont know what u mean Take care
Vikas Amin EATON PUNE
-
Hello, Can anyone tell me how the coordinate system works for a dialog window. Is the origin at the upper left of the Dialog window? I have an application that will require me to use X, Y coordinate data designed for a Dos window and apply it to a Dialog window, in a Dialog application. Also, can you open multiple Dos windows within a Dialog application??... if so it may make it easier for me to use the older style code. :) Jerry
jerry1211a wrote:
Also, can you open multiple Dos windows within a Dialog application??...
Yes, you can have more than one command-prompt window open at the same time.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Hello, Can anyone tell me how the coordinate system works for a dialog window. Is the origin at the upper left of the Dialog window? I have an application that will require me to use X, Y coordinate data designed for a Dos window and apply it to a Dialog window, in a Dialog application. Also, can you open multiple Dos windows within a Dialog application??... if so it may make it easier for me to use the older style code. :) Jerry
Hi Jerry This link is exactly what u want http://www.functionx.com/visualc/gdi/gdicoord.htm
Vikas Amin EATON PUNE