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!)
»
Development
»
duplicated cbEVT_EDITOR_ACTIVATED event?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: duplicated cbEVT_EDITOR_ACTIVATED event? (Read 3221 times)
ollydbg
Developer
Lives here!
Posts: 5915
OpenCV and Robotics
duplicated cbEVT_EDITOR_ACTIVATED event?
«
on:
August 20, 2015, 04:55:31 pm »
Hi, I found that I have three cbEVT_EDITOR_ACTIVATED sent when I double click on a project tree file in the project manager panel.
See my log message here:
Re: question about m_NeedsBatchColour variable in CC
Also, search the forum, we have discussed this issue before:
This one:
Re: event sequence question?
or that one:
Puzzling cbEVT_EDITOR_* event behavior
.
The duplicated events make writing plugin a little hard. Some caches are needed to only handle the editor event once(not three times)
Logged
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
Developer forums (C::B DEVELOPMENT STRICTLY!)
»
Development
»
duplicated cbEVT_EDITOR_ACTIVATED event?