wakan
wakan copied to clipboard
Make a TWakanEditor component
Original report by me.
Move all the text tracking/rendering/copy-pasting code into a separate component to reuse it elsewhere in program.
Make it mostly not dependent on global properties such as "Font size", and let us configure it through its properties instead.
It also has to support additional properties:
- Multiline (if false, ignore VK_RETURNs from the user -- in other words, act like TEdit)
- Read-only
- ShowCursor (if false, we just use the component for displaying text)
And also a TWakanWordGrid component from DrawWordGrid -- a grid which specialises in drawing kanji-kana-meaning combo.
Also TWakanKanjiBox such as the ones used in KanjiInfo panel.
Blocking: #28
Note: Move doc, doctr, all load/save copy/paste in various formats code to WakanDocument module. Make Editor component use TWakanDocument as a source.