Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl: custom ButtonOption inside a cell
GridCtrl: custom ButtonOption inside a cell [message #43271] |
Sat, 21 June 2014 08:46 |
|
forlano
Messages: 1185 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
Hello,
GridCtrl let me add easily an Option
grid.AddColumn(STATUS, "Status", 4).Option().Default(true);
Now I would like to add instead a ButtonOption with my own images.
I thought to modify the library (other idea are welcome)
static void MakeOption(One<Ctrl>& ctrl)
{
//ctrl.Create<Option>().ShowLabel(false); //original code
ctrl.Create<ButtonOption>(); //new
ctrl->SetData(0);
ctrl->WantFocus();
}
It works but I do not see where to use
.SetImage()
(ctrl do not like SetImage() ).
Any solution?
Thanks,
Luigi
[Updated on: Sat, 21 June 2014 10:32] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed Apr 24 04:18:10 CEST 2024
Total time taken to generate the page: 0.02514 seconds
|