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 » U++ Library support » U++ Library : Other (not classified elsewhere) » [Feature request] Relative positioning
Re: [Feature request] Relative positioning [message #48673 is a reply to message #48655] Wed, 16 August 2017 10:24 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Hi rafiwui,

Layouts and automatic positioning is good enough for a lot of common task but sometimes you do need to go in and write your own positioning code.

You need to override this method in your window:

virtual void   Layout();


In this method you should query the size of the parent view-port, determine the center and align your 4 controls as in the pictures.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Bug (minor)]: CenterScreen not working
Next Topic: reference/OpenGL crashes
Goto Forum:
  


Current Time: Wed Apr 24 14:27:10 CEST 2024

Total time taken to generate the page: 0.03871 seconds