Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Why SetCtrl() places controls in first row of ArrayCtrl?
Re: Why SetCtrl() places controls in first row of ArrayCtrl? [message #61770 is a reply to message #61769] |
Tue, 05 August 2025 07:33   |
Oblivion
Messages: 1223 Registered: August 2007
|
Senior Contributor |
|
|
Hello LMonda,
This code works well (other parts seem redundant here, but feel free to re-add):
App() {
// Since you are using qtf in headers, '=' means center aligned text
a.AddColumn(t_("\1[@W=* #"));
a.AddColumn(t_("\1[@W=* Step Description")).Ctrls<EditString>(); // <- Was missing a space, hence the error...
a.AddColumn(t_("\1[@W=* Timed")).Ctrls<Option >();
a.AddColumn(t_("\1[@W=* Time(sec)")).Ctrls<EditDoubleSpin>();
a.AddColumn(t_("\1[@W=* Step Type")).Ctrls<DropList>();
a.AddColumn(t_("\1[@W=* Leak")).Ctrls<DropList>();
a.AddColumn(t_("\1[@W=* Filter(sec)")).Ctrls<EditDoubleSpin>();
for(int row =0; row< 63; row++)
a.Add(row, "test", true, 1.234);
a.SetLineCy(Draw::GetStdFontCy() + 8);
Add(a.SizePos());
Sizeable();
}
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Tue, 05 August 2025 10:33] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue Aug 12 06:24:05 CEST 2025
Total time taken to generate the page: 0.00464 seconds
|