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 » ArrayCtrl, HeaderCtrl & GridCtrl » Accessing embedded controls in a gridCtrl
Re: Accessing embedded controls in a gridCtrl [message #22557 is a reply to message #22548] Mon, 27 July 2009 00:03 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3437
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: WhenCtrlsAction event
Next Topic: ArrayCtrl column width problem
Goto Forum:
  


Current Time: Fri Jul 18 11:44:09 CEST 2025

Total time taken to generate the page: 0.04036 seconds