[codenameone-discussions] Re: Picker with Today Button

2019-03-01 Thread Shai Almog
You can use API's like setYearRange() to determine the years that are 
within the selectable range.
You can override the day button creation code in Calendar to highlight a 
specific day. This isn't exposed in picker though.

If the picker won't accept touch events it might be a regression due to the 
component ownership feature. We'll need to check this.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/afa2b79d-cfe0-4b44-a792-b9f8857f7d78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Picker with Today Button

2019-03-01 Thread shop . service . assistant
Sorry, Forgot this issue.

When opening Calendar for Current Month, Widget will not accept Touch 
Events in the past.

So If Today is March 1st and I touch the 28th (previous day) The 1st 
remains highlighted.
However if we select the previous Month, all days are selectable.

Thoughts?

On Friday, March 1, 2019 at 4:29:59 PM UTC-5, shop.servic...@gmail.com 
wrote:
>
> If you are experiencing an issue please mention the full platform your 
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
> Desktop OS Windows 10 Pro
> Simulator Latest
> Device Android & IOS
>
> is there a way to get a "Today" Button/option 
> when setType(Display.PICKER_TYPE_CALENDAR); ?
>
> A3AppointmentDate = new Picker();
> A3AppointmentDate.setUseLightweightPopup(true);
> A3AppointmentDate.setTactileTouch(true);
> A3AppointmentDate.setDate(inc.getDateObjectFromMMDD(ApptDate));
> A3AppointmentDate.setType(Display.PICKER_TYPE_CALENDAR);
> SimpleDateFormat formatter = new SimpleDateFormat("E MM-dd-");
> A3AppointmentDate.setFormatter(formatter);
>
>
> See Pictures attached.
>
> Regards
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/d7e6dc21-fa5d-47d3-ad95-e3341f5d7ee1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.