![]()  | 
 
[SOLVED] Column Header Word Wrap | 
 
    Post Reply  
   | 
  
| Author | |
   
   jpbro  
   
   Senior Member  
   Joined: 12 January 2007 Status: Offline Points: 1357  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: [SOLVED] Column Header Word WrapPosted: 26 February 2010 at 12:26pm  | 
 
| 
   
    
   
Is there a way to get column header captions to display on more than one line if they are too wide for the column? I tried using the xtpAlignmentWordBreak flag for the Alignment, but it didn't work: 
   
  
 Playing with .PaintManager.HeaderHeightFormula provided more vertical space, but the text still didn't wrap. Is this possible?  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 16.2.6 
   
  Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6  | 
 |
![]()  | 
 |
   
   jpbro  
   
   Senior Member  
   Joined: 12 January 2007 Status: Offline Points: 1357  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 February 2010 at 12:34pm | 
 
| 
   
    
   Looks like I can use markup to get the desired result: 
   
  
  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 16.2.6 
   
  Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6  | 
 |
![]()  | 
 |
   
   SuperMario  
   
   Senior Member  
    
   Joined: 14 February 2004 Status: Offline Points: 18057  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 February 2010 at 1:02pm | 
 
| 
   
    
   Actually.... 
   
  Column.HeaderAlignment = xtpAlignmentVCenter + xtpAlignmentRight + xtpAlignmentWordBreak  | 
 |
![]()  | 
 |
   
   Aaron  
   
   Senior Member  
   Joined: 29 January 2008 Status: Offline Points: 2192  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 February 2010 at 1:02pm | 
 
| 
   
    
   Hi Jason,
 
   
  You need to set .HeaderAlignment property to xtpAlignmentWordBreak (not .Alignment  
 ) | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 15.0.2 
 
   
  Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option....  | 
 |
![]()  | 
 |
   
   jpbro  
   
   Senior Member  
   Joined: 12 January 2007 Status: Offline Points: 1357  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 February 2010 at 1:03pm | 
 
| 
   
    
   Duh ;) 
   
  Thanks guys.  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 16.2.6 
   
  Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6  | 
 |
![]()  | 
 |
   
   Aaron  
   
   Senior Member  
   Joined: 29 January 2008 Status: Offline Points: 2192  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 February 2010 at 1:06pm | 
 
| 
   
    
   Hi,
 
   
  That's amazing, right? SuperMario replied the same time as I did. Wish we would get always that fast a reply....  
![]()  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 15.0.2 
 
   
  Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option....  | 
 |
![]()  | 
 |
   
   jpbro  
   
   Senior Member  
   Joined: 12 January 2007 Status: Offline Points: 1357  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 February 2010 at 2:15pm | 
 
| 
   
    
   ;) I have noticed that things have gotten a little friendlier around here again!
    
   
   | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 16.2.6 
   
  Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6  | 
 |
![]()  | 
 |
   
   SuperMario  
   
   Senior Member  
    
   Joined: 14 February 2004 Status: Offline Points: 18057  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 February 2010 at 5:04pm | 
 
| 
   
    
   Good to hear  
   
   
    | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |