codetools: fixed code completion for c in enum

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@41837 4005530d-fff6-0310-9dd1-cebe43e6787f
Improved fix for issue 20361. Fixed 24bit read/writing of image data

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@41838 4005530d-fff6-0310-9dd1-cebe43e6787f