You've already forked lazarus-ccr
tvplanit: Fix some translation-related layout issues in several forms. Add missing resourcestrings. Fix trask items being painted with task header font.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4708 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -249,10 +249,6 @@ msgstr "Firma"
|
|||||||
msgid "Company:"
|
msgid "Company:"
|
||||||
msgstr "Firma:"
|
msgstr "Firma:"
|
||||||
|
|
||||||
#: vpsr.rscomplete
|
|
||||||
msgid "Task complete"
|
|
||||||
msgstr "Aufgabe fertiggestellt"
|
|
||||||
|
|
||||||
#: vpsr.rscompletedon
|
#: vpsr.rscompletedon
|
||||||
msgid "Completed on"
|
msgid "Completed on"
|
||||||
msgstr "Fertiggestellt am"
|
msgstr "Fertiggestellt am"
|
||||||
@ -427,6 +423,15 @@ msgstr "Ereignis"
|
|||||||
msgid "Print Preview"
|
msgid "Print Preview"
|
||||||
msgstr "Druckvorschau"
|
msgstr "Druckvorschau"
|
||||||
|
|
||||||
|
#: vpsr.rsdlgreseditcaption
|
||||||
|
msgid "Resource Edit"
|
||||||
|
msgstr "Ressource bearbeiten"
|
||||||
|
|
||||||
|
#: vpsr.rsdlgreseditdescription
|
||||||
|
msgctxt "vpsr.rsdlgreseditdescription"
|
||||||
|
msgid "Description"
|
||||||
|
msgstr "Beschreibung"
|
||||||
|
|
||||||
#: vpsr.rsdlgtaskedit
|
#: vpsr.rsdlgtaskedit
|
||||||
msgid "Task"
|
msgid "Task"
|
||||||
msgstr "Aufgabe"
|
msgstr "Aufgabe"
|
||||||
@ -851,6 +856,10 @@ msgstr "Termin-Wiederholung:"
|
|||||||
msgid "Reminder"
|
msgid "Reminder"
|
||||||
msgstr "Erinnerung"
|
msgstr "Erinnerung"
|
||||||
|
|
||||||
|
#: vpsr.rsresource
|
||||||
|
msgid "Resource"
|
||||||
|
msgstr "Ressource"
|
||||||
|
|
||||||
#: vpsr.rssaturday
|
#: vpsr.rssaturday
|
||||||
msgid "Saturday"
|
msgid "Saturday"
|
||||||
msgstr "Samstag"
|
msgstr "Samstag"
|
||||||
@ -900,6 +909,11 @@ msgstr "Sonntag"
|
|||||||
msgid "Wy"
|
msgid "Wy"
|
||||||
msgstr "Wy"
|
msgstr "Wy"
|
||||||
|
|
||||||
|
#: vpsr.rstaskcomplete
|
||||||
|
msgctxt "vpsr.rstaskcomplete"
|
||||||
|
msgid "Task complete"
|
||||||
|
msgstr "Aufgabe fertiggestellt"
|
||||||
|
|
||||||
#: vpsr.rstaskpopupadd
|
#: vpsr.rstaskpopupadd
|
||||||
msgid "Add Task..."
|
msgid "Add Task..."
|
||||||
msgstr "Aufgabe hinzufügen..."
|
msgstr "Aufgabe hinzufügen..."
|
||||||
|
@ -239,10 +239,6 @@ msgstr ""
|
|||||||
msgid "Company:"
|
msgid "Company:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rscomplete
|
|
||||||
msgid "Task complete"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: vpsr.rscompletedon
|
#: vpsr.rscompletedon
|
||||||
msgid "Completed on"
|
msgid "Completed on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -417,6 +413,15 @@ msgstr ""
|
|||||||
msgid "Print Preview"
|
msgid "Print Preview"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rsdlgreseditcaption
|
||||||
|
msgid "Resource Edit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rsdlgreseditdescription
|
||||||
|
msgctxt "vpsr.rsdlgreseditdescription"
|
||||||
|
msgid "Description"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsdlgtaskedit
|
#: vpsr.rsdlgtaskedit
|
||||||
msgid "Task"
|
msgid "Task"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -841,6 +846,10 @@ msgstr ""
|
|||||||
msgid "Reminder"
|
msgid "Reminder"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rsresource
|
||||||
|
msgid "Resource"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rssaturday
|
#: vpsr.rssaturday
|
||||||
msgid "Saturday"
|
msgid "Saturday"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -890,6 +899,11 @@ msgstr ""
|
|||||||
msgid "Wy"
|
msgid "Wy"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rstaskcomplete
|
||||||
|
msgctxt "vpsr.rstaskcomplete"
|
||||||
|
msgid "Task complete"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rstaskpopupadd
|
#: vpsr.rstaskpopupadd
|
||||||
msgid "Add Task..."
|
msgid "Add Task..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -359,26 +359,6 @@ end;
|
|||||||
{=====}
|
{=====}
|
||||||
|
|
||||||
procedure TContactEditForm.ResizeControls;
|
procedure TContactEditForm.ResizeControls;
|
||||||
|
|
||||||
function GetLabelWidth (ALabel : TLabel) : Integer;
|
|
||||||
var
|
|
||||||
OldFont : TFont;
|
|
||||||
|
|
||||||
begin
|
|
||||||
OldFont := TFont.Create;
|
|
||||||
try
|
|
||||||
OldFont.Assign (Canvas.Font);
|
|
||||||
try
|
|
||||||
Canvas.Font.Assign (ALabel.Font);
|
|
||||||
Result := Canvas.TextWidth (ALabel.Caption);
|
|
||||||
finally
|
|
||||||
Canvas.Font.Assign (OldFont);
|
|
||||||
end;
|
|
||||||
finally
|
|
||||||
OldFont.Free;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
const
|
const
|
||||||
ComboArrowWidth = 32;
|
ComboArrowWidth = 32;
|
||||||
FieldVertSep = 25;
|
FieldVertSep = 25;
|
||||||
|
@ -39,10 +39,10 @@ object DlgEventEdit: TDlgEventEdit
|
|||||||
ParentFont = False
|
ParentFont = False
|
||||||
end
|
end
|
||||||
object OKBtn: TButton
|
object OKBtn: TButton
|
||||||
Left = 509
|
Left = 528
|
||||||
Height = 25
|
Height = 25
|
||||||
Top = 8
|
Top = 8
|
||||||
Width = 85
|
Width = 75
|
||||||
Anchors = [akTop, akRight]
|
Anchors = [akTop, akRight]
|
||||||
Caption = '&OK'
|
Caption = '&OK'
|
||||||
Default = True
|
Default = True
|
||||||
@ -51,10 +51,10 @@ object DlgEventEdit: TDlgEventEdit
|
|||||||
TabStop = False
|
TabStop = False
|
||||||
end
|
end
|
||||||
object CancelBtn: TButton
|
object CancelBtn: TButton
|
||||||
Left = 602
|
Left = 608
|
||||||
Height = 25
|
Height = 25
|
||||||
Top = 8
|
Top = 8
|
||||||
Width = 85
|
Width = 75
|
||||||
Anchors = [akTop, akRight]
|
Anchors = [akTop, akRight]
|
||||||
Cancel = True
|
Cancel = True
|
||||||
Caption = '&Cancel'
|
Caption = '&Cancel'
|
||||||
@ -70,7 +70,7 @@ object DlgEventEdit: TDlgEventEdit
|
|||||||
Width = 679
|
Width = 679
|
||||||
Anchors = [akTop, akLeft, akRight]
|
Anchors = [akTop, akLeft, akRight]
|
||||||
Caption = 'Appointment'
|
Caption = 'Appointment'
|
||||||
ClientHeight = 199
|
ClientHeight = 198
|
||||||
ClientWidth = 675
|
ClientWidth = 675
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
object DescriptionLbl: TLabel
|
object DescriptionLbl: TLabel
|
||||||
@ -290,7 +290,7 @@ object DlgEventEdit: TDlgEventEdit
|
|||||||
end
|
end
|
||||||
object StartTime: TComboBox
|
object StartTime: TComboBox
|
||||||
Left = 231
|
Left = 231
|
||||||
Height = 22
|
Height = 23
|
||||||
Top = 104
|
Top = 104
|
||||||
Width = 93
|
Width = 93
|
||||||
ItemHeight = 15
|
ItemHeight = 15
|
||||||
@ -300,7 +300,7 @@ object DlgEventEdit: TDlgEventEdit
|
|||||||
end
|
end
|
||||||
object EndTime: TComboBox
|
object EndTime: TComboBox
|
||||||
Left = 231
|
Left = 231
|
||||||
Height = 22
|
Height = 23
|
||||||
Top = 131
|
Top = 131
|
||||||
Width = 93
|
Width = 93
|
||||||
ItemHeight = 15
|
ItemHeight = 15
|
||||||
@ -321,7 +321,7 @@ object DlgEventEdit: TDlgEventEdit
|
|||||||
end
|
end
|
||||||
object RecurringType: TComboBox
|
object RecurringType: TComboBox
|
||||||
Left = 379
|
Left = 379
|
||||||
Height = 22
|
Height = 23
|
||||||
Top = 104
|
Top = 104
|
||||||
Width = 187
|
Width = 187
|
||||||
ItemHeight = 15
|
ItemHeight = 15
|
||||||
@ -344,7 +344,7 @@ object DlgEventEdit: TDlgEventEdit
|
|||||||
end
|
end
|
||||||
object AlarmAdvType: TComboBox
|
object AlarmAdvType: TComboBox
|
||||||
Left = 231
|
Left = 231
|
||||||
Height = 22
|
Height = 23
|
||||||
Top = 167
|
Top = 167
|
||||||
Width = 93
|
Width = 93
|
||||||
ItemHeight = 15
|
ItemHeight = 15
|
||||||
|
@ -39,7 +39,7 @@ uses
|
|||||||
{$ELSE}
|
{$ELSE}
|
||||||
Windows, Consts,
|
Windows, Consts,
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
Buttons, Classes, Controls, ExtCtrls, Forms, Graphics, Messages,
|
Buttons, Classes, Controls, StdCtrls, ExtCtrls, Forms, Graphics, Messages,
|
||||||
SysUtils, VpBase, VpData, VpConst;
|
SysUtils, VpBase, VpData, VpConst;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -127,6 +127,8 @@ function LineToStartTime(Line: Integer; Granularity: TVpGranularity): TDateTime;
|
|||||||
|
|
||||||
function GetLineDuration(Granularity: TVpGranularity): Double;
|
function GetLineDuration(Granularity: TVpGranularity): Double;
|
||||||
|
|
||||||
|
function GetLabelWidth(ALabel : TLabel) : Integer;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
@ -576,4 +578,15 @@ begin
|
|||||||
end;
|
end;
|
||||||
{=====}
|
{=====}
|
||||||
|
|
||||||
|
function GetLabelWidth(ALabel : TLabel) : Integer;
|
||||||
|
var
|
||||||
|
canvas: TControlCanvas;
|
||||||
|
begin
|
||||||
|
canvas := TControlCanvas.Create;
|
||||||
|
canvas.Control := ALabel;
|
||||||
|
Result := canvas.TextWidth(ALabel.Caption);
|
||||||
|
canvas.Free;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
@ -60,7 +60,7 @@ object ResEditForm: TResEditForm
|
|||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
object tabResource: TTabSheet
|
object tabResource: TTabSheet
|
||||||
Caption = 'Resource'
|
Caption = 'Resource'
|
||||||
ClientHeight = 182
|
ClientHeight = 181
|
||||||
ClientWidth = 392
|
ClientWidth = 392
|
||||||
object lblDescription: TLabel
|
object lblDescription: TLabel
|
||||||
Left = 8
|
Left = 8
|
||||||
@ -122,7 +122,7 @@ object ResEditForm: TResEditForm
|
|||||||
end
|
end
|
||||||
object NotesMemo: TMemo
|
object NotesMemo: TMemo
|
||||||
Left = 8
|
Left = 8
|
||||||
Height = 103
|
Height = 102
|
||||||
Top = 67
|
Top = 67
|
||||||
Width = 374
|
Width = 374
|
||||||
Anchors = [akTop, akLeft, akRight, akBottom]
|
Anchors = [akTop, akLeft, akRight, akBottom]
|
||||||
|
@ -98,6 +98,9 @@ implementation
|
|||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
uses
|
||||||
|
vpSR, vpMisc;
|
||||||
|
|
||||||
function ExecuteResourceDlg(Resource: TVpResource): Boolean;
|
function ExecuteResourceDlg(Resource: TVpResource): Boolean;
|
||||||
var
|
var
|
||||||
EditForm: TResEditForm;
|
EditForm: TResEditForm;
|
||||||
@ -196,6 +199,17 @@ procedure TResEditForm.PopulateSelf;
|
|||||||
begin
|
begin
|
||||||
DescriptionEdit.Text := Resource.Description;
|
DescriptionEdit.Text := Resource.Description;
|
||||||
NotesMemo.Text := Resource.Notes;
|
NotesMemo.Text := Resource.Notes;
|
||||||
|
|
||||||
|
Caption := RSDlgResEditCaption;
|
||||||
|
tabResource.Caption := RSResource;
|
||||||
|
lblDescription.Caption := RSDlgResEditDescription;
|
||||||
|
lblNotes.Caption := RSNotes;
|
||||||
|
OKBtn.Caption := RSOKBtn;
|
||||||
|
CancelBtn.Caption := RSCancelBtn;
|
||||||
|
|
||||||
|
DescriptionEdit.Left := lblDescription.Left + GetLabelWidth(lblDescription) + 8;
|
||||||
|
DescriptionEdit.Width := imgResources.Left - 16 - DescriptionEdit.Left;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
{=====}
|
{=====}
|
||||||
|
|
||||||
|
@ -252,11 +252,16 @@ resourcestring
|
|||||||
RSDlgTaskEdit = 'Task';
|
RSDlgTaskEdit = 'Task';
|
||||||
RSDueDate = 'Due Date:';
|
RSDueDate = 'Due Date:';
|
||||||
RSDetails = 'Details:';
|
RSDetails = 'Details:';
|
||||||
RSComplete = 'Task complete';
|
RSTaskComplete = 'Task complete';
|
||||||
RSDaysOverdue = ' Days overdue';
|
RSDaysOverdue = ' Days overdue';
|
||||||
RSCreatedOn = 'Created on';
|
RSCreatedOn = 'Created on';
|
||||||
RSCompletedOn = 'Completed on';
|
RSCompletedOn = 'Completed on';
|
||||||
|
|
||||||
|
{ Resource Edit Dialog Captions }
|
||||||
|
RSDlgResEditCaption = 'Resource Edit';
|
||||||
|
RSDlgResEditDescription = 'Description';
|
||||||
|
RSResource = 'Resource';
|
||||||
|
|
||||||
{ Reminder Dialog Captions}
|
{ Reminder Dialog Captions}
|
||||||
RSReminder = 'Reminder';
|
RSReminder = 'Reminder';
|
||||||
RSOverdue = 'OVERDUE!';
|
RSOverdue = 'OVERDUE!';
|
||||||
@ -273,28 +278,6 @@ resourcestring
|
|||||||
RS1Day = '1 day';
|
RS1Day = '1 day';
|
||||||
RSXDays = '%d days';
|
RSXDays = '%d days';
|
||||||
RS1Week = '1 week';
|
RS1Week = '1 week';
|
||||||
{
|
|
||||||
RS5Minutes = '5 Minutes';
|
|
||||||
RS10Minutes = '10 Minutes';
|
|
||||||
RS15Minutes = '15 Minutes';
|
|
||||||
RS30Minutes = '30 Minutes';
|
|
||||||
RS45Minutes = '45 Minutes';
|
|
||||||
RS1Hour = '1 Hour';
|
|
||||||
RS2Hours = '2 Hours';
|
|
||||||
RS3Hours = '3 Hours';
|
|
||||||
RS4Hours = '4 Hours';
|
|
||||||
RS5Hours = '5 Hours';
|
|
||||||
RS6Hours = '6 Hours';
|
|
||||||
RS7Hours = '7 Hours';
|
|
||||||
RS8Hours = '8 Hours';
|
|
||||||
RS1Days = '1 Day';
|
|
||||||
RS2Days = '2 Days';
|
|
||||||
RS3Days = '3 Days';
|
|
||||||
RS4Days = '4 Days';
|
|
||||||
RS5Days = '5 Days';
|
|
||||||
RS6Days = '6 Days';
|
|
||||||
RS1Week = '1 Week';
|
|
||||||
}
|
|
||||||
|
|
||||||
{ Calendar }
|
{ Calendar }
|
||||||
RSCalendarPrevMonth = 'Previous Month';
|
RSCalendarPrevMonth = 'Previous Month';
|
||||||
|
@ -74,7 +74,7 @@ object TaskEditForm: TTaskEditForm
|
|||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
object tabTask: TTabSheet
|
object tabTask: TTabSheet
|
||||||
Caption = 'Task'
|
Caption = 'Task'
|
||||||
ClientHeight = 276
|
ClientHeight = 275
|
||||||
ClientWidth = 539
|
ClientWidth = 539
|
||||||
object DueDateLbl: TLabel
|
object DueDateLbl: TLabel
|
||||||
Left = 52
|
Left = 52
|
||||||
@ -94,7 +94,7 @@ object TaskEditForm: TTaskEditForm
|
|||||||
ParentColor = False
|
ParentColor = False
|
||||||
end
|
end
|
||||||
object CompletedOnLbl: TLabel
|
object CompletedOnLbl: TLabel
|
||||||
Left = 313
|
Left = 333
|
||||||
Height = 15
|
Height = 15
|
||||||
Top = 69
|
Top = 69
|
||||||
Width = 79
|
Width = 79
|
||||||
@ -227,7 +227,7 @@ object TaskEditForm: TTaskEditForm
|
|||||||
Transparent = True
|
Transparent = True
|
||||||
end
|
end
|
||||||
object imgCompleted: TImage
|
object imgCompleted: TImage
|
||||||
Left = 272
|
Left = 290
|
||||||
Height = 32
|
Height = 32
|
||||||
Top = 38
|
Top = 38
|
||||||
Width = 32
|
Width = 32
|
||||||
@ -269,16 +269,16 @@ object TaskEditForm: TTaskEditForm
|
|||||||
Text = 'DescriptionEdit'
|
Text = 'DescriptionEdit'
|
||||||
end
|
end
|
||||||
object CompleteCB: TCheckBox
|
object CompleteCB: TCheckBox
|
||||||
Left = 313
|
Left = 333
|
||||||
Height = 19
|
Height = 19
|
||||||
Top = 41
|
Top = 43
|
||||||
Width = 72
|
Width = 72
|
||||||
Caption = 'Complete'
|
Caption = 'Complete'
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
end
|
end
|
||||||
object DetailsMemo: TMemo
|
object DetailsMemo: TMemo
|
||||||
Left = 4
|
Left = 4
|
||||||
Height = 147
|
Height = 146
|
||||||
Top = 96
|
Top = 96
|
||||||
Width = 529
|
Width = 529
|
||||||
Anchors = [akTop, akLeft, akRight, akBottom]
|
Anchors = [akTop, akLeft, akRight, akBottom]
|
||||||
|
@ -105,6 +105,9 @@ type
|
|||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
uses
|
||||||
|
VpMisc;
|
||||||
|
|
||||||
{$IFDEF LCL}
|
{$IFDEF LCL}
|
||||||
{$R *.lfm}
|
{$R *.lfm}
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
@ -132,6 +135,7 @@ end;
|
|||||||
procedure TTaskEditForm.PopulateSelf;
|
procedure TTaskEditForm.PopulateSelf;
|
||||||
begin
|
begin
|
||||||
ResourceNameLbl.Caption := Resource.Description;
|
ResourceNameLbl.Caption := Resource.Description;
|
||||||
|
CompleteCB.Caption := RSTaskComplete;
|
||||||
DueDateLbl.Caption := RSDueDate;
|
DueDateLbl.Caption := RSDueDate;
|
||||||
OKBtn.Caption := RSOKBtn;
|
OKBtn.Caption := RSOKBtn;
|
||||||
CancelBtn.Caption := RSCancelBtn;
|
CancelBtn.Caption := RSCancelBtn;
|
||||||
@ -148,6 +152,8 @@ begin
|
|||||||
CompletedOnLbl.Visible := CompleteCB.Checked;
|
CompletedOnLbl.Visible := CompleteCB.Checked;
|
||||||
CreatedOnLbl.Caption := RSCreatedOn + ' ' +
|
CreatedOnLbl.Caption := RSCreatedOn + ' ' +
|
||||||
FormatDateTime(ShortDateFormat, Task.CreatedOn);
|
FormatDateTime(ShortDateFormat, Task.CreatedOn);
|
||||||
|
|
||||||
|
DueDateEdit.Left := DueDateLbl.Left + GetLabelWidth(DueDateLbl) + 8;
|
||||||
end;
|
end;
|
||||||
{=====}
|
{=====}
|
||||||
|
|
||||||
|
@ -902,6 +902,7 @@ var
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
RenderCanvas.Font.Assign(Font);
|
||||||
for I := StartLine to pred(tlAllTaskList.Count) do begin
|
for I := StartLine to pred(tlAllTaskList.Count) do begin
|
||||||
Task := tlAllTaskList[I];
|
Task := tlAllTaskList[I];
|
||||||
if (LineRect.Top + Trunc(RowHeight * 0.5) <= RealBottom) then begin
|
if (LineRect.Top + Trunc(RowHeight * 0.5) <= RealBottom) then begin
|
||||||
@ -996,15 +997,19 @@ var
|
|||||||
HeadRect.Bottom := RealTop + RenderCanvas.TextHeight ('YyGg0') +
|
HeadRect.Bottom := RealTop + RenderCanvas.TextHeight ('YyGg0') +
|
||||||
TextMargin * 2;
|
TextMargin * 2;
|
||||||
TPSFillRect (RenderCanvas, Angle, RenderIn, HeadRect);
|
TPSFillRect (RenderCanvas, Angle, RenderIn, HeadRect);
|
||||||
|
|
||||||
{ draw the header cell borders }
|
{ draw the header cell borders }
|
||||||
if FDrawingStyle = dsFlat then begin
|
if FDrawingStyle = dsFlat then begin
|
||||||
{ draw an outer and inner bevel }
|
{ draw an outer and inner bevel }
|
||||||
|
|
||||||
|
{ wp: no bevel in flat style!
|
||||||
HeadRect.Left := HeadRect.Left - 1;
|
HeadRect.Left := HeadRect.Left - 1;
|
||||||
HeadRect.Top := HeadRect.Top - 1;
|
HeadRect.Top := HeadRect.Top - 1;
|
||||||
DrawBevelRect (RenderCanvas,
|
DrawBevelRect (RenderCanvas,
|
||||||
TPSRotateRectangle (Angle, RenderIn, HeadRect),
|
TPSRotateRectangle (Angle, RenderIn, HeadRect),
|
||||||
BevelShadow,
|
BevelShadow,
|
||||||
BevelShadow);
|
BevelShadow);
|
||||||
|
}
|
||||||
end else if FDrawingStyle = ds3d then begin
|
end else if FDrawingStyle = ds3d then begin
|
||||||
{ draw a 3d bevel }
|
{ draw a 3d bevel }
|
||||||
HeadRect.Right := HeadRect.Right - 1;
|
HeadRect.Right := HeadRect.Right - 1;
|
||||||
@ -1034,7 +1039,8 @@ var
|
|||||||
finally
|
finally
|
||||||
Bmp.Free;
|
Bmp.Free;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ draw the text }
|
{ draw the text }
|
||||||
if ShowResourceName
|
if ShowResourceName
|
||||||
and (DataStore <> nil)
|
and (DataStore <> nil)
|
||||||
|
@ -1039,6 +1039,9 @@ var
|
|||||||
{ draw the header cell and borders }
|
{ draw the header cell and borders }
|
||||||
if FDrawingStyle = dsFlat then begin
|
if FDrawingStyle = dsFlat then begin
|
||||||
{ draw an outer and inner bevel }
|
{ draw an outer and inner bevel }
|
||||||
|
HeadRect := Rect(RealLeft, RealTop, RealRight, RealTop + wvHeaderHeight + 2);
|
||||||
|
TPSFillRect(RenderCanvas, Angle, RenderIn, HeadRect);
|
||||||
|
{ wp: above lines replace the next ones - no bevel in flat style!
|
||||||
HeadRect.Left := RealLeft + 1;
|
HeadRect.Left := RealLeft + 1;
|
||||||
HeadRect.Top := RealTop + 1;
|
HeadRect.Top := RealTop + 1;
|
||||||
HeadRect.Right := RealRight - 1;
|
HeadRect.Right := RealRight - 1;
|
||||||
@ -1047,6 +1050,7 @@ var
|
|||||||
DrawBevelRect (RenderCanvas,
|
DrawBevelRect (RenderCanvas,
|
||||||
TPSRotateRectangle (Angle, RenderIn, HeadRect),
|
TPSRotateRectangle (Angle, RenderIn, HeadRect),
|
||||||
BevelHighlightColor, BevelShadowColor);
|
BevelHighlightColor, BevelShadowColor);
|
||||||
|
}
|
||||||
end else if FDrawingStyle = ds3d then begin
|
end else if FDrawingStyle = ds3d then begin
|
||||||
{ draw a 3d bevel }
|
{ draw a 3d bevel }
|
||||||
HeadRect.Left := RealLeft + 2;
|
HeadRect.Left := RealLeft + 2;
|
||||||
|
Reference in New Issue
Block a user