D devlei Active Member Licensed User Longtime User Jun 18, 2013 #1 Firstly, thank you for the AnotherDatePicker Class - it is really great! I have a Date/Time label, which when the user clicks, uses the AnotherDatePicker to select the date. Previously I had used other Date Pickers and thereafter a TimePicker to get the Date/Time for the Label. The problem is that it does not wait for me to select a date before going to the Time Picker. I understand that this is because it is non-modal. I need to be able to select both Date (from AnotherDatePicker) and Time and combine them into a String which is displayed in the relevant DateFormat in a Label. From searching the Forum I can see the following options: Modify the AnotherDatePicker class to include a Time-Picker - I have looked at the Class, but my programming skills are too basic to figure it out!! Use the Closed Event of AnotherDatePicker v1.1 - I can't find an example and don't want to change from the Label to CustomView! Use the b4aCVDateTimePicker library - It seems like the Date & Time are separate and not combined into one! Any advice would be welcome!! Dave
Firstly, thank you for the AnotherDatePicker Class - it is really great! I have a Date/Time label, which when the user clicks, uses the AnotherDatePicker to select the date. Previously I had used other Date Pickers and thereafter a TimePicker to get the Date/Time for the Label. The problem is that it does not wait for me to select a date before going to the Time Picker. I understand that this is because it is non-modal. I need to be able to select both Date (from AnotherDatePicker) and Time and combine them into a String which is displayed in the relevant DateFormat in a Label. From searching the Forum I can see the following options: Modify the AnotherDatePicker class to include a Time-Picker - I have looked at the Class, but my programming skills are too basic to figure it out!! Use the Closed Event of AnotherDatePicker v1.1 - I can't find an example and don't want to change from the Label to CustomView! Use the b4aCVDateTimePicker library - It seems like the Date & Time are separate and not combined into one! Any advice would be welcome!! Dave
D drachmad Member Licensed User Longtime User Jun 18, 2013 #2 Is a wheel type suit you: http://www.b4x.com/forum/additional-libraries-classes-official-updates/24319-class-clswheel-input-wheels.html#post140741 It has date+time combine. Upvote 0
Is a wheel type suit you: http://www.b4x.com/forum/additional-libraries-classes-official-updates/24319-class-clswheel-input-wheels.html#post140741 It has date+time combine.
D devlei Active Member Licensed User Longtime User Jun 18, 2013 #3 The Wheel Type is fine for the Time Picker, but for the Date Picker most people are familiar with and prefer the calendar-style of the AnotherDatePicker. I would like to use the AnotherDatePicker first and then a Time Picker, but can't get it right yet because the Time Picker pops up before date is selected. Upvote 0
The Wheel Type is fine for the Time Picker, but for the Date Picker most people are familiar with and prefer the calendar-style of the AnotherDatePicker. I would like to use the AnotherDatePicker first and then a Time Picker, but can't get it right yet because the Time Picker pops up before date is selected.
klaus Expert Licensed User Longtime User Jun 18, 2013 #4 What's the problem. Look at the attached test project. - Click on the second Label. - AnotherDatePicker is displayed - Select a date - The Time select wheel is displayed - Select a time - Click on OK - Date and time are displayed in the second label. Best regards. Attachments Date_Time_Pickers.zip Date_Time_Pickers.zip 17.8 KB · Views: 776 Upvote 0
What's the problem. Look at the attached test project. - Click on the second Label. - AnotherDatePicker is displayed - Select a date - The Time select wheel is displayed - Select a time - Click on OK - Date and time are displayed in the second label. Best regards.
D devlei Active Member Licensed User Longtime User Jun 18, 2013 #5 Thanks, Klaus, you're a star!! Initially I still had AnotherDatePicker v1.0, but just copied & pasted v1.10 and the Events were not available like they are in your example. I'm sure I'll be able to sort it out from here. Dave Upvote 0
Thanks, Klaus, you're a star!! Initially I still had AnotherDatePicker v1.0, but just copied & pasted v1.10 and the Events were not available like they are in your example. I'm sure I'll be able to sort it out from here. Dave
klaus Expert Licensed User Longtime User Jun 18, 2013 #6 Yes, the Closed event was added in version 1.10 of AnotherDatePicker. When using relative 'new' classes it's good practice to look for updates and use the latest one. Best regards. Upvote 0
Yes, the Closed event was added in version 1.10 of AnotherDatePicker. When using relative 'new' classes it's good practice to look for updates and use the latest one. Best regards.
D devlei Active Member Licensed User Longtime User Jun 18, 2013 #7 I cannot seem to get the AnotherDatePicker's Closed event to be available from my Activity. If I go to the example you sent, Klaus, and type in "Sub adp" and hit CTRL+Spacebar, I get the option to select "Sub adpDate_Closed". However, when I do the same from my Activity the Closed event is not there. I must be overlooking something. I have attached a small example. Dave Attachments TestADP.zip TestADP.zip 13.5 KB · Views: 369 Upvote 0
I cannot seem to get the AnotherDatePicker's Closed event to be available from my Activity. If I go to the example you sent, Klaus, and type in "Sub adp" and hit CTRL+Spacebar, I get the option to select "Sub adpDate_Closed". However, when I do the same from my Activity the Closed event is not there. I must be overlooking something. I have attached a small example. Dave
klaus Expert Licensed User Longtime User Jun 19, 2013 #8 I cannot seem to get the AnotherDatePicker's Closed event to be available from my Activity. If I go to the example you sent, Klaus, and type in "Sub adp" and hit CTRL+Spacebar, I get the option to select "Sub adpDate_Closed". Click to expand... In the code I posted you get the proposal of "Sub adpDate_Closed" because it already exists ! Adding the following in your Activity will do it: Code: Copy Sub adpStart_Closed(Canceld As Boolean, Date As Long) If Canceld = False Then ' your code End If End Sub Best regarads. Upvote 0
I cannot seem to get the AnotherDatePicker's Closed event to be available from my Activity. If I go to the example you sent, Klaus, and type in "Sub adp" and hit CTRL+Spacebar, I get the option to select "Sub adpDate_Closed". Click to expand... In the code I posted you get the proposal of "Sub adpDate_Closed" because it already exists ! Adding the following in your Activity will do it: Code: Copy Sub adpStart_Closed(Canceld As Boolean, Date As Long) If Canceld = False Then ' your code End If End Sub Best regarads.
D devlei Active Member Licensed User Longtime User Jun 19, 2013 #9 Thank you, Klaus! A basic lack of understanding of events/classes on my part. Upvote 0