HCGS Posted January 6, 2021 Share Posted January 6, 2021 13 minutes ago, toe_head2001 said: Most people don't use tabs with any C style language. A shame, really. 13 minutes ago, toe_head2001 said: That's completely subjective. The same exact things can be said about tabs. I'm not even joking. The standout issue with tabs is variable tab width among different environments. For you a tab width might appears as 40px, but for other people it might be 80px. This is very evident in web browsers. For some reason, a tab is about double the normal (if there is such a thing) width in a web browser. A space is always the same width. Yes, I know it's completely subjective. That's why I think it's silly to enforce this... (I'm not talking about you - I blame Microsoft!) Personally, I think it's a great thing that tabs have variable width! To me, indents are logical separators, not visual ones. One indent equals one tab, and its visual width is just your personal preference. Anyway... 52 minutes ago, toe_head2001 said: it would be very easy to add an option to CodeLab for tabs. However, all the templates within CodeLab are hard-coded with spaces. So basically, you would easily end up with a document mixed with tabs and spaces. Well, it's not really a big deal, replacing manually is quite easy. Or actually, it would just be easier to simply to do a replace in the templates before adding them to the documents if the user has some "use tabs" option enabled. Quote Link to comment Share on other sites More sharing options...
Reptillian Posted April 19, 2021 Share Posted April 19, 2021 I'm wondering if there can be a find/replace function similar to the one implemented in KDE Kate. This is more for faster editing. I would just copy and paste to KDE Kate, and then back to CodeLab. Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
toe_head2001 Posted April 19, 2021 Share Posted April 19, 2021 (edited) 2 hours ago, Reptillian said: ... a find/replace function similar to the one implemented in KDE Kate. So you want a pane to list the lines that contain matches? EDIT: oh, I see, you want to toggle if a match gets replaced. Is that right? Edited April 19, 2021 by toe_head2001 Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Reptillian Posted April 19, 2021 Share Posted April 19, 2021 1 minute ago, toe_head2001 said: So you want a pane to list the lines that contain matches? Yes, as well as checkboxes to selectively change matches. Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
toe_head2001 Posted April 19, 2021 Share Posted April 19, 2021 Do you know about light-bulb renaming in CodeLab? It does more extensive matching than simple text compare. Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Reptillian Posted April 19, 2021 Share Posted April 19, 2021 2 minutes ago, toe_head2001 said: Do you know about light-bulb renaming in CodeLab? It does more extensive matching than simple text compare. No. I don't even know about a light-bulb. Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
toe_head2001 Posted April 19, 2021 Share Posted April 19, 2021 So, it really only for renaming identifiers. Here I have renamed the Local Variable selection to mySelRect. When I hover my mouse cursor over the word, the Light-bulb menu appears. As I said before, it does matching with a stricter criteria. (as opposed to basic text compare) 1 1 Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Heptor Posted May 4, 2021 Share Posted May 4, 2021 Need some help here. Whenever I put this into CodeLab, the entire program just shuts down. What am I doing wrong? mazepdn.cs Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted May 4, 2021 Share Posted May 4, 2021 Looks like CLR doesn't like the recursive method, and it (the CLR) just crashes. Perhaps the C# compiler is generating bad IL. I have no idea at this point. If you run the code as a stand-alone program (or even in something like LINQPad), it will no doubt have a similar failure. Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
BoltBait Posted June 26, 2021 Share Posted June 26, 2021 CodeLab 6.1 Released This is only for Paint.NET 4.2.16+! Long awaited update today... Changes: ▪ Use Roslyn syntax in generated code (BoltBait) ▪ Fix the disablement of the Transparency menu (toe_head2001) ▪ Disable intelligent assistance when document is readonly (toe_head2001) ▪ Fix issue with square brackets in controls' Display Name (toe_head2001) ▪ Add SubmenuNames.Color which is new in PdN 4.2.16 (BoltBait) ▪ Copy Text and RTF formats onto the clipboard (Handy when pasting syntax highlighted code into Word) (toe_head2001 and BoltBait) ▪ Fix compilation with PDN v4.2.16 (toe_head2001) ▪ Fix Clouds rendering for Paint.NET v4.2.16 (BoltBait) ▪ Fix URLs for Errors and Warnings (toe_head2001) ▪ Minor code refactoring and bug fixes (toe_head2001 and BoltBait) Grab the CodeLab DLL here: https://www.boltbait.com/pdn/CodeLab/ 5 2 Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
ReMake Posted June 26, 2021 Share Posted June 26, 2021 CodeLab 6.1 in Russian You can find the new version of CodeLab in Russian here. Вы можете найти новую версию CodeLab на русском языке здесь. 1 Quote Link to comment Share on other sites More sharing options...
AndrewDavid Posted September 25, 2021 Share Posted September 25, 2021 Hopefully this is an easy question. In Codelab I see the IntSliderControl on the opening screen. When exported to VS it exports as a Class C# cs file. My project is Form based. I am trying to add that IntSliderControl to my form, but it does not exist in the toolbox. This tells me a little bit of programming is required to build it programmatically like in codelab. This of course is way over my head. I hope I have explained it correctly. Can you help with the code required or steer me to the right place to know how to build it. I have searched for 3 days to answer this riddle. Quote Link to comment Share on other sites More sharing options...
midora Posted September 25, 2021 Share Posted September 25, 2021 @AndrewDavidIMHO this question is far beyond Codelab. Codelab creates PropertyBesedEffects. This is the most simple way to create an effect plugin. You can not just create a dialog, add some controls and tell paint.net to use it. You have to derive a new dialog from the paint.net one. You have to create an EffectToken which is used to transport settings from the dialog to the render function and to setup the controls in the dialog. You can do this but if you are not experienced with the basic concepts of effect plugins then it will take some time. You should first check the source code of an existing plugin to understand the flow of data, the start making small modification by adding a new control. It's just not the best time during the switch to .net 5. 1 2 Quote Link to comment Share on other sites More sharing options...
BoltBait Posted September 25, 2021 Share Posted September 25, 2021 @AndrewDavid, you're jumping into the deep end of the pool before learning how to swim. At your level of understanding of C# and the inner workings of Paint.NET, I would recommend sticking with CodeLab. Let it do the heavy lifting for you. Work your way through all the tutorials, etc. CodeLab with the Paint.NET IndirectUI system masks a lot of the complexity of writing plugins. Honestly, I know how to write plugins with custom UI (like BBChart, etc.) and I hate to do it. That's why I myself use CodeLab for all my plugins. 1 1 1 Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
AndrewDavid Posted September 25, 2021 Share Posted September 25, 2021 32 minutes ago, BoltBait said: Work your way through all the tutorials Believe me - I have. Quote Link to comment Share on other sites More sharing options...
AndrewDavid Posted September 26, 2021 Share Posted September 26, 2021 Found this anomaly practicing building plugins. Plugin still works. I think we can agree Net 5.0 is a little buggy. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted September 26, 2021 Author Share Posted September 26, 2021 Just now, AndrewDavid said: Plugin still works. I think we can agree Net 5.0 is a little buggy. .NET 5 isn't buggy, it just has some changes we haven't all adapted to yet. 2 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...
BoltBait Posted September 28, 2021 Share Posted September 28, 2021 CodeLab v6.3 Released This is only for Paint.NET 4.3.1+! Quick update today... Changes in v6.2: ▪ Update to .NET 5.0 (toe_head2001)▪ Scripts can use C# 9.0 compiler syntax (toe_head2001)▪ Use an AssemblyLoadContext when loading built scripts (Rick Brewster)▪ Switch to ILRepack for building CodeLab (toe_head2001) ▪ Minor code refactoring and bug fixes (toe_head2001) Changes in v6.3: ▪ Improve look of some icons (toe_head2001)▪ Fix File>New>Filetype generated code (BoltBait)▪ Fix File>New>Effect Advanced Pointer code (BoltBait)▪ Improve IEnumerable<T> name suggestions (toe_head2001) ▪ Minor code refactoring and bug fixes (toe_head2001 and BoltBait) Grab the CodeLab DLL here: https://www.boltbait.com/pdn/CodeLab/ Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
toe_head2001 Posted September 28, 2021 Share Posted September 28, 2021 On 9/26/2021 at 1:18 PM, AndrewDavid said: Found this anomaly practicing building plugins. Hmm, weird. That's how Roslyn is building the DLL files in CodeLab. It won't hurt anything though. I'll investigate further when I have time. Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
AndrewDavid Posted September 28, 2021 Share Posted September 28, 2021 @BoltBait Ctrl-C not working in Codelab. I think I saw that mentioned in another thread in another part of the application. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted September 28, 2021 Share Posted September 28, 2021 8 minutes ago, AndrewDavid said: Ctrl-C not working in Codelab. Works on my machine. Are you running a different language Windows or keyboard? Does the Edit Copy menu work as expected? Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
AndrewDavid Posted September 28, 2021 Share Posted September 28, 2021 (edited) Not at all - Win 10 of course. Works through the menu. Works in other apps like VS and VS Code, Notepad. Just tried it again and it worked. I'll keep an eye on it and see why it didn't work. Edited September 28, 2021 by AndrewDavid Quote Link to comment Share on other sites More sharing options...
AndrewDavid Posted September 28, 2021 Share Posted September 28, 2021 @BoltBait I have a request. One of your effects that I constantly use requires some modification to suit my needs. This is a personal request. Using Codelab, can I rebuild one of your effects found in SelectionTools.dll? The one I want is OutlineSelection. I could extract the code that I need to rebuild it in VS using Codelab as a staging platform for Net 5.0. Can I have your permission? Another way of learning - hacking I guess you might call it. Then could you assist if I run into any problems? I've noticed C# 9 has simplified the code and VS is pretty good at solving the errors. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted September 29, 2021 Share Posted September 29, 2021 22 hours ago, AndrewDavid said: @BoltBait I have a request. One of your effects that I constantly use requires some modification to suit my needs. This is a personal request. Using Codelab, can I rebuild one of your effects found in SelectionTools.dll? The one I want is OutlineSelection. I could extract the code that I need to rebuild it in VS using Codelab as a staging platform for Net 5.0. Can I have your permission? Another way of learning - hacking I guess you might call it. Then could you assist if I run into any problems? I've noticed C# 9 has simplified the code and VS is pretty good at solving the errors. Just PM me a description of the feature you want to add and I'll look into it. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
AndrewDavid Posted September 29, 2021 Share Posted September 29, 2021 Thanks @BoltBait I finally got it working. Don't worry - I won't publish (Ha Ha) 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.