Jump to content

Plugins must not use code internal to PaintDotNet.exe


Recommended Posts

This is a new change in v3.30 -- all the code that is in PaintDotNet.exe is now marked as internal. This will break any plugin that was referencing this code, which is something that was not supposed to be allowed anyway. However, no hard feelings -- as it turns out, in Visual Studio 2003 you couldn't do this because the IDE would not let you add an EXE as a reference. So I never marked this code as "internal". In 2005 this was changed, but I did not realize it for quite some time and still never marked things as internal. Also, I have never published any comprehensive documentation for plugins, especially of the "do this, don't do this" variety.

Going forward, if you want to use code from PaintDotNet.exe then my recommendation is to copy the code from the source code release into your project and use that copy instead. This will let you use controls such as ColorWheel, while also allowing me to change them without affecting your plugin.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to post
Share on other sites
This will let you use controls such as ColorWheel, while also allowing me to change them without affecting your plugin.

Rick, I don't know if you followed the discussion on viewtopic.php?f=16&t=22881, but basically they're begging and calling me names because I dropped the color wheel from the Drop Shadow UI.

I know I said so before, but I believe many effects and adjustments could benefit from a color wheel (or even tow for my duotones) in the effect UI.

Would you please consider adding Indirect UI support for colors?

Alternatively, could you give us some pointers on how to add your own controls to Indirect UI dialogs? I haven't looked for long, but did not see an immediate way to do it.

Kris Vandermotten.

http://www.u2u.info/Blogs/Kris/

Link to post
Share on other sites
Alternatively, could you give us some pointers on how to add your own controls to Indirect UI dialogs? I haven't looked for long, but did not see an immediate way to do it.

The IndirectUI system is a closed system and is not designed to be extended.

I know I said so before, but I believe many effects and adjustments could benefit from a color wheel (or even tow for my duotones) in the effect UI.

Would you please consider adding Indirect UI support for colors?

This would be a huge boon to us plugin developers.

Please, Rick?

Click to play:
j.pngs.pngd.pnga.pngp.png
Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game

Link to post
Share on other sites
Could you also move it to a different DLL so that people not using DirectUI can access it as well?

No. As I stated above, my recommendation is to make a copy of the control's code and to put that into your project.

P.S. It's "IndirectUI", not DirectUI... the latter is actually a Windows-internal UI toolkit :)

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to post
Share on other sites

By popular demand... (currently in private testing... will be in the next beta update for all to use though)

(also, adding the color wheel to Bulge is just for show, it isn't actually using it)

(and yes, because this is IndirectUI, even file type UI can use this ... not sure why you'd want to, but hey I"m not one to judge :))

3_35955dd805634305bd8c67d6facc327c

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...