Page 1 of 1
light buttons on the left of the main screen
Posted: Fri Mar 27, 2015 6:50 am
by jaynahar
Hi,
I want to add the button on the left hand side of the main screen and for that we need to make an entry in database in table "sigbutdef" but i don't know where to write the click event for that. I want to call the form on the click of that button.
Please help me to solve this issue.
Thanks
Regards
Jay Nahar
Re: light buttons on the left of the main screen
Posted: Fri Mar 27, 2015 10:24 am
by jsalmon
FormOpenDental.lightSignalGrid1_ButtonClick() will send off a Signalod object to all computers that each will process in their own time due to their process signal timer interval (typically 6 seconds). So I guess you will want to add your custom logic within FormOpenDental.ProcessSignals() somewhere if in fact you are going to be doing something outside of the norm of what we designed the signal buttons to do.
http://www.opendental.com/manual/messagingbuttons.html
Re: light buttons on the left of the main screen
Posted: Mon Mar 30, 2015 6:35 am
by jaynahar
Hi,
Thank you for your reply.
Actually i want to place the custom button there on left side and when user clicks on that button a form should open. How can i achieve this?
Please help me with sample code.
thanks in advance
Re: light buttons on the left of the main screen
Posted: Mon Mar 30, 2015 9:19 am
by jsalmon
jaynahar wrote:Actually i want to place the custom button there on left side and when user clicks on that button a form should open. How can i achieve this?
Please help me with sample code.
That would be an extreme amount of work just to get a button to show up. You'd have to figure out a way to programmatically get the lower position of our OutlookBar (holds the main module buttons) and then put your button underneath that and then move down the light bar accordingly.
Instead of doing all of that work, why not utilize the fact that we let you have a toolbar button in any or all modules with your program link? All you have to do is override one method in your PluginBase class:
Code: Select all
public override void LaunchToolbarButton(long patNum) { ... }
Then, when you add your program link to the list of program links, you can select what modules it will show up on:
http://www.opendental.com/manual/plugins.html