davidf Posted October 26, 2012 Share Posted October 26, 2012 IndirectUI is great, but for a plugin I am thinking of writing I will need to use some other kinds of controls ... but I still want it to feel like Paint.net. Is there anywhere I can find the code used to create the various controls that exist in IndirectUI (i.e. to do what PropertyBasedEffect.OnCreateConfigUI() does by hand?). Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 27, 2012 Share Posted October 27, 2012 There's no way of using IndirectUI like that. If you want a custom dialog, you can't derive from PropertyBasedEffect or use IndirectUI. You'll have to create a WinForms dialog and do all the data binding yourself, a fragile and bug prone way of doing things (which is why IndirectUI exists). Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted October 27, 2012 Share Posted October 27, 2012 Seen the Visual Studio plugin template? Find it here: It works with a bit of tinkering. Follow BoltBait's guide in post #4 of that thread. I use it with the Express Edition of VS - so you don't even need to spend $$. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
davidf Posted October 27, 2012 Author Share Posted October 27, 2012 (edited) There's no way of using IndirectUI like that. If you want a custom dialog, you can't derive from PropertyBasedEffect or use IndirectUI. You'll have to create a WinForms dialog and do all the data binding yourself, a fragile and bug prone way of doing things (which is why IndirectUI exists). OK, that's fine -- I can understand the reason for doing things that way. But it would be great if there was a way to extend PropertyBasedEffect one day to allow custom WinForms controls to be added to it. Thanks! (I really do appreciate the existence of IndirectUI after coding an effect that uses it ... it definitely makes things easier). Seen the Visual Studio plugin template? Find it here: http://forums.getpai...lugin-template/ It works with a bit of tinkering. Follow BoltBait's guide in post #4 of that thread. I use it with the Express Edition of VS - so you don't even need to spend $$. Yep, I've had a go at using it already -- thanks. Edited October 27, 2012 by davidf Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.