Allow user images for checkboxes.

Here is where you can request new features or special features.

Allow user images for checkboxes.

Postby ger21 » Tue Jan 16, 2018 12:58 am

Can we get the ability to use our own images for checkboxes? And add the ability to resize them.
Would this be difficult to implement?

It would save me from using 200+ macros in my screen.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Allow user images for checkboxes.

Postby Sword » Tue Jan 16, 2018 4:48 am

I was wondering the same thing when trying to add a checkbox to your screenset and saw how you were going about it. That would be extremely helpful for you!
Sword
 
Posts: 16
Joined: Fri Dec 08, 2017 10:45 pm

Re: Allow user images for checkboxes.

Postby dezsoe » Tue Jan 16, 2018 12:45 pm

Hi Gerry,

On the weekend I helped a man to fine tune his UCCNC with 2017 screenset and HYPlugin. There I saw how 2017 works with checkboxes. Why don't you write a plugin to handle all the checkboxes? If the buttonnumber of those switchbuttons would be in the 10xxx range instead of the 20xxx, then you could gather all those macros into one plugin. The 10xxx range will not search for the macros, so you could manage them in the Buttonpress_event of the plugin. One more vote on this method is that the plugin can work in reset state too. In the constructor macro you can also check if the plugin is running and show warning (and/or turn it on).
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Allow user images for checkboxes.

Postby ger21 » Tue Jan 16, 2018 1:28 pm

Because I don't know how to write plugins. :oops:
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Allow user images for checkboxes.

Postby cncdrive » Tue Jan 16, 2018 1:53 pm

Hi Gerry,

I will need some time to check how hard it is to applicate what you asking about.
It requires several things from me to check through before I can give an answer, because I have to keep in mind the backwards compatibility to previous software versions and screensets etc.

Writting plugins is simpler than you probably think. In my opinion to write a plugin is even simpler than to write a macro, especially because Visual Studio has intellisense which helps you to write the code while your writting it and you also get detailed warnings and errors desriptions when you compiling the code.

Check the example C# example plugin in the Plugins/Example folder of the UCCNC.
Just look through the code and I'm sure you will see how it works.
The only thing you need is Visual Studio 2010 or newer or C# express 2010 or newer. They all are free to use or have a free version.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Allow user images for checkboxes.

Postby ger21 » Tue Jan 16, 2018 2:06 pm

Can I write in in VB.net? I have VB 2010 Express installed.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Allow user images for checkboxes.

Postby dezsoe » Tue Jan 16, 2018 2:16 pm

Yes, of course. There is a VB sample with some words about how to use in the examples folder. Feel free to ask about it, as I made the VB sample.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary


Return to Feature Request

Who is online

Users browsing this forum: No registered users and 1 guest