Topic: Simple Checkbox and TreeView Examples

Good day! I would like to ask for your help again. Could I please have an example of a simple and easy program using a checkbox and a treeview? I would like them to be separate examples. Thank you!

Re: Simple Checkbox and TreeView Examples

Hello nick

You could study the example provided in the attachment.
I use this particular approach to implementing a TV (heavily customized for my projects),
but the architecture is sufficient to get started.
However, to run it, use an older version of MVD,
since this program was created in 2020 and may not load correctly
in later versions of MVD.
It is easy to implement and modify, and basic in its functionality,
yet effective.
JB

Post's attachments

Attachment icon keestree.zip 441.26 kb, 29 downloads since 2026-09-02 

Re: Simple Checkbox and TreeView Examples

Hi Nick, Salut Jean,
It's difficult to know what you want to see - a checkbox is simply a checkbox. 
Typically it's used to hold answers to questions that have one of two states - 'yes' or 'no'.
I personally don't like to use the standard 'checkbox' because
1.  it is very small (it's determined by Windows not MVD).
2.  by default, standard checkboxes show as 'Yes' or 'No' in tablegrids and may need to be translated if you are from a non-Englsih speaking region 
So I prefer to simply use a modified edit field instead - you can set it to any size you want plus it doesn't need translating - it shows in tablegrids directly as a 'tick' (so visually, it is consistent with the 'ticks' in the edit fields and so is probably a bit more user friendly).
The attachment shows examples of both.
Regards,
Derek.

Post's attachments

Attachment icon tickboxes.zip 878.15 kb, 27 downloads since 2026-09-02 

Re: Simple Checkbox and TreeView Examples

Hi Sir JB and Derek,

Thank you very much for the detailed information and for sharing your examples. I really appreciate you taking the time to explain your approach and give me some ideas on how to implement the checkbox and TV.

The information is very helpful, especially the explanation about using a modified edit field instead of the standard checkbox. I’ll study the attached examples and try them out in an older version of MVD as suggested.

Thank you again for the help, the examples, and all the useful information. I really appreciate it! big_smile