Home » U++ Library support » U++ Core » LableBox childctrls can't active (win10 + upp 17810)
LableBox childctrls can't active [message #61864] |
Fri, 21 November 2025 22:43 |
fzx374cn
Messages: 9 Registered: August 2025
|
Promising Member |
|
|
two ways, one test ok, other test sorry:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct MyAppWindow : TopWindow {
LabelBox lb;
EditString es;
void Lbes() {
lb.HSizePos(50,50).VSizePos(50,50).Add(es);
lb.SetText("Title");
lb.NoWantFocus();
es.HSizePos(60, 100).TopPos(100);
this->Add(lb);
}
MyAppWindow() {
//Lbes(); //this way test ok.
}
virtual void LeftDouble(Point p, dword keyflags) {
Lbes(); //This way test sorry -- es can't edit
}
};
GUI_APP_MAIN
{
MyAppWindow app;
app.Run();
}
|
|
|
|
Goto Forum:
Current Time: Fri Nov 21 23:04:17 CET 2025
Total time taken to generate the page: 0.10530 seconds
|