2008-05-23, 11:20 PM
Code:
public override Form GetConfigFormInstance(XmlDocument document)
Cheers,
Brian
2008-05-23, 11:20 PM
Code: public override Form GetConfigFormInstance(XmlDocument document) Cheers, Brian
2008-05-23, 11:20 PM
The document is the config.xml file, which can be used to query or save settings.
2008-05-23, 11:40 PM
sub Wrote:The document is the config.xml file, which can be used to query or save settings.OK, I get it. Thanks.
2008-06-10, 02:43 PM
Not sure I do!
Is that different to the helper function GetConfiguration()? Also on a marginally near topic - is there an example of how a plugin is configured in the config tool? cheers Keith
Old broken setup - Zalman HD160+ box, AMD Athlon 5400+, 3GB DDR2, Motherboard Gigabyte GA-M61P-S3
Hauppauge Nova-T PCI Hauppauge Nova-S PCI BlackGold Dual T2, S2 PCI 1x 2TB SATA Windows 7 Pro
2008-06-10, 03:57 PM
In your plugin code, populate a method as follows:
Code: public Form GetConfigFormInstance(System.Xml.XmlDocument document) MyPluginConfigForm (name should reflect your plugin) is a normal windows form with a constructor as follows: Code: public MyPluginConfigForm(XmlDocument document) The document is the config.xml in a XmlDocument object. Use this document object to read and write settings into the Plugins section for your specific plugin. When in the gbpvr config program plugin tab, if the user selects the plugin to manage, the plugin's getConfigFormsInstance() method is called. If it returns a Windows form object, that object is loaded and displayed. The WizTools provides an example (WizUiHelperDemoPlugin) that shows how this works.
2008-06-12, 08:20 AM
Thanks for the info
Old broken setup - Zalman HD160+ box, AMD Athlon 5400+, 3GB DDR2, Motherboard Gigabyte GA-M61P-S3
Hauppauge Nova-T PCI Hauppauge Nova-S PCI BlackGold Dual T2, S2 PCI 1x 2TB SATA Windows 7 Pro |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
The node to be inserted is from a different document context | imilne | 7 | 4,203 |
2012-01-30, 08:36 AM Last Post: bgowland |