|
-
Jul 26th, 2006, 12:01 PM
#1
Thread Starter
Junior Member
[2005]Plugin Question
Ok I am writing a program that is plugin based, the application checks for plugins and then adds a tab to the main tabcontrol for each plugin, the plugins then also load there own interfaces, and each has its on options form witch is in the plugin, so i got the plugins loading ok and adding all the controls to the main form, but i cant figure out how to make the plugin control the button clicks and what not, ive looked at a few articles on the net but still cant get it workin
thanks
Last edited by hman333; Jul 26th, 2006 at 12:23 PM.
-
Jul 26th, 2006, 08:42 PM
#2
Thread Starter
Junior Member
Re: [2005]Plugin Question
-
Jul 26th, 2006, 09:44 PM
#3
Hyperactive Member
Re: [2005]Plugin Question
 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.
-
Jul 26th, 2006, 10:37 PM
#4
Thread Starter
Junior Member
Re: [2005]Plugin Question
how do you write the code in the plugin to control the button_click event
-
Jul 26th, 2006, 10:51 PM
#5
Hyperactive Member
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...
-
Jul 28th, 2006, 08:00 AM
#6
Thread Starter
Junior Member
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
Last edited by hman333; Jul 28th, 2006 at 08:04 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|