alternetsoft / AlternetUI

MIT License
26 stars 2 forks source link

Implement CheckListBox #4

Closed dmitry-medvedev closed 1 year ago

dmitry-medvedev commented 1 year ago

https://docs.wxwidgets.org/3.0/classwx_check_list_box.html

dmitry-medvedev commented 1 year ago

seems to work more or less, however, there was a bug with the checked mark not being displayed. Fixed on the demo level by re-creating the widget.

generalloki commented 1 year ago

There are bugs in the CheckListBox

So this issue is not yet closed

generalloki commented 1 year ago

I fixed CheckListBox in 0.9.201. I don't see any problems with it currently. So I close the issue for now.

dmitry-medvedev commented 1 year ago

In demo project, if I comment out the following line: checkListBox.SelectionMode = ListBoxSelectionMode.Multiple; the check listbox is not displayed correctly. It might be a bug in wxWidget, but please look you can fix it on our end.

generalloki commented 1 year ago

Problem exists, wxCheckListBox needs to be recreated in order to paint items properly. I will investigate whether problem is on our side. For now I added Control.RecreateWindow for such situations.

dmitry-medvedev commented 1 year ago

Run control Sample, Select CheckListBox page, tick one mark, then press Alt+F4. Empty form is displayed Instead of application closing

dmitry-medvedev commented 1 year ago

also need to add images and remarks to documentation; see checkbox documentation for reference

generalloki commented 1 year ago

Added Alternet.UI.Documentation\apidoc\CheckListBox\ images and md for remarks

generalloki commented 1 year ago

For now I am closing this issue as CheckListBox seems to work properly

generalloki commented 1 year ago

I am reopening the issue as solution for bad items painting causes problems and was revereted.

generalloki commented 1 year ago

It is strange. Now I can not reproduce the problem with CheckListBox. It works fine with the latest fixes.