How to format a checkbox?

Discussions about the wiki documentation of FreeCAD and its translation.
Post Reply
User avatar
Roy_043
Posts: 1220
Joined: Thu Dec 27, 2018 12:28 pm

How to format a checkbox?

Post by Roy_043 » Thu Mar 05, 2020 8:46 pm

Is there a template to format a checkbox?:

Example:
If there are multiple unsaved documents you can check the Apply answer to all checkbox to avoid being prompted for each unsaved document separately.
vocx
Posts: 3962
Joined: Thu Oct 18, 2018 9:18 pm

Re: How to format a checkbox?

Post by vocx » Thu Mar 05, 2020 10:40 pm

Roy_043 wrote:
Thu Mar 05, 2020 8:46 pm
Is there a template to format a checkbox?:
...
Not that I know of. You could create one, if you feel like it.

Just visit the page for, say, Template:Button, and see the code there to draw the border and that.
Always add the important information to your posts if you need help.
To support the documentation effort, and code development, your donation is appreciated: paypal.
User avatar
Kunda1
Posts: 7319
Joined: Thu Jan 05, 2017 9:03 pm

Re: How to format a checkbox?

Post by Kunda1 » Fri Mar 06, 2020 12:18 am

I think there is an image available on the wiki somewhere of a marked and unmarked checkbox...

Edit: See https://wiki.freecadweb.org/Std_Key#Other

Edit x2: Too bad it's not in SVG format
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Roy_043
Posts: 1220
Joined: Thu Dec 27, 2018 12:28 pm

Re: How to format a checkbox?

Post by Roy_043 » Fri Mar 06, 2020 8:09 am

Thanks. I'll use the 'Case a cocher' option. I prefer to have some formatting in place.
User avatar
Kunda1
Posts: 7319
Joined: Thu Jan 05, 2017 9:03 pm

Re: How to format a checkbox?

Post by Kunda1 » Fri Mar 06, 2020 12:57 pm

Roy_043 wrote:
Fri Mar 06, 2020 8:09 am
Thanks. I'll use the 'Case a cocher' option. I prefer to have some formatting in place.
Maybe we should rename those icons? and also transform them in to SVGs ?

Edit: go ahead and use it, we can also mass rename the icons later if needed.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Kunda1
Posts: 7319
Joined: Thu Jan 05, 2017 9:03 pm

Re: How to format a checkbox?

Post by Kunda1 » Fri Mar 06, 2020 5:20 pm

I was thinking about this and realizing that there are emojis that we could use instead.
:ballot_box_with_check:
:white_check_mark:
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
mario52
Posts: 2921
Joined: Wed May 16, 2012 2:13 pm

Re: How to format a checkbox?

Post by mario52 » Mon Mar 23, 2020 9:10 pm

Hi

done

RadioButton ImageImage
CheckBox Image Image

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Dialog creation. My macros on Gist.github.
User avatar
Roy_043
Posts: 1220
Joined: Thu Dec 27, 2018 12:28 pm

Re: How to format a checkbox?

Post by Roy_043 » Tue Mar 24, 2020 10:29 am

Thanks! I'll update the pages where I have used the older template.
User avatar
Kunda1
Posts: 7319
Joined: Thu Jan 05, 2017 9:03 pm

Re: How to format a checkbox?

Post by Kunda1 » Tue Mar 24, 2020 1:37 pm

mario52 wrote:
Mon Mar 23, 2020 9:10 pm
done
Wow, this is great!

Edit: ...and will be super useful in the Macro pages !
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
mario52
Posts: 2921
Joined: Wed May 16, 2012 2:13 pm

Re: How to format a checkbox?

Post by mario52 » Sun Mar 29, 2020 8:51 pm

Maybe you need a special feature, go into Macros_recipes and Code_snippets, Dialog creation. My macros on Gist.github.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests