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 » GridCtrl: set column to be insentive to any action
GridCtrl: set column to be insentive to any action [message #40133] Tue, 18 June 2013 11:10
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I have a GridCtrl with a column containing a custom OptionImage with a three state

index.php?t=getfile&id=4228&private=0

grid.AddColumn("Status", t_("Status"),4).Sortable(false).Ctrls(Avail3).Default(true);

where

void Avail3(One<Ctrl>& ctrl)
{
ctrl.Create<OptionImage>().ThreeState().SetImage(Vega6Img::imgYes(), Vega6Img::imgNo(), Vega6Img::imgMaybe());
}

Some times I need to turn off the entire column, i.e. the ctrl inside the column should not react (change state) to the user action.
I tried everything

grid.GetColumn(11).Locked(true);//.NoCtrls();//.NoEditable() ; //.NoClickable();

but the OptionImage is always there changing its status Evil or Very Mad .
Is it possible to do something?

Thanks,
Luigi
Previous Topic: GridCtrl improvement proposal
Next Topic: ArrayCtrl: GPF when thread Add(), PopUpEx, and Scroll collide
Goto Forum:
  


Current Time: Thu Mar 28 19:54:07 CET 2024

Total time taken to generate the page: 0.01446 seconds