U++ framework
Do not panic. Ask here before giving up.

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: 3461
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: Fri Sep 18 08:06:04 GMT+2 2026

Total time taken to generate the page: 0.05309 seconds