Jump to content

Plugins must not use code internal to PaintDotNet.exe


Rick Brewster

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 comment
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 comment
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?

Link to comment
Share on other sites

That's two votes and counting ;-)

I see that neither MadJik nor myself seem to exist anymore...

xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

Clearly an IndirectUI color picker is much more important than it was, especially now that the code is marked internal. I'll look in to it.

Could you also move it to a different DLL so that people not using DirectUI can access it as well?

KaHuc.png
Link to comment
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 comment
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 comment
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...