MadJik Posted July 27, 2007 Share Posted July 27, 2007 I'm just not able to find the way to write a result of counting some pixels depending on conditions into the text of a label/textbox of the UI. I'm missing that syntax and I would appreciate help from you for this part of code. In the render section I want to change the text of a field on the dialog UI... Hope it's clear enough! Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
BoltBait Posted July 27, 2007 Share Posted July 27, 2007 I do that very thing in my Standard Shapes/Stars project... look in that source code. Off the top of my head I think it's simply a call to Update(); Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
MadJik Posted July 27, 2007 Author Share Posted July 27, 2007 I do that very thing in my Standard Shapes/Stars project... look in that source code.Off the top of my head I think it's simply a call to Update(); Ok, but you are still inside the EffectPluginConfigDialog.cs. I want to do the same from the EffectPlugin.cs ! Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
pyrochild Posted July 27, 2007 Share Posted July 27, 2007 Your Render method doesn't have any direct way to communicate with the config dialog. You might be able to communicate somehow using the token, but I don't know if the token passed to the Render methods is a clone or the original from the dialog. Another way that I know works is to save a temp file. Just make sure that you do something to prevent your code from trying to write the file thousands of times at once, as that would be the tendency of the many Render threads. Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
Rick Brewster Posted July 27, 2007 Share Posted July 27, 2007 Your Render method should not be communicating with the config dialog at all. It should pretend like it doesn't even exist. Especially because it actually truly might not exist -- take Ctrl+F for "Repeat [effect]", for instance. 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...
pyrochild Posted July 27, 2007 Share Posted July 27, 2007 :oops: ... oh wait I never published that plugin.... Nevermind! Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! 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.