adamdruppe / arsd

This is a collection of modules that I've released over the years. Most of them stand alone, or have just one or two dependencies in here, so you don't have to download this whole repo.
http://arsd-official.dpldocs.info/arsd.html
530 stars 127 forks source link

minigui: checkbox without label #289

Open WebFreak001 opened 3 years ago

WebFreak001 commented 3 years ago

Sometimes I want to create checkboxes without labels, so it would be useful if the Checkbox class could be used for that. (e.g. list of values that can be selected or checkbox with a non-text label)

adamdruppe commented 3 years ago

On Wed, Jun 30, 2021 at 06:08:23AM -0700, Jan Jurzitza wrote:

Sometimes I want to create checkboxes without labels, so it would be useful if the Checkbox class could be used for that. (e.g. list of values that can be selected or checkbox with a non-text label)

I'm actually going to try image labels soon, it worked with normal win32 button so i think it might for checkbox too.

But I don't think checkbox without label is permitted by win32. You can use an empty string but I'm pretty sure it requires the label... and I kinda agree with that for accessibility reasons.

I may be able to make the null label string adjust the size though so it pretends it isn't there. Or make the label hidden in certain display modes.