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 » TopWindow&PopUp, TrayIcon » Resizing a TopWindow but keeping the width/height ratio fixed?
Resizing a TopWindow but keeping the width/height ratio fixed? [message #4251] Sun, 30 July 2006 13:38 Go to next message
Werner is currently offline  Werner
Messages: 234
Registered: May 2006
Location: Cologne / Germany
Experienced Member
How can I create a top window which can be resized at will but with the restriction that the width-height-ratio remains fixed?

Werner
Re: Resizing a TopWindow but keeping the width/height ratio fixed? [message #4255 is a reply to message #4251] Sun, 30 July 2006 17:00 Go to previous message
mirek is currently offline  mirek
Messages: 14160
Registered: November 2005
Ultimate Member
Resizing loop is performed by Win32 (or X11) and AFAIK (but I would have to check) there is no direct way how to tell it you want this.

I would try to keep ratio by setting it in Layout. It is however a little bit tricky - you are going to change the size in method that gets invoked when size changes, so beware of infinite recursion...

Mirek
Previous Topic: ColorPopUp Problem
Next Topic: how to start TopWindow without GUI_APP_MAIN from other apps? [NEEDS IMPLEMENTATION...]
Goto Forum:
  


Current Time: Sun Dec 08 23:34:21 CET 2024

Total time taken to generate the page: 0.02399 seconds