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++ Widgets - General questions or Mixed problems » How to get an "OnParentOpen" in a control
Re: How to get an "OnParentOpen" in a control [message #24100 is a reply to message #24092] Sat, 26 December 2009 21:42 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3446
Registered: August 2008
Senior Veteran
luzr wrote on Sat, 26 December 2009 17:38

koldo wrote on Sat, 26 December 2009 10:56

Hello all

I would like to create a control that would know when it is located into a bigger control or window to resize inside properly.

Actually I get the Paint control event and I resize it into its parent window, but it has to be done in every Paint call...

Best regards
Koldo


Layout?

Mirek


Hello Mirek

I mean, I put a control in the layout designer and I would like it to resize and relocate to fill the background. There are two solutions:

- To resize it by hand in the layout designer to fill all the background

- To put in the parent window constructor a:

control.SizePos();


However, I would like the control to itself do the SizePos, but I do not know how to do it right.
If it is used the Paint to do the SizePos(), it has to be called in every Paint call, not only in the first.

Best regards
Koldo


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to mix use widgets and win32 window in u++?
Next Topic: Additon to SliderCtrl: Jump
Goto Forum:
  


Current Time: Sun Sep 07 02:47:05 CEST 2025

Total time taken to generate the page: 0.06716 seconds