The MindFusion Forums
Scheduling and Gantt Components >> Windows Forms >> Appointment HeaderText wrapp
https://mindfusion.eu/Forum/YaBB.pl?num=1494444841

Message started by fractal07 on May 10th, 2017 at 7:34pm

Title: Appointment HeaderText wrapp
Post by fractal07 on May 10th, 2017 at 7:34pm
Hello Meppy,
I'm working (VS2015, C#, WinForms) on a TimeTable with many ressources (=columns). When I create appointments, the text wrapping of the HeaderText makes it disappear if the string is too long.
Is there a method to control this or display the maximum of characters of the headerText in the width of the column + "..."?

Title: Re: Appointment HeaderText wrapp
Post by Meppy on May 11th, 2017 at 7:50am
Hi,

In my tests the header text displays ellipsis at the end if it doesn't fit. Isn't it the case for you? In any case currently there is no way to specify this through the API. You can use custom drawing to draw the text the way you want it.

Regards,
Meppy

Title: Re: Appointment HeaderText wrapp
Post by fractal07 on May 12th, 2017 at 8:24am
Actually not, if the Header is too long, it displays an empty string and ellipsis are displayed only if I select the appointment (1 click)
... and in the DragDrop sample, ellipsis are ok. I will check the differences between my code and the sample.
Sorry for the inconvenience

Title: Re: Appointment HeaderText wrapp
Post by Meppy on May 12th, 2017 at 8:57am
Hi,

You can send me your sample to meppy@mindfusion.eu and I will have a look at it.

Regards,
Meppy

Title: Re: Appointment HeaderText wrapp
Post by fractal07 on May 12th, 2017 at 3:05pm
Hi Meppy,

Thank you for your support,  I sent you an email with your DragDrop code updated to show you the issue.

Title: Re: Appointment HeaderText wrapp
Post by fractal07 on May 26th, 2017 at 1:03pm
Back at work, I tried your answer and it works perfectly, thank you!

For information:
_schedule.ItemSettings.HeaderSize needs to be increased in the same order than the font height

The MindFusion Forums » Powered by YaBB 2.6.11!
YaBB Forum Software © 2000-2024. All Rights Reserved.