* Add hints for all actions, add menu items for all toolbars (bug ID #33244)

git-svn-id: trunk@57390 -
This commit is contained in:
michael 2018-02-27 13:25:38 +00:00
parent cd5555d4c2
commit 1fae39afbd
2 changed files with 142 additions and 36 deletions

View File

@ -1,7 +1,7 @@
object FPReportDesignerForm: TFPReportDesignerForm object FPReportDesignerForm: TFPReportDesignerForm
Left = 662 Left = 623
Height = 725 Height = 725
Top = 27 Top = 139
Width = 890 Width = 890
HorzScrollBar.Page = 599 HorzScrollBar.Page = 599
HorzScrollBar.Range = 599 HorzScrollBar.Range = 599
@ -19,6 +19,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
OnKeyPress = FormKeyPress OnKeyPress = FormKeyPress
OnShow = FormShow OnShow = FormShow
SessionProperties = 'FOI.Width;Width;Top;Left;Height' SessionProperties = 'FOI.Width;Width;Top;Left;Height'
ShowHint = True
LCLVersion = '1.9.0.0' LCLVersion = '1.9.0.0'
object PCReport: TPageControl object PCReport: TPageControl
Left = 240 Left = 240
@ -42,6 +43,8 @@ object FPReportDesignerForm: TFPReportDesignerForm
BorderSpacing.InnerBorder = 1 BorderSpacing.InnerBorder = 1
EdgeBorders = [] EdgeBorders = []
Images = ILReport Images = ILReport
ParentShowHint = False
ShowHint = True
TabOrder = 1 TabOrder = 1
object TBNEwReport: TToolButton object TBNEwReport: TToolButton
Left = 32 Left = 32
@ -52,36 +55,38 @@ object FPReportDesignerForm: TFPReportDesignerForm
Left = 55 Left = 55
Top = 0 Top = 0
Action = AFileOpen Action = AFileOpen
DropdownMenu = PMRecent
Style = tbsDropDown
end end
object TBSaveReport: TToolButton object TBSaveReport: TToolButton
Left = 86 Left = 98
Top = 0 Top = 0
Action = AFileSave Action = AFileSave
end end
object ToolButton4: TToolButton object ToolButton4: TToolButton
Left = 155 Left = 167
Height = 22 Height = 22
Top = 0 Top = 0
Caption = 'ToolButton4' Caption = 'ToolButton4'
Style = tbsDivider Style = tbsDivider
end end
object TBAddMemo: TToolButton object TBAddMemo: TToolButton
Left = 238 Left = 250
Top = 0 Top = 0
Action = AAddMemo Action = AAddMemo
end end
object TBAddCheckbox: TToolButton object TBAddCheckbox: TToolButton
Left = 261 Left = 273
Top = 0 Top = 0
Action = AAddCheckBox Action = AAddCheckBox
end end
object TBAddShape: TToolButton object TBAddShape: TToolButton
Left = 284 Left = 296
Top = 0 Top = 0
Action = AAddShape Action = AAddShape
end end
object TBAddImage: TToolButton object TBAddImage: TToolButton
Left = 307 Left = 319
Top = 0 Top = 0
Action = AAddImage Action = AAddImage
end end
@ -98,7 +103,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Style = tbsSeparator Style = tbsSeparator
end end
object TBAdd: TToolButton object TBAdd: TToolButton
Left = 203 Left = 215
Top = 0 Top = 0
Caption = 'Elements' Caption = 'Elements'
DropdownMenu = PMAdd DropdownMenu = PMAdd
@ -106,7 +111,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Style = tbsDropDown Style = tbsDropDown
end end
object TBAddBand: TToolButton object TBAddBand: TToolButton
Left = 160 Left = 172
Top = 0 Top = 0
Caption = 'TBAddBand' Caption = 'TBAddBand'
DropdownMenu = PMAddBand DropdownMenu = PMAddBand
@ -114,138 +119,138 @@ object FPReportDesignerForm: TFPReportDesignerForm
Style = tbsDropDown Style = tbsDropDown
end end
object ToolButton11: TToolButton object ToolButton11: TToolButton
Left = 330 Left = 342
Height = 22 Height = 22
Top = 0 Top = 0
Caption = 'ToolButton11' Caption = 'ToolButton11'
Style = tbsSeparator Style = tbsSeparator
end end
object ToolButton12: TToolButton object ToolButton12: TToolButton
Left = 195 Left = 207
Height = 22 Height = 22
Top = 0 Top = 0
Caption = 'ToolButton12' Caption = 'ToolButton12'
Style = tbsSeparator Style = tbsSeparator
end end
object TBAlignLeft: TToolButton object TBAlignLeft: TToolButton
Left = 338 Left = 350
Top = 0 Top = 0
Action = AAlignleft Action = AAlignleft
AutoSize = True AutoSize = True
end end
object TBAlignHCenter: TToolButton object TBAlignHCenter: TToolButton
Left = 361 Left = 373
Top = 0 Top = 0
Action = AAlignHCenter Action = AAlignHCenter
end end
object TBAlignRight: TToolButton object TBAlignRight: TToolButton
Left = 384 Left = 396
Top = 0 Top = 0
Action = AAlignRight Action = AAlignRight
end end
object ToolButton16: TToolButton object ToolButton16: TToolButton
Left = 78 Left = 90
Height = 22 Height = 22
Top = 0 Top = 0
Caption = 'ToolButton16' Caption = 'ToolButton16'
Style = tbsSeparator Style = tbsSeparator
end end
object TBAlignTop: TToolButton object TBAlignTop: TToolButton
Left = 430 Left = 442
Top = 0 Top = 0
Action = AAlignTop Action = AAlignTop
end end
object TBAlignVCenter: TToolButton object TBAlignVCenter: TToolButton
Left = 453 Left = 465
Top = 0 Top = 0
Action = AAlignVCenter Action = AAlignVCenter
end end
object TBAlignBottoms: TToolButton object TBAlignBottoms: TToolButton
Left = 476 Left = 488
Top = 0 Top = 0
Action = AAlignBottom Action = AAlignBottom
end end
object TBAlign: TToolButton object TBAlign: TToolButton
Left = 407 Left = 419
Top = 0 Top = 0
Action = AAlign Action = AAlign
end end
object TBAddPage: TToolButton object TBAddPage: TToolButton
Left = 132 Left = 144
Top = 0 Top = 0
Action = AAddPage Action = AAddPage
end end
object TBResize: TToolButton object TBResize: TToolButton
Left = 553 Left = 565
Top = 0 Top = 0
Action = AResize Action = AResize
end end
object ToolButton3: TToolButton object ToolButton3: TToolButton
Left = 499 Left = 511
Height = 22 Height = 22
Top = 0 Top = 0
Caption = 'ToolButton3' Caption = 'ToolButton3'
Style = tbsSeparator Style = tbsSeparator
end end
object TBResizeHLargest: TToolButton object TBResizeHLargest: TToolButton
Left = 507 Left = 519
Top = 0 Top = 0
Action = AResizeHLargest Action = AResizeHLargest
end end
object TBResizeHSmallest: TToolButton object TBResizeHSmallest: TToolButton
Left = 530 Left = 542
Top = 0 Top = 0
Action = AResizeHSmallest Action = AResizeHSmallest
end end
object TBResizeVLargest: TToolButton object TBResizeVLargest: TToolButton
Left = 576 Left = 588
Top = 0 Top = 0
Action = AResizeVLargest Action = AResizeVLargest
end end
object TBResizeVSmallest: TToolButton object TBResizeVSmallest: TToolButton
Left = 599 Left = 611
Top = 0 Top = 0
Action = AResizeVSmallest Action = AResizeVSmallest
end end
object ToolButton24: TToolButton object ToolButton24: TToolButton
Left = 622 Left = 634
Height = 22 Height = 22
Top = 0 Top = 0
Caption = 'ToolButton24' Caption = 'ToolButton24'
Style = tbsSeparator Style = tbsSeparator
end end
object TBFrameAll: TToolButton object TBFrameAll: TToolButton
Left = 630 Left = 642
Top = 0 Top = 0
Action = AFrameAll Action = AFrameAll
end end
object TBFrameNone: TToolButton object TBFrameNone: TToolButton
Left = 653 Left = 665
Top = 0 Top = 0
Action = AFrameClear Action = AFrameClear
end end
object TBFrameLeft: TToolButton object TBFrameLeft: TToolButton
Left = 676 Left = 688
Top = 0 Top = 0
Action = AFrameLeft Action = AFrameLeft
end end
object TBFrameRight: TToolButton object TBFrameRight: TToolButton
Left = 699 Left = 711
Top = 0 Top = 0
Action = AFrameRight Action = AFrameRight
end end
object TBFrameTop: TToolButton object TBFrameTop: TToolButton
Left = 722 Left = 734
Top = 0 Top = 0
Action = AFrameTop Action = AFrameTop
end end
object TBFrameBottom: TToolButton object TBFrameBottom: TToolButton
Left = 745 Left = 757
Top = 0 Top = 0
Action = AFrameBottom Action = AFrameBottom
end end
object TBPReview: TToolButton object TBPReview: TToolButton
Left = 109 Left = 121
Top = 0 Top = 0
Action = APreview Action = APreview
end end
@ -384,6 +389,9 @@ object FPReportDesignerForm: TFPReportDesignerForm
end end
object MReport: TMenuItem object MReport: TMenuItem
Caption = 'Report' Caption = 'Report'
object MIPreview: TMenuItem
Action = APreview
end
object MIAddPage: TMenuItem object MIAddPage: TMenuItem
Action = AAddPage Action = AAddPage
end end
@ -493,6 +501,27 @@ object FPReportDesignerForm: TFPReportDesignerForm
Action = AResizeVSmallest Action = AResizeVSmallest
end end
end end
object MFrames: TMenuItem
Caption = 'Frames'
object MIFrameAll: TMenuItem
Action = AFrameAll
end
object MIFrameClear: TMenuItem
Action = AFrameClear
end
object MIFrameLeft: TMenuItem
Action = AFrameLeft
end
object MIFrameRight: TMenuItem
Action = AFrameRight
end
object MIFrameTop: TMenuItem
Action = AFrameTop
end
object MIframeBottom: TMenuItem
Action = AFrameBottom
end
end
end end
object ODReport: TOpenDialog object ODReport: TOpenDialog
Title = 'Open Report Design...' Title = 'Open Report Design...'
@ -511,28 +540,36 @@ object FPReportDesignerForm: TFPReportDesignerForm
Hint = 'Add memo to the report' Hint = 'Add memo to the report'
ImageIndex = 7 ImageIndex = 7
OnExecute = AAddMemoExecute OnExecute = AAddMemoExecute
OnUpdate = AAddElementUpdate
end end
object AAddShape: TAction object AAddShape: TAction
Category = 'AddElement' Category = 'AddElement'
Caption = 'S&hape' Caption = 'S&hape'
Hint = 'Add a shape to the report'
ImageIndex = 12 ImageIndex = 12
OnExecute = AAddShapeExecute OnExecute = AAddShapeExecute
OnUpdate = AAddElementUpdate
end end
object AAddCheckBox: TAction object AAddCheckBox: TAction
Category = 'AddElement' Category = 'AddElement'
Caption = '&CheckBox' Caption = '&CheckBox'
Hint = 'Add a checkbox to the report'
ImageIndex = 8 ImageIndex = 8
OnExecute = AAddCheckBoxExecute OnExecute = AAddCheckBoxExecute
OnUpdate = AAddElementUpdate
end end
object AAddImage: TAction object AAddImage: TAction
Category = 'AddElement' Category = 'AddElement'
Caption = '&Image' Caption = '&Image'
Hint = 'Add an image to the report'
ImageIndex = 11 ImageIndex = 11
OnExecute = AAddImageExecute OnExecute = AAddImageExecute
OnUpdate = AAddElementUpdate
end end
object AFileSave: TAction object AFileSave: TAction
Category = 'File' Category = 'File'
Caption = 'Save report...' Caption = 'Save report...'
Hint = 'Save the report'
ImageIndex = 3 ImageIndex = 3
OnExecute = AFileSaveExecute OnExecute = AFileSaveExecute
ShortCut = 16467 ShortCut = 16467
@ -540,6 +577,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
object AFileOpen: TAction object AFileOpen: TAction
Category = 'File' Category = 'File'
Caption = 'Open Report...' Caption = 'Open Report...'
Hint = 'Load a report from file'
ImageIndex = 2 ImageIndex = 2
OnExecute = AFileOpenExecute OnExecute = AFileOpenExecute
ShortCut = 16463 ShortCut = 16463
@ -547,6 +585,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
object AQuit: TAction object AQuit: TAction
Category = 'File' Category = 'File'
Caption = 'Quit...' Caption = 'Quit...'
Hint = 'Close the designer'
ImageIndex = 0 ImageIndex = 0
OnExecute = AQuitExecute OnExecute = AQuitExecute
ShortCut = 16465 ShortCut = 16465
@ -554,84 +593,98 @@ object FPReportDesignerForm: TFPReportDesignerForm
object ANew: TAction object ANew: TAction
Category = 'File' Category = 'File'
Caption = 'New report' Caption = 'New report'
Hint = 'Start a new, empty report'
ImageIndex = 1 ImageIndex = 1
OnExecute = ANewExecute OnExecute = ANewExecute
end end
object AAddPageHeader: TAction object AAddPageHeader: TAction
Category = 'AddBand' Category = 'AddBand'
Caption = 'Page header' Caption = 'Page header'
Hint = 'Add a page header band to the page'
OnExecute = AAddBandExecute OnExecute = AAddBandExecute
OnUpdate = AAddBandUpdate OnUpdate = AAddBandUpdate
end end
object AAddReportTitle: TAction object AAddReportTitle: TAction
Category = 'AddBand' Category = 'AddBand'
Caption = 'Report Title' Caption = 'Report Title'
Hint = 'Add a report title band to the page'
OnExecute = AAddBandExecute OnExecute = AAddBandExecute
OnUpdate = AAddBandUpdate OnUpdate = AAddBandUpdate
end end
object AAddColumnHeader: TAction object AAddColumnHeader: TAction
Category = 'AddBand' Category = 'AddBand'
Caption = 'Column header' Caption = 'Column header'
Hint = 'Add a column header band to the page'
OnExecute = AAddBandExecute OnExecute = AAddBandExecute
OnUpdate = AAddBandUpdate OnUpdate = AAddBandUpdate
end end
object AAddGroupHeader: TAction object AAddGroupHeader: TAction
Category = 'AddBand' Category = 'AddBand'
Caption = 'Group Header' Caption = 'Group Header'
Hint = 'Add a group header band to the page'
OnExecute = AAddBandExecute OnExecute = AAddBandExecute
OnUpdate = AAddBandUpdate OnUpdate = AAddBandUpdate
end end
object AAddGroupFooter: TAction object AAddGroupFooter: TAction
Category = 'AddBand' Category = 'AddBand'
Caption = 'Group Footer' Caption = 'Group Footer'
Hint = 'Add a group footer band to the page'
OnExecute = AAddBandExecute OnExecute = AAddBandExecute
OnUpdate = AAddBandUpdate OnUpdate = AAddBandUpdate
end end
object AAddReportSummary: TAction object AAddReportSummary: TAction
Category = 'AddBand' Category = 'AddBand'
Caption = 'Report Summary' Caption = 'Report Summary'
Hint = 'Add a report summary band to the page'
OnExecute = AAddBandExecute OnExecute = AAddBandExecute
OnUpdate = AAddBandUpdate OnUpdate = AAddBandUpdate
end end
object AAddColumnFooter: TAction object AAddColumnFooter: TAction
Category = 'AddBand' Category = 'AddBand'
Caption = 'Column footer' Caption = 'Column footer'
Hint = 'Add a column footer band to the page'
OnExecute = AAddBandExecute OnExecute = AAddBandExecute
OnUpdate = AAddBandUpdate OnUpdate = AAddBandUpdate
end end
object AAddPageFooter: TAction object AAddPageFooter: TAction
Category = 'AddBand' Category = 'AddBand'
Caption = 'Page Footer' Caption = 'Page Footer'
Hint = 'Add a page footer band to the page'
OnExecute = AAddBandExecute OnExecute = AAddBandExecute
OnUpdate = AAddBandUpdate OnUpdate = AAddBandUpdate
end end
object AAddChildBand: TAction object AAddChildBand: TAction
Category = 'AddBand' Category = 'AddBand'
Caption = 'Child Band' Caption = 'Child Band'
Hint = 'Add a child band to the page'
OnExecute = AAddBandExecute OnExecute = AAddBandExecute
OnUpdate = AAddBandUpdate OnUpdate = AAddBandUpdate
end end
object AAddDataHeader: TAction object AAddDataHeader: TAction
Category = 'AddBand' Category = 'AddBand'
Caption = 'Data header' Caption = 'Data header'
Hint = 'Add a data header band to the page'
OnExecute = AAddBandExecute OnExecute = AAddBandExecute
OnUpdate = AAddBandUpdate OnUpdate = AAddBandUpdate
end end
object AAddDataFooter: TAction object AAddDataFooter: TAction
Category = 'AddBand' Category = 'AddBand'
Caption = 'Data footer' Caption = 'Data footer'
Hint = 'Add a data footer band to the page'
OnExecute = AAddBandExecute OnExecute = AAddBandExecute
OnUpdate = AAddBandUpdate OnUpdate = AAddBandUpdate
end end
object AAddDataBand: TAction object AAddDataBand: TAction
Category = 'AddBand' Category = 'AddBand'
Caption = 'Data Band' Caption = 'Data Band'
Hint = 'Add a data band to the page'
OnExecute = AAddBandExecute OnExecute = AAddBandExecute
OnUpdate = AAddBandUpdate OnUpdate = AAddBandUpdate
end end
object AAddPage: TAction object AAddPage: TAction
Category = 'Report' Category = 'Report'
Caption = 'Add Page' Caption = 'Add Page'
Hint = 'Add a new page to the report'
ImageIndex = 13 ImageIndex = 13
OnExecute = AAddPageExecute OnExecute = AAddPageExecute
OnUpdate = AAddPageUpdate OnUpdate = AAddPageUpdate
@ -640,6 +693,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 1 Tag = 1
Category = 'Align' Category = 'Align'
Caption = 'Align left edges' Caption = 'Align left edges'
Hint = 'Align elements horizontally using their left edges'
ImageIndex = 17 ImageIndex = 17
OnExecute = HAlignExecute OnExecute = HAlignExecute
OnUpdate = HAlignUpdate OnUpdate = HAlignUpdate
@ -648,6 +702,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 2 Tag = 2
Category = 'Align' Category = 'Align'
Caption = 'Align horizontally centered' Caption = 'Align horizontally centered'
Hint = 'Align elements horizontally using their centers'
ImageIndex = 15 ImageIndex = 15
OnExecute = HAlignExecute OnExecute = HAlignExecute
OnUpdate = HAlignUpdate OnUpdate = HAlignUpdate
@ -656,6 +711,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 3 Tag = 3
Category = 'Align' Category = 'Align'
Caption = 'Align right edges' Caption = 'Align right edges'
Hint = 'Align elements horizontally using their right sides'
ImageIndex = 18 ImageIndex = 18
OnExecute = HAlignExecute OnExecute = HAlignExecute
OnUpdate = HAlignUpdate OnUpdate = HAlignUpdate
@ -664,6 +720,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 1 Tag = 1
Category = 'Align' Category = 'Align'
Caption = 'Align top edges' Caption = 'Align top edges'
Hint = 'Align elements vertically using their top edges'
ImageIndex = 19 ImageIndex = 19
OnExecute = VAlignExecute OnExecute = VAlignExecute
OnUpdate = VAlignUpdate OnUpdate = VAlignUpdate
@ -672,6 +729,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 2 Tag = 2
Category = 'Align' Category = 'Align'
Caption = 'Align vertically centered' Caption = 'Align vertically centered'
Hint = 'Align elements vertically using their centers'
ImageIndex = 16 ImageIndex = 16
OnExecute = VAlignExecute OnExecute = VAlignExecute
OnUpdate = VAlignUpdate OnUpdate = VAlignUpdate
@ -680,6 +738,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 3 Tag = 3
Category = 'Align' Category = 'Align'
Caption = 'Align bottom edges' Caption = 'Align bottom edges'
Hint = 'Align elements vertically using their bottom edges'
ImageIndex = 14 ImageIndex = 14
OnExecute = VAlignExecute OnExecute = VAlignExecute
OnUpdate = VAlignUpdate OnUpdate = VAlignUpdate
@ -687,6 +746,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
object AAlign: TAction object AAlign: TAction
Category = 'Align' Category = 'Align'
Caption = 'Align...' Caption = 'Align...'
Hint = 'Show the align dialog'
ImageIndex = 20 ImageIndex = 20
OnExecute = AAlignExecute OnExecute = AAlignExecute
OnUpdate = AAlignUpdate OnUpdate = AAlignUpdate
@ -695,6 +755,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 2 Tag = 2
Category = 'Resize' Category = 'Resize'
Caption = 'Resize horizontally to smallest' Caption = 'Resize horizontally to smallest'
Hint = 'Resize elements horizontally to the smallest size'
ImageIndex = 23 ImageIndex = 23
OnExecute = HResizeExecute OnExecute = HResizeExecute
OnUpdate = HResizeAllow OnUpdate = HResizeAllow
@ -703,6 +764,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 1 Tag = 1
Category = 'Resize' Category = 'Resize'
Caption = 'Resize horizontally to largest' Caption = 'Resize horizontally to largest'
Hint = 'Resize elements horizontally to the largest size'
ImageIndex = 26 ImageIndex = 26
OnExecute = HResizeExecute OnExecute = HResizeExecute
OnUpdate = HResizeAllow OnUpdate = HResizeAllow
@ -711,6 +773,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 2 Tag = 2
Category = 'Resize' Category = 'Resize'
Caption = 'Resize vertical to smallest' Caption = 'Resize vertical to smallest'
Hint = 'Resize elements vertically to the smallest size'
ImageIndex = 24 ImageIndex = 24
OnExecute = VResizeExecute OnExecute = VResizeExecute
OnUpdate = VResizeAllow OnUpdate = VResizeAllow
@ -719,6 +782,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 1 Tag = 1
Category = 'Resize' Category = 'Resize'
Caption = 'Resize vertically to largest' Caption = 'Resize vertically to largest'
Hint = 'Resize elements vertically to the largest size'
ImageIndex = 25 ImageIndex = 25
OnExecute = VResizeExecute OnExecute = VResizeExecute
OnUpdate = VResizeAllow OnUpdate = VResizeAllow
@ -726,6 +790,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
object AResize: TAction object AResize: TAction
Category = 'Resize' Category = 'Resize'
Caption = 'Resize Dialog' Caption = 'Resize Dialog'
Hint = 'Show the resize elements dialog '
ImageIndex = 22 ImageIndex = 22
OnExecute = AResizeExecute OnExecute = AResizeExecute
OnUpdate = AResizeUpdate OnUpdate = AResizeUpdate
@ -734,6 +799,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 3 Tag = 3
Category = 'Frame' Category = 'Frame'
Caption = 'Frame bottom' Caption = 'Frame bottom'
Hint = 'Enable the frame edge at the bottom of the elements'
ImageIndex = 28 ImageIndex = 28
OnExecute = AFrameExecute OnExecute = AFrameExecute
OnUpdate = AFrameUpdate OnUpdate = AFrameUpdate
@ -742,6 +808,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 2 Tag = 2
Category = 'Frame' Category = 'Frame'
Caption = 'Frame Top' Caption = 'Frame Top'
Hint = 'Enable the frame edge at the top of the elements'
ImageIndex = 32 ImageIndex = 32
OnExecute = AFrameExecute OnExecute = AFrameExecute
OnUpdate = AFrameUpdate OnUpdate = AFrameUpdate
@ -750,6 +817,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 4 Tag = 4
Category = 'Frame' Category = 'Frame'
Caption = 'Frame Left' Caption = 'Frame Left'
Hint = 'Enable the frame edge at the left of the elements'
ImageIndex = 29 ImageIndex = 29
OnExecute = AFrameExecute OnExecute = AFrameExecute
OnUpdate = AFrameUpdate OnUpdate = AFrameUpdate
@ -758,6 +826,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 5 Tag = 5
Category = 'Frame' Category = 'Frame'
Caption = 'AFrameRight' Caption = 'AFrameRight'
Hint = 'Enable the frame edge at the right of the elements'
ImageIndex = 31 ImageIndex = 31
OnExecute = AFrameExecute OnExecute = AFrameExecute
OnUpdate = AFrameUpdate OnUpdate = AFrameUpdate
@ -765,6 +834,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
object AFrameClear: TAction object AFrameClear: TAction
Category = 'Frame' Category = 'Frame'
Caption = 'Clear frame' Caption = 'Clear frame'
Hint = 'Clear all frame edges for the elements'
ImageIndex = 30 ImageIndex = 30
OnExecute = AFrameExecute OnExecute = AFrameExecute
OnUpdate = AFrameUpdate OnUpdate = AFrameUpdate
@ -773,6 +843,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
Tag = 1 Tag = 1
Category = 'Frame' Category = 'Frame'
Caption = 'Frame around' Caption = 'Frame around'
Hint = 'Enable all frame edges for the elements'
ImageIndex = 27 ImageIndex = 27
OnExecute = AFrameExecute OnExecute = AFrameExecute
OnUpdate = AFrameUpdate OnUpdate = AFrameUpdate
@ -780,6 +851,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
object ADelete: TAction object ADelete: TAction
Category = 'Edit' Category = 'Edit'
Caption = 'Delete selection' Caption = 'Delete selection'
Hint = 'Delete the selection'
ImageIndex = 6 ImageIndex = 6
OnExecute = ADeleteExecute OnExecute = ADeleteExecute
OnUpdate = ADeleteUpdate OnUpdate = ADeleteUpdate
@ -787,18 +859,23 @@ object FPReportDesignerForm: TFPReportDesignerForm
object AReportProperties: TAction object AReportProperties: TAction
Category = 'Report' Category = 'Report'
Caption = 'Properties...' Caption = 'Properties...'
Hint = 'Show the report properties dialog'
ImageIndex = 33 ImageIndex = 33
OnExecute = AReportPropertiesExecute OnExecute = AReportPropertiesExecute
OnUpdate = AReportPropertiesUpdate
end end
object AReportVariables: TAction object AReportVariables: TAction
Category = 'Report' Category = 'Report'
Caption = 'Variables...' Caption = 'Variables...'
Hint = 'Show the report variables dialog'
ImageIndex = 36 ImageIndex = 36
OnExecute = AReportVariablesExecute OnExecute = AReportVariablesExecute
OnUpdate = AReportVariablesUpdate
end end
object APreview: TAction object APreview: TAction
Category = 'Report' Category = 'Report'
Caption = 'Preview' Caption = 'Preview'
Hint = 'Show the report preview'
ImageIndex = 34 ImageIndex = 34
OnExecute = APreviewExecute OnExecute = APreviewExecute
OnUpdate = APreviewUpdate OnUpdate = APreviewUpdate
@ -806,6 +883,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
object AReportData: TAction object AReportData: TAction
Category = 'Report' Category = 'Report'
Caption = 'Report Data' Caption = 'Report Data'
Hint = 'Show the report data dialog'
ImageIndex = 35 ImageIndex = 35
OnExecute = AReportDataExecute OnExecute = AReportDataExecute
OnUpdate = AReportDataUpdate OnUpdate = AReportDataUpdate
@ -813,6 +891,7 @@ object FPReportDesignerForm: TFPReportDesignerForm
object ARecent: TAction object ARecent: TAction
Category = 'File' Category = 'File'
Caption = 'Recent' Caption = 'Recent'
Hint = 'Recently used reports'
end end
end end
object SDReport: TSaveDialog object SDReport: TSaveDialog

View File

@ -99,6 +99,14 @@ type
ILReport: TImageList; ILReport: TImageList;
MenuItem1: TMenuItem; MenuItem1: TMenuItem;
MenuItem2: TMenuItem; MenuItem2: TMenuItem;
MIPreview: TMenuItem;
MIframeBottom: TMenuItem;
MIFrameTop: TMenuItem;
MIFrameRight: TMenuItem;
MIFrameLeft: TMenuItem;
MIFrameClear: TMenuItem;
MIFrameAll: TMenuItem;
MFrames: TMenuItem;
MIRecent: TMenuItem; MIRecent: TMenuItem;
MIAddPage: TMenuItem; MIAddPage: TMenuItem;
PMRecent: TPopupMenu; PMRecent: TPopupMenu;
@ -212,6 +220,7 @@ type
TBResizeHLargest: TToolButton; TBResizeHLargest: TToolButton;
TSDesign: TTabSheet; TSDesign: TTabSheet;
procedure AAddCheckBoxExecute(Sender: TObject); procedure AAddCheckBoxExecute(Sender: TObject);
procedure AAddElementUpdate(Sender: TObject);
procedure AAddImageExecute(Sender: TObject); procedure AAddImageExecute(Sender: TObject);
procedure AAddMemoExecute(Sender: TObject); procedure AAddMemoExecute(Sender: TObject);
procedure AAddPageExecute(Sender: TObject); procedure AAddPageExecute(Sender: TObject);
@ -231,7 +240,9 @@ type
procedure AReportDataExecute(Sender: TObject); procedure AReportDataExecute(Sender: TObject);
procedure AReportDataUpdate(Sender: TObject); procedure AReportDataUpdate(Sender: TObject);
procedure AReportPropertiesExecute(Sender: TObject); procedure AReportPropertiesExecute(Sender: TObject);
procedure AReportPropertiesUpdate(Sender: TObject);
procedure AReportVariablesExecute(Sender: TObject); procedure AReportVariablesExecute(Sender: TObject);
procedure AReportVariablesUpdate(Sender: TObject);
procedure AResizeExecute(Sender: TObject); procedure AResizeExecute(Sender: TObject);
procedure FormCloseQuery(Sender: TObject; var CanClose: boolean); procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
procedure FormDestroy(Sender: TObject); procedure FormDestroy(Sender: TObject);
@ -732,9 +743,10 @@ Var
T : Integer; T : Integer;
TOK : Boolean; TOK : Boolean;
begin begin
T:=(sender as Taction).Tag; T:=(sender as Taction).Tag;
// Check valid tag // Check valid tag
TOK:=Not ((T<0) or (T>Ord(High(TFPReportBandType)))); TOK:=Assigned(CurrentDesigner) and Not ((T<0) or (T>Ord(High(TFPReportBandType))));
// need to improve this to check that the type of band is actually allowed. // need to improve this to check that the type of band is actually allowed.
(Sender as TAction).Enabled:=(rdoAllowBands in DesignOptions) and TOK; (Sender as TAction).Enabled:=(rdoAllowBands in DesignOptions) and TOK;
end; end;
@ -749,6 +761,11 @@ begin
CurrentDesigner.AddElement(TFPReportCheckbox); CurrentDesigner.AddElement(TFPReportCheckbox);
end; end;
procedure TFPReportDesignerForm.AAddElementUpdate(Sender: TObject);
begin
(Sender as Taction).Enabled:=Assigned(Freport) and Assigned(CurrentDesigner)
end;
procedure TFPReportDesignerForm.AAddImageExecute(Sender: TObject); procedure TFPReportDesignerForm.AAddImageExecute(Sender: TObject);
begin begin
CurrentDesigner.AddElement(TFPReportImage); CurrentDesigner.AddElement(TFPReportImage);
@ -1013,6 +1030,11 @@ begin
end; end;
end; end;
procedure TFPReportDesignerForm.AReportPropertiesUpdate(Sender: TObject);
begin
(Sender as Taction).Enabled:=Assigned(Report) and (rdoAllowProperties in DesignOptions);
end;
procedure TFPReportDesignerForm.AReportVariablesExecute(Sender: TObject); procedure TFPReportDesignerForm.AReportVariablesExecute(Sender: TObject);
Var Var
@ -1039,6 +1061,11 @@ begin
end; end;
end; end;
procedure TFPReportDesignerForm.AReportVariablesUpdate(Sender: TObject);
begin
(Sender as Taction).Enabled:=Assigned(Report) and (rdoManageVariables in DesignOptions);
end;
procedure TFPReportDesignerForm.AResizeExecute(Sender: TObject); procedure TFPReportDesignerForm.AResizeExecute(Sender: TObject);
Var Var