aeric Expert Licensed User Longtime User Jul 15, 2021 #1 This library is still working in progress. I am learning to create a B4X library for date picker with CustomListview. The result is still not I expected. The code to draw the calendar is based on B4XDateTemplate of XUI View. Can anyone help to fix the panel resize and selected date? How can I color the date without being cleared when I move my mouse pointer? How can I set/color more than 1 date? Attachments B4XDateListview.bas B4XDateListview.bas 8.2 KB · Views: 603 jxDateListview.b4xlib jxDateListview.b4xlib 12.4 KB · Views: 606 Example.zip Example.zip 2.3 KB · Views: 582
This library is still working in progress. I am learning to create a B4X library for date picker with CustomListview. The result is still not I expected. The code to draw the calendar is based on B4XDateTemplate of XUI View. Can anyone help to fix the panel resize and selected date? How can I color the date without being cleared when I move my mouse pointer? How can I set/color more than 1 date?
Andrew (Digitwell) Well-Known Member Licensed User Longtime User Jul 16, 2021 #2 Solution to first problem. I needed to create a canvas to draw the highlighted date on. This then needs to be cleared etc as appropriate. Multiple dates is a bit trickier... You will need to start by keeping a list of selected dates and perhaps a list of canvas for these dates. Edit: for spelling Attachments B4XDateListview.bas B4XDateListview.bas 9.2 KB · Views: 1,996 Last edited: Jul 16, 2021 Upvote 0
Solution to first problem. I needed to create a canvas to draw the highlighted date on. This then needs to be cleared etc as appropriate. Multiple dates is a bit trickier... You will need to start by keeping a list of selected dates and perhaps a list of canvas for these dates. Edit: for spelling
aeric Expert Licensed User Longtime User Jul 16, 2021 #3 Andrew (Digitwell) said: Solution to first problem. I needed to create a canvas to draw the highlighted date on. This then needs to be cleared etc as appropriate. Multiple dates is a bit tickier... You will need to start by keeping a list of selected dates and perhaps a list of canvas for these dates. Click to expand... Thanks ?? Upvote 0
Andrew (Digitwell) said: Solution to first problem. I needed to create a canvas to draw the highlighted date on. This then needs to be cleared etc as appropriate. Multiple dates is a bit tickier... You will need to start by keeping a list of selected dates and perhaps a list of canvas for these dates. Click to expand... Thanks ??
Andrew (Digitwell) Well-Known Member Licensed User Longtime User Jul 16, 2021 #4 Now supports lists. Bugs: Doesn't show initially selected date does not discard canvas once created. I can forsee a problem with this. You'll need to update getDate etc to support lists of dates also. Attachments B4XDateListview.bas B4XDateListview.bas 10.5 KB · Views: 632 Upvote 0
Now supports lists. Bugs: Doesn't show initially selected date does not discard canvas once created. I can forsee a problem with this. You'll need to update getDate etc to support lists of dates also.