Home » Community » Newbie corner » Top starting position of GUI changes.
Re: Top starting position of GUI changes. [message #33146 is a reply to message #33145] |
Mon, 11 July 2011 08:00   |
|
nlneilson wrote on Mon, 11 July 2011 07:01 | What advantage is there with "LeftPos(..." over "SetRect(..."?
|
None Actually, in this case I would use SetRect. The *Pos() functions are useful when you want some advanced positioning made easy, imagine that you want to put widget in the bottom, horizontally centered. That would require quite some arithmetic using SetRect, while HCenterPos(width).BotomPos() will calculate it for you. Also, when positioning Ctrls, these functions are usually a must, because they ensure proper behavior when the window is resized.
Honza
|
|
|
Goto Forum:
Current Time: Fri Jul 18 06:38:18 CEST 2025
Total time taken to generate the page: 0.04393 seconds
|