Activity: 11 months 20 days 22 hours 54 minutes ago
I created a subclass of CCustomDrawGrid using the CCustomGridService, and there is an issue where pushing an arrow key crashes the program giving the "vector subscript out of range" error.
On the ProcessKeyLeft function, this is caused by line 740 of CustomGridService.cpp, by the command "m_pControl->ActivateCell(m_pControl->m_sSelectTo.X, m_pControl->m_sSelectTo.Y, this);"
I am unable to solve this issue in a subclass by overriding the functions due to how they are setup but would like to maintain the rest of the functionality of the service with some slight modification.
This does not appear to be an issue with any standard grids and I cannot seem to solve the issue.
Any help would be appreciated.
Hello. Extending widgets might not be a good idea unless it's a trivial extend which only changes default properties. You may spend a lot of time trying to understand how widget works and finally get to a conclusion you cannot achieve all you need because of private properties and methods you have no access to. The better choice is to begin widget from scratch (from CControl class) as described in Programming Guide. You may also copy standard widget source code to your new widget. At least in this case you will have full control over the code and will be able to change private methods.