|
|
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Accessing embedded controls in a gridCtrl
Accessing embedded controls in a gridCtrl [message #22531] |
Fri, 24 July 2009 15:12 |
bianconejo
Messages: 11 Registered: March 2009
|
Promising Member |
|
|
Hello guys !
I defined a GridCtrl with an embedded ProgressIndicator :
GridCtrl a;
a.AddColumn("Titre")
a.AddColumn("Deroulement").Ctrls<ProgressIndicator>();
I can set the first column but I can't find any way to access the ProgressIndicator.
Thanx !
|
|
|
|
|
Re: Accessing embedded controls in a gridCtrl [message #22557 is a reply to message #22548] |
Mon, 27 July 2009 00:03 |
|
koldo
Messages: 3361 Registered: August 2008
|
Senior Veteran |
|
|
Hello bianconejo
I understood well. In
With GridCtrl I have embedded well an "Option", but I do not know how to do it with ProgressIndicator.
with "embed well" I meant not just to put the control, but really handle it. With
a.AddColumn("Deroulement").Ctrls<ProgressIndicator>();
you put the control inside, but when doing a.Add(20), the corresponding Set to the underlying ProgressControl does a Set(0, 0), so it appears a default bar.
You can also derive a class from ProgressIndicator and in the costructor you can do a SetTotal(100), but again in the corresponding GridCtrl underlaying Set function you get a Set(0, 100), so you get and empty ProgressIndicator.
In opposite, if you use an Option if you do an a.Add(true), GridCtrl does a Set(true) to the underlying Option control, so it works well.
Best regards
Koldo
Best regards
Iñaki
|
|
|
|
|
|
|
Goto Forum:
Current Time: Wed May 15 04:12:13 CEST 2024
Total time taken to generate the page: 0.02265 seconds
|
|
|