Hook, ContrChart, InitializeOnStartup

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

Hook, ContrChart, InitializeOnStartup

Post by wjstarck » Mon Sep 30, 2013 6:24 pm

Could you please add the following hook at the bottom of method InitializeOnStartup on ContrChart (after line 3415):

Code: Select all

LayoutToolBar();
	//ComputerPref localComputerPrefs=ComputerPrefs.GetForLocalComputer();
        this.toothChart.DeviceFormat=new ToothChartDirectX.DirectXDeviceFormat(ComputerPrefs.LocalComputer.DirectXFormat);
	this.toothChart.DrawMode=ComputerPrefs.LocalComputer.GraphicsSimple;//triggers ResetControls.
        Plugins.HookAddCode(this,"ContrChart.InitializeOnStartup_end", PatCur); <------
}
Thanks.
Cheers,

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

allends
Posts: 235
Joined: Fri Aug 23, 2013 11:29 am

Re: Hook, ContrChart, InitializeOnStartup

Post by allends » Thu Oct 03, 2013 11:49 am

This has been backported to the beta.
Allen
Open Dental Software
http://www.opendental.com

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

Re: Hook, ContrChart, InitializeOnStartup

Post by wjstarck » Fri Oct 04, 2013 6:18 am

Thanks.
Cheers,

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

Post Reply