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: 1400
Registered: September 2007
Senior 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: Fri Nov 22 17:36:35 CET 2019

Total time taken to generate the page: 0.00864 seconds