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
Home » U++ Library support » U++ Core » LableBox childctrls can't active (win10 + upp 17810)
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();
}
 
Read Message icon11.gif
Previous Topic: EditString can't focus, why?
Next Topic: Add compilable testcases for nontrivial problems!
Goto Forum:
  


Current Time: Fri Nov 21 23:23:09 CET 2025

Total time taken to generate the page: 0.10853 seconds