Polylog Posted February 7 Share Posted February 7 Hello, How to update the title property of a TUniCalendarPanel at runtime? I am sure it is easy for people mastering ExtJs. But I still need to learn most of it. Thanks already for the help. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 7 Share Posted February 7 4 minutes ago, Polylog said: How to update the title property of a TUniCalendarPanel at runtime? Hello, Can you clarify? Quote Link to comment Share on other sites More sharing options...
Polylog Posted February 7 Author Share Posted February 7 The form is already shown and the person works with the calendar. He do an action who makes something happen server side. we have a calendar X : TUniCalendarPanel; And we want to update the title : X.title := 'New Title'; This does not do anything client side. The question is : What can I do to update the title of a TUniCalendarPanel on client side ? I can make a small demo, if necessary? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 7 Share Posted February 7 I will try to check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 8 Share Posted February 8 11 hours ago, Polylog said: And we want to update the title : X.title := 'New Title'; Hello, Try this approach for now: procedure TMainForm.UniButton1Click(Sender: TObject); begin with UniCalendarPanel1 do begin Title := 'New title'; JSInterface.JSCall('setTitle', [Title]); end; end; 1 Quote Link to comment Share on other sites More sharing options...
Polylog Posted February 8 Author Share Posted February 8 Thanks for the quick and great answer! It works well. 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.