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
Today's Messages (off)  | Unanswered Messages (on)

Forum: U++ Core
 Topic: LableBox childctrls can't active
icon11.gif  LableBox childctrls can't active [message #61864] Fri, 21 November 2025 22:43
fzx374cn is currently offline  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();
}



Current Time: Thu Nov 27 21:07:32 CET 2025

Total time taken to generate the page: 0.03316 seconds