Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21136

Client Area

$
0
0
I have never been sure using system metrics how to align objects on a form correctly. I always seem to find myself adding a fudge here and there to get things just perfect.



To align things horizontally I use the following:


Code:

(SM_CXEDGE + SM_CXFRAME) object (SM_CXFRAME + SM_CXEDGE)

To align things vertically I use the following:


Code:

            SM_CYEDGE
                +
            SM_CYFRAME
                +
          SM_CYCAPTION
       
              object

            SM_CYFRAME
                +
            SM_CYEDGE


Is this the correct way to center objects on a form?

Thanks.

Viewing all articles
Browse latest Browse all 21136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>