Nov 22, 2024 Replies: 5 Crossplatform (B4A, B4J, B4i) library that provides a template (lmB4XDateTemplate2) to use with B4XDateDialog to highlight N dates (and make them clickable). It is very useful for developing SW for appointments, notes, reservations, schedulers, reminders, ... For more information, see this thread: https://www.b4x.com/android/forum/threads/b4x-lmb4xdatetemplate.164207/post-1007031 Note: I don't have Apple HW and therefore neither B4i. The library contains a layout file for each platform; the B4i one was created for me by @Sagenut (thanks, my friend) but with an old version of B4i. If it doesn't work, open this B4XLib (it's a zip file) and replace it with one created by you (as already written in that thread, it will be very easy to do). Attachments lmB4XMultiDateDlg.b4xlib lmB4XMultiDateDlg.b4xlib 7.7 KB · Views: 519 lmB4XDateTemplate_Test.zip lmB4XDateTemplate_Test.zip 12.2 KB · Views: 533 Last edited: Nov 22, 2024 Click to expand...
Crossplatform (B4A, B4J, B4i) library that provides a template (lmB4XDateTemplate2) to use with B4XDateDialog to highlight N dates (and make them clickable). It is very useful for developing SW for appointments, notes, reservations, schedulers, reminders, ... For more information, see this thread: https://www.b4x.com/android/forum/threads/b4x-lmb4xdatetemplate.164207/post-1007031 Note: I don't have Apple HW and therefore neither B4i. The library contains a layout file for each platform; the B4i one was created for me by @Sagenut (thanks, my friend) but with an old version of B4i. If it doesn't work, open this B4XLib (it's a zip file) and replace it with one created by you (as already written in that thread, it will be very easy to do).
LucaMs Expert Licensed User Longtime User Nov 24, 2024 #2 I'm thinking of taking on another challenge in this regard (but I don't know if I will, I just needed this library). 1 To be able to fix the B4XDialog as if it were a View, especially useful in B4J 2 Resize the dialog. To achieve this I would have to incorporate the B4XDialog sources and modify them. Are you interested? Or would I waste time?
I'm thinking of taking on another challenge in this regard (but I don't know if I will, I just needed this library). 1 To be able to fix the B4XDialog as if it were a View, especially useful in B4J 2 Resize the dialog. To achieve this I would have to incorporate the B4XDialog sources and modify them. Are you interested? Or would I waste time?
LucaMs Expert Licensed User Longtime User Nov 24, 2024 #3 LucaMs said: 1 To be able to fix the B4XDialog as if it were a View, especially useful in B4J Click to expand... Adding the following method to the B4XDialog class, this seems to work (I need to test it more). It might not be enough, you would also need to raise an event like SelectedDayChanged, but anyway the date template will surely contain the selected date: B4X: Copy Public Sub MoveTo(NewParent As B4XView, Left As Int, Top As Int) If Base.Parent = NewParent Then Return Base.RemoveViewFromParent NewParent.AddView(Base, Left, Top, Base.Width, Base.Height) Background.Visible = False End Sub You could also achieve this in your project without adding that method to B4XDialog, but it would still require you to modify B4XDialog by changing the visibility of Background from Private to Public, therefore it’s better to add the method in that case. What do you think, Erel? Do you "plan" to add this method to your class? Last edited: Nov 25, 2024
LucaMs said: 1 To be able to fix the B4XDialog as if it were a View, especially useful in B4J Click to expand... Adding the following method to the B4XDialog class, this seems to work (I need to test it more). It might not be enough, you would also need to raise an event like SelectedDayChanged, but anyway the date template will surely contain the selected date: B4X: Copy Public Sub MoveTo(NewParent As B4XView, Left As Int, Top As Int) If Base.Parent = NewParent Then Return Base.RemoveViewFromParent NewParent.AddView(Base, Left, Top, Base.Width, Base.Height) Background.Visible = False End Sub You could also achieve this in your project without adding that method to B4XDialog, but it would still require you to modify B4XDialog by changing the visibility of Background from Private to Public, therefore it’s better to add the method in that case. What do you think, Erel? Do you "plan" to add this method to your class?
LucaMs Expert Licensed User Longtime User Nov 25, 2024 #4 Next step: show the number of "items associated" with each highlighted day (optional). (This version not yet published). Last edited: Nov 27, 2024
Next step: show the number of "items associated" with each highlighted day (optional). (This version not yet published).
LucaMs Expert Licensed User Longtime User Nov 25, 2024 #5 LucaMs said: Next step: show the number of "items associated" with each highlighted day (optional). Click to expand... (Not yet published).
LucaMs said: Next step: show the number of "items associated" with each highlighted day (optional). Click to expand... (Not yet published).
LucaMs Expert Licensed User Longtime User Nov 25, 2024 #6 Very quick demonstration (due to the 500Kb upload limit) of the badge indicating the number of items associated with the highlighted day, with a circle (first), with a rectangle (second) and moving the dialog into a pane of the form. (This version not yet published). Last edited: Nov 27, 2024
Very quick demonstration (due to the 500Kb upload limit) of the badge indicating the number of items associated with the highlighted day, with a circle (first), with a rectangle (second) and moving the dialog into a pane of the form. (This version not yet published).