I've gotten around my earlier bug of crashing whenever I hit the enter
or return key in the LDataBrowser by catching that key before
LDataBrowser::HandleKeyPress passes it on to the databrowser control.
But now, as I want to be able to colour the text of the item I have to
write custom callbacks. I've managed to alter the colouring easily,
but am unsure how to proceed on the editing. I don't see any calls to
make it easy for a user to edit the text, so I presume I have to write
everything? Is that correct?
What I'm doing so far is overriding the hit test custom call back to
always return true (as I want it to edit if the user clicks anywhere
in the rect) and then in the custom tracking function I
SetDataBrowserEditItem to start editing and then in the CustomEditItem
I am creating a EditText control and EmbedControl 'ing it inside the
databrowser followed by a SetKeyBoardFocus.
Now obviously I need to do more than this, but is this the correct
approach? Has anyone else done this and could provide a sample of what
they did?
Thank you so much for any assistance you can provide,
Lyndsey