Hook request

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
mopensoft
Posts: 146
Joined: Tue Dec 04, 2012 3:33 pm
Location: Melbourne, Australia
Contact:

Hook request

Post by mopensoft » Tue Apr 21, 2020 5:11 am

Hi OpenDental,

Could you add the following hook to FormOpenDental.cs near the end of procedure SetSmsNotificationText (line 4505)

Code: Select all

	if(smsNotificationText!="") 
	{
		menuItemTextMessagesReceived.Text+=" ("+smsNotificationText+")";
	}

	Plugins.HookAddCode(null, "FormOpenDental.SetSmsNotificationText_end", _butText, menuItemTextMessagesReceived, increment);

}
finally { //Always redraw the toolbar item.
	ToolBarMain.Invalidate(_butText.Bounds);//To cause the Text button to redraw.			
}
Thanks,
M

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

Re: Hook request

Post by cmcgehee » Tue Apr 21, 2020 7:31 am

We will get that added.
Chris McGehee
Open Dental Software
http://www.opendental.com

joes
Posts: 239
Joined: Tue Aug 13, 2019 12:41 pm

Re: Hook request

Post by joes » Tue Apr 21, 2020 10:44 am

The hook will be available in version 20.1.14 upon its release.
Joe Sullivan
Open Dental Software
http://www.opendental.com

User avatar
mopensoft
Posts: 146
Joined: Tue Dec 04, 2012 3:33 pm
Location: Melbourne, Australia
Contact:

Re: Hook request

Post by mopensoft » Wed Apr 22, 2020 7:56 pm

Thanks guys

Post Reply