Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 06-06-2006, 10:27 PM
Jasser Jasser is offline
Moderator
 
Join Date: Jan 2005
Location: Saudi Arabia
Posts: 5,060
Default Multi-line column caption in a DBGrid.

Anybody knows how to draw a multi-line column caption in a DBGrid? I found this link [link]http://www.swissdelphicenter.ch/en/showcode.php?id=2453[/link] which works fine unless I change the grid "BiDiMode" property to bdRightToLeft (Arabic language).

Regards,
Abdulaziz Jasser
Reply With Quote
  #2  
Old 06-06-2006, 11:37 PM
mshkolnik mshkolnik is offline
Senior Member
 
Join Date: Jul 2001
Posts: 4,195
Default RE: Multi-line column caption in a DBGrid.

Add the DT_RTLREADING flag:
...
Al := Al or DT_WORDBREAK or DT_END_ELLIPSIS or DT_RTLREADING;
DrawText(Canvas.Handle, PChar(Column.Title.Caption), - 1, R, Al);

With best regards, Mike Shkolnik
http://www.scalabium.com
Reply With Quote
  #3  
Old 06-06-2006, 11:51 PM
Jasser Jasser is offline
Moderator
 
Join Date: Jan 2005
Location: Saudi Arabia
Posts: 5,060
Default RE: Multi-line column caption in a DBGrid.

Thanks...but did not work. I still can not see any captions.

Regards,
Abdulaziz Jasser
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:36 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.