Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl & Option == CheckListBox ?
ArrayCtrl & Option == CheckListBox ? [message #10110] |
Thu, 21 June 2007 00:50 |
|
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() ?
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
|
|
|
|
|
Goto Forum:
Current Time: Thu Apr 25 00:48:15 CEST 2024
Total time taken to generate the page: 0.03568 seconds
|