Giter Club home page Giter Club logo

calendartimechooser's People

Contributors

jimmckay avatar mikecotrone avatar npalardy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

calendartimechooser's Issues

Gradient Feature for Windows Version not available

Gradient Feature: Only Applies to Windows Xojo IDE Users Only
I am still trying to work out how to properly add the gradient feature to the Windows build. Natively windows is horrible with screen flicker as we have to use then canvas.doublebuffer property. Unfortunately this project won't allow the Clock canvas to maintain it's transparency atop of the date-time canvas while using doublebuffering.

This is a known caveat and as a workaround I have used #IF target statements to hide the gradient feature from the demo and working project.I am still working on this so hang tight :)

Selected Date disappears

Using XOJO 2016R3 and 2016R2.1 when selecting a date that date turns to the same color as the
background making it appear that it doesn't exist. Using XOJO 2015R2.1 I do not have this issue.

I tried to change the properties TodaysDate_NotSelected and TodaysDate_Selected with no change.

debugcalendartimechooser_2016-11-09_11-15-07
The current date was 11/9 and it's "blank".

debugcalendartimechooser_2016-11-10_08-24-30
Current date of 11/10 with 11/11 selected.

I'm developing on Windows 7 SP1 64-Bit.

Leap year is not correct

In your program 'Xojo Calendar and Time Chooser' perhaps there is an error in the calculation of leap years:

A year is a leap year if:

(year is divisible by 4 AND year IS NOT divisible by 100) OR year is
divisible by 400

Best regards,
Domenico Marinelli

Can't Select a Customer Date on Start

You can't select a custom calendar date upon start no matter if you specifically select a new date or not. It will always default to Today's Date.

Please add the ability to add a custom date for the calendar to begin using.

Recurring Function always defaults to current date

On a Win/Mac project, I included a sheet Window with a Date_Time_Container showing only the calendar. I want to display a different reminder date when the sheet opens, something like today + 14 days. But no matter what I tried, the calendar opens with the current date selected (showing October while RemindDate lies in November). When I click myself into the next month, the ReminderDate is blue too (but not inverse on a blue rectangle).

Calendar empty on Linux

In 3_Cal-Time Chooser Custom Classes (Calendar Paint Event)

Targets are only Win and OSX

replace all lines

ELSEIF TargetMacOS then

with

ELSEIF TargetMacOS or TargetLinux then

24h mode property not ok?

This is the way I'm calling the Picker:

MyPicker.drawColSeperatorLines = True
MyPicker.LocalizationInt = 6
MyPicker.StartYear = DateTime.Now.Year - 3
MyPicker.EndYear = DateTime.Now.Year + 3
MyPicker.SelectedDate = DateTime.Now
MyPicker.TimeMode = 24
MyPicker.flashSeparator = False
MyPicker.Invalidate(False)
MyPicker.Show

and when I try to read the selected date/time (in the DateTimeWindow code, where I created a button with an action event) with:
ProgramWindow.chosenDate = self.SelectedDate
System.DebugLog("Datum = " + ProgramWindow.chosenDate.ToString(Locale.Current, DateTime.FormatStyles.Medium, DateTime.FormatStyles.Short))

I get the following:
Datum = 01.02.2020, 04:16

When I change the MyPicker.TimeMode to 12 it's:
Datum = 01.02.2020, 16:16

The picker itself displays the 24hour-mode correctly, but the property .SelectedDate does not.

Calendar Time Chooser Bug Found in Calendar Leap Year

Thanks to Jon Ogden for finding and fixing this leap year issue

In the method calcMonthNumber:

Currently:

Private Function calcMonthNumber(inMonth as String) As Integer
If inMonth = Localized_February AND LeapYearBool = True OR inMonth = Localized_August Then
Return 0
Elseif inMonth = Localized_February AND LeapYearBool = False Then
Return 0
Elseif inMonth = Localized_November OR inMonth = Localized_March Then
Return 1
Elseif inMonth = Localized_June Then
Return 2
ElseIf inMonth = Localized_September OR inMonth = Localized_December Then
Return 3
ElseIf inMonth = Localized_January AND LeapYearBool = True OR inMonth = Localized_April OR inMonth = Localized_July Then
Return 4
Elseif inMonth = Localized_January AND LeapYearBool = False OR inMonth = Localized_October Then
Return 5
Elseif inMonth = Localized_May Then
Return 6
End if
End Function
Problem is that in the above code, in non-leap years, February and August do not have the same day pattern. February, March and November have the same day pattern in non-leap years:

Corrected:

Private Function calcMonthNumber(inMonth as String) As Integer
If inMonth = Localized_February AND LeapYearBool = True OR inMonth = Localized_August Then
Return 0
Elseif (inMonth = Localized_February AND Not LeapYearBool) OR inMonth = Localized_November OR inMonth = Localized_March Then
Return 1
Elseif inMonth = Localized_June Then
Return 2
ElseIf inMonth = Localized_September OR inMonth = Localized_December Then
Return 3
ElseIf inMonth = Localized_January AND LeapYearBool = True OR inMonth = Localized_April OR inMonth = Localized_July Then
Return 4
Elseif inMonth = Localized_January AND LeapYearBool = False OR inMonth = Localized_October Then
Return 5
Elseif inMonth = Localized_May Then
Return 6
End if
End Function

view the output of the Submit button Issue

Hi Mike,

Bug in the program, put the date to view the output of the Submit button.

dim SelectedDate1 as Date = SelectedDate
MsgBox ("Thank you for choosing our project " + str(SelectedDate1))

Select 12h format go submit button, is ok.

Select 24 hour format go submit button, is wrong, puts one more day.

I try to put your app in a app with recursive dates, similar a contract, i need recursive dates with the same number day for each month, for example put in a db for a customer make the delivery note for the 5 of January, 5 of february, 5 of march, etc ,etc until 5 of december for example.

Is possible with your Add-On?

Thanks for your time,

Odon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.