B4J Question non modal Date Picker

a n g l o

Active Member
Licensed User
Longtime User
it's the first time i'm dealing with Date Picker in b4j.
i need a non modal calendar view that fires events when selection changes.

the standard Date Picker can be OK if it can be just be started and remains in open calendar mode.
as i see it it's not (because it was designed just to pick a date).
Question no 1 : is there a way to programatically press the button that opens it to that mode ???
------------------
i've also checked the combination of the Date Picker with B4XDialog+B4XDateTemplate.
it's better only in opening right to calendar mode without needing to press a button,
but still, it's modal and close after date selection.
i can start it up again right in the DialogResponse event, but then there's a blinking issue (close and reOpen)
Question no 2 : is there a way to have it non modal, still firing change events ?

Thank you
 

TILogistic

Expert
Licensed User
Longtime User
see:



etc.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
i've also checked the combination of the Date Picker with B4XDialog+B4XDateTemplate.
it's better only in opening right to calendar mode without needing to press a button,
but still, it's modal and close after date selection.
It is not really modal. B4XDialogs will never stop other code from running.

B4XDateTemplate doesn't raise events. It won't be difficult to extract the class from XUI Views.b4xlib, rename it and create your own version that does raise events.
 
Upvote 0

a n g l o

Active Member
Licensed User
Longtime User
Thanks Erel ! as you advised, i've extracted the file "B4XDateTemplate.bas" and i'll give it a try.
Thank You.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…