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 » ColorPopUp Problem
icon9.gif  ColorPopUp Problem [message #3664] Mon, 12 June 2006 11:09 Go to previous message
CyberEye is currently offline  CyberEye
Messages: 4
Registered: June 2006
Location: Germany
Junior Member
Hello @ all!

I have a problem with the ColorPopUp Widget.

I have a small test-application, where is a simple button. If I click it, there should popup the Color-Dialog.
Of course, it popup, but it doesn't stay on the screen. (It is only visible for some milliseconds.)

Here is a code sniped:

void ColorPop()
	{
		ColorPopUp chooser;
		chooser.PopUp(&myButton);
	}
	
	typedef MyAppWindow CLASSNAME;
		
	MyAppWindow()
	{
		Title("My application").Zoomable().Sizeable();
		AddFrame(menu);
		Add(myButton.LeftPos(10, 40).TopPos(10, 20));
		menu.Set(THISBACK(MainMenu));
		myButton.WhenAction = THISBACK(ColorPop);
	}
};


GUI_APP_MAIN
{
	MyAppWindow app;
	app.Run();
}


The only problem is the ColorPopUp, all other things work perfectly.

If you could help me, it would be very great!

friendly greetings

CyberEye
 
Read Message icon9.gif
Read Message
Read Message icon14.gif
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Splash Screen
Next Topic: Resizing a TopWindow but keeping the width/height ratio fixed?
Goto Forum:
  


Current Time: Thu Apr 18 13:54:58 CEST 2024

Total time taken to generate the page: 0.03418 seconds