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 and ThreeState option
GridCtrl and ThreeState option [message #33538] Mon, 22 August 2011 07:05 Go to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I wanted a 3state Option in a column.
Using
grid.AddColumn("option").Option()
I got a simply two state.
Modifying the library method MakeOption and adding .ThreeState() the problem is resolved

static void MakeOption(One<Ctrl>& ctrl)
{
ctrl.Create<Option>().ThreeState().ShowLabel(false);
ctrl->SetData(0);
ctrl->WantFocus();
}

However I would ask to Daniel to consider adding a new method to get the ThreeState when desidered. For example

.Option(bool threestate=false)

Thanks,
Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Row autoheight with LineEdit
Next Topic: [BUG & FIX] [GridCtrl] Copy on GridCtrl with no selection will crash a program.
Goto Forum:
  


Current Time: Fri Apr 19 19:57:42 CEST 2024

Total time taken to generate the page: 0.17359 seconds