How to format a checkbox?

Discussions about the wiki documentation of FreeCAD and its translation.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

How to format a checkbox?

Post by Roy_043 »

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
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: How to format a checkbox?

Post by vocx »

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. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: How to format a checkbox?

Post by Kunda1 »

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
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

Re: How to format a checkbox?

Post by Roy_043 »

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

Re: How to format a checkbox?

Post by Kunda1 »

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.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: How to format a checkbox?

Post by Kunda1 »

I was thinking about this and realizing that there are emojis that we could use instead.
:ballot_box_with_check:
:white_check_mark:
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: How to format a checkbox?

Post by mario52 »

Hi

done

RadioButton ImageImage
CheckBox Image Image

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

Re: How to format a checkbox?

Post by Roy_043 »

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

Re: How to format a checkbox?

Post by Kunda1 »

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

Edit: ...and will be super useful in the Macro pages !
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: How to format a checkbox?

Post by mario52 »

Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
Post Reply