Home » Developing U++ » U++ Developers corner » DropList key select (DropList key select)
DropList key select [message #59139] |
Tue, 08 November 2022 15:20  |
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  |
omari
Messages: 276 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.
|
|
|
Goto Forum:
Current Time: Sun May 11 15:41:05 CEST 2025
Total time taken to generate the page: 0.03724 seconds
|