I am about 3/4 of the way done with a plugin for a Rolodex. I have some working code, but I know there is a better way to do it so I am looking for some support. How do you transfer a button click from one class to another. For example, in my plugin if you click on the edit button it loads the modify contact page which is a seperate class and xml file, but I need to know some information like which edit button was clicked. The reason being the same xml file is used to either add or edit contact I just either fill in the please enter name or the selected contact based on which previous screen/classes button was selected. I read a little about Direct Injection but I am not exactly sure how that works or if that is what I am looking for. The problem comes if I use a get set value when I call a new instance of the method it doesn't caputure the click event so it goes back to 0 vs showing the correct button click id. My solution right now is when I click on a button it stores a value in a text file then in when I am initializign the contacts on the modify page I read in the text file to see which button was clicked. Any help would be greatly appreciated. If you need more information let me know and I'll try better to explain myself. Basically I need to save or send the id of the button clicked from one class to another. Also how do you get to know when a button is focused or you are hovering over a button in code. For example if I hover over the letter A I only want to display the "A" contacts. Is it the same as the click event just replace with onhover vs onclicked? If someone can help resolve these last couple issues then I might have this wrapped up by christmas.
Thanks
Thanks