Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
Developer forums (C::B DEVELOPMENT STRICTLY!)
»
Plugins development
»
Background image
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Background image (Read 7721 times)
WhoaImAFreak
Guest
Background image
«
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.
Logged
Alpha
Developer
Lives here!
Posts: 1513
Re: Background image
«
Reply #1 on:
October 21, 2013, 02:28:23 am »
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
.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
Developer forums (C::B DEVELOPMENT STRICTLY!)
»
Plugins development
»
Background image