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 » same layout with different dimensions
same layout with different dimensions [message #56922] Sat, 01 May 2021 05:54 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 163
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi,

How can I use the same layout with different dimensions by loading with

CtrlLayout ( *this, "Window title" )

I designed an "A" layout and in certain situations I need to load this layout with half the size

if you use SetRect with the desired dimension, it will not respect it, carrying the original design.

like below
  CtrlLayout ( *this, "Window title" )
  if(x=='A') 
    SetRect(0,0,400,200);
  else
    SetRect(0,0,400,100); 


Thanks
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: TopWindow when Close override show exception unduly
Next Topic: Multi monitor support
Goto Forum:
  


Current Time: Tue Aug 09 15:00:44 CEST 2022

Total time taken to generate the page: 0.00835 seconds