Author Topic: Event Triggers  (Read 2760 times)

Offline 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.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
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.