Hello,
I've got a button that always defaults to the bottom center of the window and I want it in the top left corner of the window. Can someone help? Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You must specify where do you want the button when you write your .rc file and you define the button's control. You must enter the coordinates for the button, for example:
CONTROL "OK", IDOK, "BUTTON", 50, 50, 30,10
The two numbers '50' are the coordinates x and y, therefore 'x' is the location from left to right and 'y' the location from up to down
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I've got a button that always defaults to the bottom center of the window and I want it in the top left corner of the window. Can someone help? Thanks!
I understand that, but how do I know what the ID of my button is?
You must specify where do you want the button when you write your .rc file and you define the button's control. You must enter the coordinates for the button, for example:
CONTROL "OK", IDOK, "BUTTON", 50, 50, 30,10
The two numbers '50' are the coordinates x and y, therefore 'x' is the location from left to right and 'y' the location from up to down
If you see the example above, "IDOK" is the ID of the button, so there is the ID goes.
Ussualy "IDOK" is used for the "OK" button, but you can put another ID if you want.