Hook for sub-contextual menu
Hook for sub-contextual menu
Hi-
I want to add a sub-contextual menu for the time being like the one I proposed here:
viewtopic.php?f=1&t=4678&p=19845&hilit=menu#p19845
Where in ContrChart should the hook go?
I want to add a sub-contextual menu for the time being like the one I proposed here:
viewtopic.php?f=1&t=4678&p=19845&hilit=menu#p19845
Where in ContrChart should the hook go?
Cheers,
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Re: Hook for sub-contextual menu
OK, nvm looks like it goes here:
So, can you insert that hook after line 1844 on ContrChart?
Thanks
Code: Select all
private void gridProg_MouseUp(object sender,MouseEventArgs e) {
if(e.Button==MouseButtons.Right) {
if(PrefC.GetBool(PrefName.EasyHideHospitals)){
menuItemPrintDay.Visible=false;
}
else{
menuItemPrintDay.Visible=true;
}
Plugins.HookAddCode(this,"ContrChart.gridProg_MouseUp_end"); <-----------
menuProgRight.Show(gridProg,new Point(e.X,e.Y));
}
}
Thanks
Cheers,
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Re: Hook for sub-contextual menu
Have you tested this to make sure it works?
Re: Hook for sub-contextual menu
Right.
I was focused on the menus which works fine, but I've still got to pass in the selected procedures. I'll give you an updated hook request once I've got that working.
Thanks.
I was focused on the menus which works fine, but I've still got to pass in the selected procedures. I'll give you an updated hook request once I've got that working.
Thanks.
Cheers,
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Re: Hook for sub-contextual menu
Sorry about that.
The hook should look like this on ContrChart:
If I could get that added to 13.2 and the head that would be great.
The hook should look like this on ContrChart:
Code: Select all
private void gridProg_MouseUp(object sender,MouseEventArgs e) {
if(e.Button==MouseButtons.Right) {
if(PrefC.GetBool(PrefName.EasyHideHospitals)){
menuItemPrintDay.Visible=false;
}
else{
menuItemPrintDay.Visible=true;
}
Plugins.HookAddCode(this,"ContrChart.gridProg_MouseUp_end",menuProgRight,gridProg,PatCur); <-------
menuProgRight.Show(gridProg,new Point(e.X,e.Y));
}
}
Cheers,
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Re: Hook for sub-contextual menu
This hook has been added.
Re: Hook for sub-contextual menu
Thanks Allen
Cheers,
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Re: Hook for sub-contextual menu
Here is the result with the hook:

Thanks guys (and gals)

Thanks guys (and gals)
Cheers,
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Re: Hook for sub-contextual menu
That looks great