Re: [2005]Plugin Question
Re: [2005]Plugin Question
Quote:
Originally Posted by hman333
but i cant figure out how to make the plugin control the button clicks and what not
What do you mean? Please rewrite this as a question and give more detail.
Re: [2005]Plugin Question
how do you write the code in the plugin to control the button_click event
Re: [2005]Plugin Question
I think the best way to do it is to write your button1_click event so that it calls an function that can be overridden. Then have each of your plugins override that function...
On second thoughts, it might be better to have your main program search through plugins until it finds one that has a function that can replace the button1_click event, then calls that event... Hmm... this isn't an easy question...
If your plugins add controls based on the plugin, you could activate the relevant control somehow I'm sure... I don't know anymore without an idea of the code you're using to get the rest working...
Re: [2005]Plugin Question
ok thanks, i got it now, but i have a new question, i am trying to add a control array of 26 linklabels to the tab on the plugin, but it will not let me declare them withevents so i can put them on but how do i control their click events, i really dont want to declare each one seperatly and edit them all seperatly. they will all do the same thing so i only need one click event