Hook Requests

This forum is for programmers who have questions about the source code.
Post Reply
321Practice
Posts: 7
Joined: Sun Nov 25, 2018 10:34 am

Hook Requests

Post by 321Practice » Sun Nov 25, 2018 11:04 am

In OpenDental/Forms/FormConfirmationsSetup.cs

At the end of FormConfirmationSetup_Load like this:

public void FormConfirmationSetup_Load(object sender,System.EventArgs e) {
FillTabManualConfirmation();
Plugins.HookAddCode(this, "FormConfirmationSetup.Load_End");
}

Thanks!
- John
Last edited by 321Practice on Sun Dec 09, 2018 5:00 pm, edited 1 time in total.

321Practice
Posts: 7
Joined: Sun Nov 25, 2018 10:34 am

Re: Hook Request: FormConfirmationSetup

Post by 321Practice » Sun Nov 25, 2018 6:29 pm

Just realized I used the wrong capitalization. This instead:

Plugins.HookAddCode(this, "FormConfirmationSetup.Load_end");

Thanks!

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Hook Request: FormConfirmationSetup

Post by cmcgehee » Mon Nov 26, 2018 7:52 am

Sure, I'll work on getting that added.
Chris McGehee
Open Dental Software
http://www.opendental.com

321Practice
Posts: 7
Joined: Sun Nov 25, 2018 10:34 am

Re: Hook Request: FormConfirmationSetup

Post by 321Practice » Sat Dec 08, 2018 8:59 am

Do you mind adding another? I want to modify the payment amount InputBox before it's displayed.

In ContrAccount.cs around line 3761:

Code: Select all

);
Plugins.HookAddCode(this, "ContrAccount.ToolBarMain_ButtonClick_paymentInputBox", inputBox, PatCur);
if (inputBox.ShowDialog()!=DialogResult.OK) {
    break;
}
Thanks!

321Practice
Posts: 7
Joined: Sun Nov 25, 2018 10:34 am

Re: Hook Requests

Post by 321Practice » Sun Dec 09, 2018 5:08 pm

Also, while we're at it, can you consider making ContrImages.SelectTreeNode() public?

ContrImages.FillDocList() is already public which allows us to refresh the image tree. It would be nice to also select a node and have the doc displayed.

Thank you!
John

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Hook Requests

Post by cmcgehee » Mon Dec 10, 2018 8:31 am

Yep, I can add those, too.
Chris McGehee
Open Dental Software
http://www.opendental.com

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Hook Requests

Post by cmcgehee » Tue Dec 11, 2018 2:07 pm

I have added these two hooks and made SelectTreeNode public. These will be available in version 18.4.3.
Chris McGehee
Open Dental Software
http://www.opendental.com

Post Reply