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 #24133 is a reply to message #24128] Sun, 27 December 2009 22:05 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3365
Registered: August 2008
Senior Veteran
I believe you are approaching it from the wrong side.

Maybe a little bit more actual description of the problem would allow me to provide a better advice.

Hello Mirek

In StaticImage there is an option that lets an image to be the window background.

For this it is necessary that:
- the image control has to be "SizePos-ted()", so it fills all the parent canvas
- the image control has to be the first child to avoid to cover any other control

This can be made by hand:
- doing a control.SizePos() in the parent control constructor
- putting this control as the first one in the layout designer

What I was looking for is that the same child image control does it all without the need of any code in the parent.

Thank you
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: Fri May 17 13:31:40 CEST 2024

Total time taken to generate the page: 0.02477 seconds