MSMK Posted May 13, 2021 Share Posted May 13, 2021 Здравствуйте! Как программно отобразить календарь у компонента UniDateTimePicker. Нужно продублировать действие на нажатие кнопки справа отдельно в Button. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 13, 2021 Share Posted May 13, 2021 http://forums.unigui.com/index.php?/topic/6193-solved-tunidatetimepicker-tunidbdatetimepicker-open-automatic/&do=findComment&comment=31690 Quote Link to comment Share on other sites More sharing options...
MSMK Posted May 14, 2021 Author Share Posted May 14, 2021 14 hours ago, Sherzod said: http://forums.unigui.com/index.php?/topic/6193-solved-tunidatetimepicker-tunidbdatetimepicker-open-automatic/&do=findComment&comment=31690 Спасибо! Айт кабыл болсын! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 14, 2021 Share Posted May 14, 2021 Спасибо, и Вас также! 1 Quote Link to comment Share on other sites More sharing options...
MSMK Posted May 27, 2021 Author Share Posted May 27, 2021 On 5/13/2021 at 6:31 PM, Sherzod said: http://forums.unigui.com/index.php?/topic/6193-solved-tunidatetimepicker-tunidbdatetimepicker-open-automatic/&do=findComment&comment=31690 если указать в Kind = tUniDateTime с отображением выбора даты и времени, то выводит ошибку Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 27, 2021 Share Posted May 27, 2021 ОК, сейчас проверю. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 27, 2021 Share Posted May 27, 2021 18 minutes ago, =GGG= said: если указать в Kind = tUniDateTime с отображением выбора даты и времени, то выводит ошибку Попробуйте: procedure TMainForm.UniButton1Click(Sender: TObject); begin with UniDateTimePicker1 do if Kind = tUniDateTime then JSInterface.JSCall('getRefItems()[0].expand', []) //or collapse else if Kind = tUniDate then JSInterface.JSCall('expand', []) //or collapse end; Quote Link to comment Share on other sites More sharing options...
MSMK Posted May 27, 2021 Author Share Posted May 27, 2021 8 minutes ago, Sherzod said: Попробуйте: procedure TMainForm.UniButton1Click(Sender: TObject); begin with UniDateTimePicker1 do if Kind = tUniDateTime then JSInterface.JSCall('getRefItems()[0].expand', []) //or collapse else if Kind = tUniDate then JSInterface.JSCall('expand', []) //or collapse end; спасибо! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.