Menu

Moving a button

2007-08-20
2012-09-26
  • Martian Man

    Martian Man - 2007-08-20

    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!

     
    • Martian Man

      Martian Man - 2007-08-22

      I understand that, but how do I know what the ID of my button is?

       
    • ZickNesZ

      ZickNesZ - 2007-08-21

      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

       
    • ZickNesZ

      ZickNesZ - 2007-08-22

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.