Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Positioning Datepicker

When implementing the DatePicker on a dialogbox for date selection what's the best way to position the dialogbox so it displays relative to the date editbox or editable cell on the parent form?

Comments

  • My suggestion is to look at the source code for Popup_Month since it does this already. If you look at the StartWindow gosub you'll find logic that calculates the x/y position that you'll pass into the Dialog_Box function.

    We wrote our own replacement for Popup_Month using the SRP DatePicker control. Rather than reinvent the wheel we started with this code and adapted as needed.
  • That's what I've done in the past, used POPUP_MONTH. I was wondering if you used a different approach with the SRP Datepicker. Thanks
Sign In or Register to comment.