| |||||||
| Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here. |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member Join Date: Aug 2006 Location: Southsea, UK
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
| I am currently writing a plugin for viewing ebooks in MP. I have desigined the GUI for the plugin and at the moment I have come up against an obstacle. The first picture below shows the GUI for the plugin (nothing special - pretty much like all other plugins). The second picture shows a windows form with a control from PDFSharp (open source c# pdf editing/viewing library). ![]() ![]() I want to put the PDF viewing control from the windows form (2nd screenshot) into the white box on the first screenshot. (I have drawn the white box to illustrate my point - don't worry it won't be there on the plugin!) I can't think of any way of doing this, hence the post. What XML should I use to declare this control in the XML skin file, more specifically, what do I put in between the <type></type> tags? Any help/tips would be most appreciated. Regards, JestriK
__________________ Epia VIA 10000M :: 1GB RAM :: GeForce Low Profile 6600 :: 1x 300GB HDD :: 1x 250GB HDD :: MS Wireless Mouse and Keyboard :: MCE 2005 Remote |
| | |
| | #2 (permalink) |
| Portal Designer | Hmm, interesting. What type of object do you get back from SharpPDF? In other words, if you were to build a Winforms app what control would you drop the result onto? I almost suspect they have their own custom control type which you can drop onto any container control in Winforms. If so, I think your best bet would be to look at the WebBrowser Plugin since *I think* this one also has to display some custom Winforms Control type (that Mozilla Plugin you have to install) and see how this is achieved there and how it handles things like scrolling with the remote. Hope this is of any help to you. |
| | |
| | #3 (permalink) |
| Portal Member Join Date: Aug 2004 Location: Melbourne, Australia
Posts: 773
Thanks: 0
Thanked 0 Times in 0 Posts
| Alternatively, if you can somehow get the PDF doc exported to a System.Drawing.Bitmap object, then you can maybe show it in MP as a graphic. Given there's no need to be able to select anything on the actual object, (unlike the webbrowser control, where you need to be able to select links) it should be OK to represent the PDF file as a graphics object. Sam |
| | |
| | #4 (permalink) |
| Retired Team Member Join Date: Jan 2005 Location: Berlin Age: 34
Posts: 2,086
Thanks: 0
Thanked 3 Times in 3 Posts
Country: | A good PDF has (internal) hyperlinks (mainly for the table of contents), so you need it selectable.
__________________ Bad news from the stars... We cannot give any support without a properly filled support template and a full mediaportal.log pasted here. Before you ask... |
| | |
![]() |
| Bookmarks |
| Tags |
| control, implement, pdf, plugin |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AVerTV remote control plugin | AlexPlas | Plugins | 96 | 2008-10-24 23:18 |
| (original thread) MCE Replacement Plugin v1.0.0 | and-81 | MCE Replacement Plugin | 532 | 2007-02-24 00:24 |
| Gathering topical infos about plugins (To: authors & use | tomtom21000 | Plugins | 2 | 2006-02-05 00:20 |
| External Control Plugin for MP | samuel337 | Plugins | 17 | 2005-01-04 01:37 |