Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

nlneilson wrote on Mon, 11 July 2011 07:01

What advantage is there with "LeftPos(..." over "SetRect(..."?

None Smile 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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with GUI_APP_MAIN - example
Next Topic: umk is a virus! according to avira
Goto Forum:
  


Current Time: Fri Jul 18 06:38:18 CEST 2025

Total time taken to generate the page: 0.04393 seconds