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 Go to next message](theme/default/images/down.png) |
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 Go to previous message](theme/default/images/up.png) |
omari
Messages: 271 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 Sep 01 06:59:02 CEST 2024
Total time taken to generate the page: 0.00882 seconds
|