Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Appointment HeaderText wrapp (Read 5134 times)
fractal07
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Location: France
Joined: Mar 13th, 2017
Appointment HeaderText wrapp
May 10th, 2017 at 7:34pm
Print Post  
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 + "..."?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Appointment HeaderText wrapp
Reply #1 - May 11th, 2017 at 7:50am
Print Post  
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
  
Back to top
 
IP Logged
 
fractal07
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Location: France
Joined: Mar 13th, 2017
Re: Appointment HeaderText wrapp
Reply #2 - May 12th, 2017 at 8:24am
Print Post  
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
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Appointment HeaderText wrapp
Reply #3 - May 12th, 2017 at 8:57am
Print Post  
Hi,

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

Regards,
Meppy
  
Back to top
 
IP Logged
 
fractal07
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Location: France
Joined: Mar 13th, 2017
Re: Appointment HeaderText wrapp
Reply #4 - May 12th, 2017 at 3:05pm
Print Post  
Hi Meppy,

Thank you for your support,  I sent you an email with your DragDrop code updated to show you the issue.
  
Back to top
 
IP Logged
 
fractal07
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Location: France
Joined: Mar 13th, 2017
Re: Appointment HeaderText wrapp
Reply #5 - May 26th, 2017 at 1:03pm
Print Post  
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
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint