home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Plugin Development Question
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="hardcorehire" data-source="post: 542323" data-attributes="member: 71522"><p>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. </p><p></p><p>Thanks</p></blockquote><p></p>
[QUOTE="hardcorehire, post: 542323, member: 71522"] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Plugin Development Question
Contact us
RSS
Top
Bottom