Home » Community » Newbie corner » Buttons in Array using ArrayCtrl
Re: Buttons in Array using ArrayCtrl [message #38114 is a reply to message #38080] |
Sat, 01 December 2012 15:56  |
omari
Messages: 276 Registered: March 2010
|
Experienced Member |
|
|
Hi,
ArrayCtrl has three overload of the Ctrls method, one of thems is described in the referance manual as:
Column& Ctrls(Callback1<One<Ctrl>&> factory)
The methods sets up a factory which the ArrayCtrl uses as necessary to create new Ctrl's for editing a given column. The argument of this function is a callback, which, upon execution, should allocate (normally using the new operator) the desired editor object and set it to its argument. If the position of Ctrl is equivalent to 'SetRect(0, 0, 0, 0)', which is the default value, Ctrl is resized to fit the ArrayCtrl cell accurately, otherwise the position represents the position within the cell.
factory callback used for new control creation
Return value *this
you can edit a cell by : myArray.Set(row, col, value);
Regards,
Omari
regards
omari.
|
|
|
Goto Forum:
Current Time: Sat May 03 02:23:58 CEST 2025
Total time taken to generate the page: 0.02688 seconds
|