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
»
User forums
»
Using Code::Blocks
»
Event Triggers
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Event Triggers (Read 2969 times)
ironhead
Almost regular
Posts: 210
Event Triggers
«
on:
September 03, 2009, 01:11:56 pm »
Is it possible (via script or whatnot), to trigger an event before a file is written to disk (i.e. PreWrite)? Basically I'd like to call the Astyle Plugin when I save the file and have it format the file prior to writting it to disk.
Thank you.
Logged
Pecan
Plugin developer
Lives here!
Posts: 2803
Re: Event Triggers
«
Reply #1 on:
September 03, 2009, 03:10:01 pm »
Two thoughts:
1)
http://forums.codeblocks.org/index.php?topic=6129.0
2) Send the astyle menu item an wxCommandSelelected event.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Event Triggers