Home » Developing U++ » U++ Developers corner » DropList key select (DropList key select)
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 Jun 01 08:26:57 CEST 2025
Total time taken to generate the page: 0.02863 seconds
|