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
Re: GridCtrl and ThreeState option [message #33540 is a reply to message #33539] Mon, 22 August 2011 08:50 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
unodgs wrote on Mon, 22 August 2011 08:22

forlano wrote on Mon, 22 August 2011 01:05

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


Ok, why not Smile It will be in repository this evening



Thank you! Smile
 
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 May 17 12:33:45 CEST 2024

Total time taken to generate the page: 0.02335 seconds