Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: WhoaImAFreak on October 17, 2013, 08:07:03 pm
-
Is it possible to implement a plugin that would replace editor's background with a specified image? It should (probably; haven't looked up C::B's code-base yet) be quite trivial to achieve this by editing the code of the editor widget, but what about doing this with a plugin?
I was thinking of something along the lines of: http://i.imgur.com/agJl3zw.jpg
(Never mind the poor code quality [and the poor image editing skills ;)]; I was getting the hang of threads when this idea suddenly popped into my head.)
PS: I've searched around to no avail; I'm not asking anyone to do it for me.
-
I am not sure exactly what to suggest, but you could start by examining the code for EditorTweaks plugin, on how to hook into editors. Then, probably, register a painting event from cbStyledTextCtrl.