makaveli23 Posted October 23, 2016 Share Posted October 23, 2016 Hello everyone. Is there any way to do this? I wrote a plugin for encrypting/decrypting text in an image and basically I'm looking for a way to display already decrypted text. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted October 23, 2016 Share Posted October 23, 2016 In CodeLab or Visual Studio? 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...
MJW Posted October 28, 2016 Share Posted October 28, 2016 I think it may currently not be possible, even under VS, when using IndirectUI. A much-desired feature (at least by BoltBait and me) is to be able to tell when the effect is finished, and processing the final render pass. This seems quite similar. Also, if something interferes with the normal effect close-down process by putting up a message box, I think PDN might show one of those progress-bar windows that makes it look like the effect has hung. I looked at the various overridable Effect methods, and didn't see anything that seems useful. I could easily be wrong, though, since the whole subject is rather arcane. Though perhaps somewhat inelegant, you could add a button to the UI that when pressed displays the info in a MessageBox. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted October 28, 2016 Share Posted October 28, 2016 The really dirty way might be to set a condition like this in the main loop.... if (x=width && y=height) then MessageBox.Show("A message") I use this sort of thing in development all the time. It's a filthy habit I've picked up.... 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...
MJW Posted October 28, 2016 Share Posted October 28, 2016 If anyone asks -- especially anyone named Rick -- you didn't hear it from me: protected override void OnDispose(bool disposing) { if (showMessage && !IsCancelRequested) { Thread t = new Thread(() => MessageBox.Show("Modeless Message Box!")); t.Start(); } showMessage = false; base.OnDispose(disposing); } bool showMessage = false; protected override void OnSetRenderInfo(PropertyBasedEffectConfigToken newToken, RenderArgs dstArgs, RenderArgs winArgs) { showMessage = true; . . . Despite a rigorous ten minutes of testing (okay, some of that time was writing it), I'm sure there are a million problems with it, not the least of which being it wouldn't be allowed. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 29, 2016 Share Posted October 29, 2016 Yeah I wouldn't do that. Spawning a thread in the Dispose() method to show UI on a non-UI thread? That's pretty much asking for trouble. 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...
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.