Jump to content

Some Questions About TUniCalendarPanel


Frederick

Recommended Posts

1 - I only have the property ShowMonthView set. Is it possible to hide the Month button since it is redundant and clicking it does nothing?

2 - How do I change the background colour, font size, font style or font type of the header row?

3 - Is it possible to change the background colours of the entire weekend columns?

4 - Is it possible to highlight today's date by changing the font style and background of the cell?

5 - Is it possible to change the cell background of cells with events?

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1514)
 

tunicalendarpanel.png

Link to comment
Share on other sites

52 minutes ago, Frederick said:

1 - I only have the property ShowMonthView set. Is it possible to hide the Month button since it is redundant and clicking it does nothing?

One possible solution...

procedure TMainForm.UniCalendarPanel1ViewChange(Sender: TUniCalendarPanel;
  CurrentView: TUniCalendarViewType);
begin
  (Sender as TUniCalendarPanel).JSInterface.JSCode(#1'.down("[xtype=segmentedbutton][value=month]").hide();');
end;

 

Link to comment
Share on other sites

8 minutes ago, Sherzod said:

One possible solution...


procedure TMainForm.UniCalendarPanel1ViewChange(Sender: TUniCalendarPanel;
  CurrentView: TUniCalendarViewType);
begin
  (Sender as TUniCalendarPanel).JSInterface.JSCode(#1'.down("[xtype=segmentedbutton][value=month]").hide();');
end;

 

This works. Thanks.

Link to comment
Share on other sites

  • 1 year later...
On 12/19/2019 at 9:06 AM, Sherzod said:

Maybe you want something like this

CustomCSS:

.x-calendar-weeks-weekend-cell {
    background-color: lightgray;
}

 

Hello!

That works great for month-view, but not for week-view! (only tested in mobile version)

Is there a customCSS for week-view? Maybe for day-view, too?

Regards

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...