Plugin: Want to add MenuItem to FormOpenDental

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
wjstarck
Posts: 936
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Plugin: Want to add MenuItem to FormOpenDental

Post by wjstarck » Fri Apr 30, 2010 6:18 pm

I want to add some custom menu items to the Setup menu items at the top of FormOpenDental.

Is this possible using the Plugin Framework?

Thanks,
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA

User avatar
jordansparks
Site Admin
Posts: 5742
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Plugin: Want to add MenuItem to FormOpenDental

Post by jordansparks » Sat May 01, 2010 8:07 am

I just added
Plugins.HookAddCode(this,"FormOpenDental.Load_end");
The "this" gives you a reference to the main FormOpenDental. And, as in the example, you can loop through the public Controls object to get access to the parent menu that you need. You can add click events, etc.
Jordan Sparks, DMD
http://www.opendental.com

User avatar
wjstarck
Posts: 936
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Re: Plugin: Want to add MenuItem to FormOpenDental

Post by wjstarck » Sat May 01, 2010 8:25 am

Great.

Thank you very much.
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA

Post Reply