Jump to content

unicalendar panel


jahlxx

Recommended Posts

I'll try to do what I'm looking for in other way, using calendarpanel instead of calendar (as in a prior topic).

 

Changing unicalendar to unicalendar panel I think it could be more easy for me.

 

But I have the same questions:

 

- How can I highlight a day in a calendar panel where exists events?

 

- How can hide the elements red-boxed in the attached image? (this is not important at all) (are the days of the prior and next month)

 

- How can I get better the aspect ob the elements black-boxed attached image?

 

 

 

 

Thanks.

 

post-4123-0-62224600-1481717240_thumb.jpg

Link to comment
Share on other sites

I've found this, for the 3rd questions in my first entry of this topic.

 

function beforeInit(sender, config)
{
  config.monthViewCfg = {
    showHeader: true,
  }
}

 

but with this, the first day of week is allways sunday. I've the firstdayofweek property of the calendar set to monday, but with this piece of code, allways is set to sunday.

 

I don't know why.

Link to comment
Share on other sites

ok. works.

 

to have what I need, "only" need this:

 

- highlight a day in a calendar panel where exists events?

 

- When click in an event, a popup windows appears, showing event info. Can I deactivate this behaviour? Could be better for me, in an event click, do the same as in dayclick

 

thanks.

Link to comment
Share on other sites

I don't want a popup message window when click in an event. I'd like eventclick do nothing or do the same effect that dayclick.

 

Maybe you wanted like this ?!:

procedure TMainForm.UniCalendarPanel1EventClick(Sender: TUniCalendarPanel;
  AEventId: Integer; AEvent: TUniCalendarEvent);
begin
  {if not EventEditForm.Visible then
  begin
    EventEditForm.Calenedar:=UniCalendarPanel1;
    EventEditForm.SetEvent(AEvent);
    EventEditForm.ShowModal;
  end;}
end;
Link to comment
Share on other sites

Not exactly.

 

As I can see, my "problems" are due to the size of the calendar panel. If the size of the panel is height and width enouh, the events appears colored and don¡t show window on event click (you can see in attached image).

 

Has any solution?

post-4123-0-78202800-1481808241_thumb.png

Link to comment
Share on other sites

  • 4 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...