Menu

Using a DPFDatePicker with a DPFTexField

Bryan
2014-02-16
2014-02-20
  • Bryan

    Bryan - 2014-02-16

    Hello all,
    I have a popover than has 2 DPFTextField. When a user touches inside the textfield, I want to show another popover that has a DPFDatePicker so the user can select a date to be put inside the textfield.

    The problems I am having are:
    1. The keyboard opens also. I want to stop this.
    2. How do I set the date in the textfield from the datetimepicker popover?
    - This datetimepicker popover will be used in several different places throughout my app, so I need a way to tell the datetimepicker which textfield to be set. (I hope that makes sense).

    Is this the best implementation of using a datepicker?

    Any suggestions would be greatly appreciated.
    Regards,
    Bryan

     
  • Bryan

    Bryan - 2014-02-16

    Ok, I was able to figure out problem 1 by creating a DPFTextField variable, but I still can't figure out how to keep the keyboard from showing.

    Regards,
    Bryan

     
  • Fenistil

    Fenistil - 2014-02-19

    Hi

    Why do not use TDPFDateTimeComboBox?

    Regards

     
  • Bryan

    Bryan - 2014-02-20

    hmmmm, I did not realize there was one. haha. That would be perfect. Thanks!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.