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 » Developing U++ » U++ Developers corner » DropList key select (DropList key select)
DropList key select [message #59139] Tue, 08 November 2022 15:20 Go to next message
Mesimo is currently offline  Mesimo
Messages: 12
Registered: August 2022
Location: BENGEURIR
Promising Member
Hello everybody

Please i need your help !

i want to select the key of droplist and do somothing like display image

if you have any solutions please

thanks
Re: DropList key select [message #59140 is a reply to message #59139] Wed, 09 November 2022 12:36 Go to previous message
omari is currently offline  omari
Messages: 264
Registered: March 2010
Experienced Member

struct MyApp : TopWindow {
	DropList dl;

	MyApp()
	{
		Add(dl.LeftPos(10, 60).TopPos(5, Ctrl::STDSIZE));
		
		for(int i = 0; i < 10; i++) {
			dl.Add(i, FormatIntAlpha(i));
		}

		dl = 5;
		
		dl.WhenAction << [&] {
			PromptOK(AsString(dl.GetData()));
		};
		
		SetRect(0, 0, 200, 200);
	}
};

GUI_APP_MAIN
{
	MyApp().Run();
}



regards
omari.
Previous Topic: pkg-config support
Next Topic: WebSocket client SSL support?
Goto Forum:
  


Current Time: Thu Mar 28 23:53:37 CET 2024

Total time taken to generate the page: 0.02401 seconds