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 » 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 Go to previous message
omari is currently offline  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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Changing EditFields from header files
Next Topic: No Export to PDF button in Windows?
Goto Forum:
  


Current Time: Sat May 03 15:14:38 CEST 2025

Total time taken to generate the page: 0.03227 seconds