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 » ArrayCtrl & Option == CheckListBox ?
ArrayCtrl & Option == CheckListBox ? [message #10110] Thu, 21 June 2007 00:50 Go to previous message
arturbac is currently offline  arturbac
Messages: 91
Registered: May 2007
Location: Reda, Poland
Member

The problem is I need Some checklistbox with capability
of callback of "WhenChecked" with knowing which row of ArrayCtrl was checked, ie knowing the Index associated to ArrayCtrl column

ArrayCtrl lst_layers;

void MakeOption(One<Ctrl> & res)
{
   res.Create<Option>();
}


SomeConstructor() {
 lst_layers.AddColumn(t_("Layer"));
 lst_layers.AddIndex();
 lst_layers.AddColumn().Ctrls(&MakeOption);
 lst_layers.WhenCtrlsAction = THISBACK(MapLayerChecked);
}

void MapLayerChecked()
{
	Option *o = (Option *)lst_layers.GetActiveCtrl();
}




How to get value from Index column in MapLayerChecked() ? Rolling Eyes
Or maybe there is some simpler , better solution ?

PS. Checking the checkbox will not make adequate arrayctrl row selected ...

Artur

[Updated on: Thu, 21 June 2007 00:55]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: GridCtrl 'Key' modifications / questions
Next Topic: GridCtrl Question
Goto Forum:
  


Current Time: Mon Jun 02 18:09:01 CEST 2025

Total time taken to generate the page: 0.02150 seconds