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 #24146 is a reply to message #24144] Tue, 29 December 2009 08:43 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3358
Registered: August 2008
Senior Veteran
Hello Honza

Thank you for insisting. I have had a mistake in the latter post:

Quote:

With this the program gets hanged:

void StaticImage::Layout() {
	SetFirstChild((Ctrl *)this);
	SizePos();
	Ctrl::Layout();
}



This was wrong. THIS is right:

void StaticImage::Layout() {
   	if (fit == Background) {
		SetFirstChild((Ctrl *)this);
		SizePos();
	}
	Ctrl::Layout();
} 


I have not added a SetAsBackground() function as there is already a SetFit() with Background option. This way the class public side has not changed.

Thank you Honza and Mirek.

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: Thu May 02 18:44:56 CEST 2024

Total time taken to generate the page: 0.02418 seconds