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 #33539 is a reply to message #33538] Mon, 22 August 2011 08:22 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

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
 
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 17:34:59 CEST 2024

Total time taken to generate the page: 0.03399 seconds