diff --git a/components/rx/trunk/Demos/RxDbGridExportToPDF/project1.lps b/components/rx/trunk/Demos/RxDbGridExportToPDF/project1.lps
index 818d807ca..29d2d9b82 100644
--- a/components/rx/trunk/Demos/RxDbGridExportToPDF/project1.lps
+++ b/components/rx/trunk/Demos/RxDbGridExportToPDF/project1.lps
@@ -3,7 +3,7 @@
-
+
@@ -33,9 +33,10 @@
+
-
-
+
+
@@ -86,7 +87,6 @@
-
@@ -460,7 +460,7 @@
-
+
@@ -655,127 +655,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
diff --git a/components/rx/trunk/docs/rxfpc.xml b/components/rx/trunk/docs/rxfpc.xml
index e30816de7..95c59a129 100644
--- a/components/rx/trunk/docs/rxfpc.xml
+++ b/components/rx/trunk/docs/rxfpc.xml
@@ -533,6 +533,14 @@
rdgCaseInsensitiveSort |
Параметр включает режим сортировки без учёта регистра символов в столбце RxDBGrid-а |
+
+ rdgWordWrap |
+ Разрешить использование TRxColumn.WordWrap для переноса строк |
+
+
+ rdgWordWrapTitles |
+ Перенос строк в заголовках |
+
diff --git a/components/rx/trunk/rxdbgrid.pas b/components/rx/trunk/rxdbgrid.pas
index beb55c812..2b8f90cb5 100644
--- a/components/rx/trunk/rxdbgrid.pas
+++ b/components/rx/trunk/rxdbgrid.pas
@@ -97,7 +97,8 @@ type
rdgAllowSortForm,
rdgAllowToolMenu,
rdgCaseInsensitiveSort,
- rdgWordWrap
+ rdgWordWrap,
+ rdgDisableWordWrapTitles
);
TOptionsRx = set of TOptionRx;
@@ -2833,7 +2834,10 @@ begin
H := H1;
end;
- RowHeights[0] := DefaultRowHeight * H;
+ if not (rdgDisableWordWrapTitles in OptionsRx) then
+ RowHeights[0] := DefaultRowHeight * H
+ else
+ RowHeights[0] := DefaultRowHeight;
if rdgFilter in OptionsRx then
begin
@@ -2916,7 +2920,10 @@ begin
Canvas.TextStyle:=T1;
DrawCellText(aCol, aRow, aRect, aState, ACaption);
Canvas.TextStyle:=T2; }
- WriteTextHeader(Canvas, aRect, ACaption, GetColumnAlignment(aCol, True));
+ if not (rdgDisableWordWrapTitles in OptionsRx) then
+ WriteTextHeader(Canvas, aRect, ACaption, GetColumnAlignment(aCol, True))
+ else
+ DrawCellText(aCol, aRow, aRect, aState, ACaption);
end;
end;