Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Swim Lane Title Alignment Issue (Read 2783 times)
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Swim Lane Title Alignment Issue
Oct 1st, 2013 at 12:36am
Print Post  
Hi,

Have a look at the attached screenshot.
I would like to align the text in the swim lane header both vertically and horizontally. 
I seem to have achieved "one" of these.

Here's my code:

Code (C++)
Select All
protected void createDataLane(Grid grid)  // Create the Data swim lane
    {
        grid.RowHeaders.Add(new Header(dataSwimLaneName));
        Header swim1Header = grid.FindRow(dataSwimLaneName);
        swim1Header.RotateTitle = true;
        swim1Header.TitleFormat.Alignment = StringAlignment.Center;
        swim1Header.TitleFormat.LineAlignment = StringAlignment.Center;
        swim1Header.TitleFont = new Font("Arial", 12, System.Drawing.FontStyle.Bold);
        swim1Header.TitleColor = System.Drawing.ColorTranslator.FromHtml("#0000FF");
        swim1Header.Style.BackgroundBrush = new MindFusion.Drawing.SolidBrush(Color.LightYellow);
        swim1Header.Height = 20;
        swim1Header.Width = 20;
        dataLaneExists = true;
        dataLaneNum = numLanes;
        numLanes++;
    } 



Although the TitleFormat.Alignment and TitleFormat.LineAlignment are set to "Center", I only seem to get one of these.

Suggestions?

Thanks

Jim
  

SwimLane_Title_Alignment_Issue_-_30Sep2013.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Swim Lane Title Alignment Issue
Reply #1 - Oct 1st, 2013 at 9:37am
Print Post  
Hi,

That code centers them in both directions in my test project. Are you setting any other text-related properties on the headers or grid?

Stoyan
  
Back to top
 
IP Logged
 
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Re: Swim Lane Title Alignment Issue
Reply #2 - Oct 2nd, 2013 at 2:38pm
Print Post  
Hi,

I've got it working.
It seems that one of 2 things was causing the alignment issue.
1. For at least 1 of my lanes I had not specified any alignment, and
2. I had added a ColumnHeader that had an alignment value of "near" specified.

Anyway, all is well now.

Jim
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint