Skip to content

Commit 39bfa58

Browse files
ver. 2.1.2
- Added property "AutoLoadOnHotSpotClick" to TMarkdownViewer - Fixed resize Font changing Monitor-DPI - Fixed Toolbar switching Captions On/Off - Reset scrollbar position to top after loading new file
1 parent 1f6d30e commit 39bfa58

File tree

91 files changed

+7962
-3234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+7962
-3234
lines changed

Build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
call "C:\BDS\Studio\22.0\bin\rsvars.bat"
1+
call "C:\BDS\Studio\23.0\bin\rsvars.bat"
22
msbuild.exe "Source\MDHelpViewer.dproj" /target:Clean;Build /p:Platform=Win64 /p:config=release
33
msbuild.exe "Source\MDHelpViewer.dproj" /target:Clean;Build /p:Platform=Win32 /p:config=release
44

Demo/Help/1100.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
This is the File Menu with files operations...
66

7+
Return to [Index](Index.md) to see all the operation available.

Demo/Help/1200.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
This is the Edit Menu with Edit operations...
66

7+
Return to [Index](Index.md) to see all the operation available.

Demo/Help/BrowseTab.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ In the "grid" you can move the cursors in every directions to read the data.
88

99
At the bottom of the Tab, you can see a preview image of the fish and a full description.
1010

11-
At the top-right, you can use the ["Data Navigator"](DataNav.md) to move the data cursor and edit table.
11+
At the top-right, you can use the ["Data Navigator"](DataNavigator.md) to move the data cursor and edit table.
1212

1313
Click to the ["Edit Data" Tab](EditTab.md) to Edit the data.
1414

1515
![Browse Tab Page](BrowseDataTab.png)
1616

17-
18-
You can also Click on the ["Menu Bar"](Menu.md) to see all the operation available.
17+
Return to [Index](Index.md) to see all the operation available.
1918

Demo/Help/EditTab.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ At the bottom-left of the Tab, you can change the image associated to the fish.
1010

1111
At the right of the panel you can enter a full description.
1212

13-
At the top-right, you can use the ["Data Navigator"](DataNav.md) to move the data cursor and edit table.
13+
At the top-right, you can use the ["Data Navigator"](DataNavigator.md) to move the data cursor and edit table.
1414

1515
Click to the ["Browse Data" Tab](BrowseTab.md) to view the list.
1616

1717
![Edit Tab Page](EditDataTab.png)
1818

19-
You can also Click on the ["Menu Bar"](Menu.md) to see all the operation available.
19+
Return to [Index](Index.md) to see all the operation available.
2020

Demo/Help/Home.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**A simple application to edit a table**
44

5-
You can see an Index of the application functions [here...](Index.mdown)
5+
You can see an Index of the application functions [here...](Index.md)
66

77
This is only a simple demo, not all the operations are available, expecially the menu items.
88

Demo/Help/Home_1000.markdown

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,41 @@
44

55
Author:
66
Carlo Barazzetta
7-
https://github.com/EtheaDev/MarkdownHelpViewer
7+
8+
[https://github.com/EtheaDev/MarkdownHelpViewer](https://github.com/EtheaDev/MarkdownHelpViewer)
9+
810
Copyright © 2023-2024 all rights reserved.
911

1012
Delphi Markdown
11-
https://github.com/grahamegrieve/delphi-markdown
13+
14+
[https://github.com/grahamegrieve/delphi-markdown](https://github.com/grahamegrieve/delphi-markdown)
15+
1216
Copyright (c) 2011+, Health Intersections Pty Ltd All rights reserved.
1317

14-
Synopse/SynPDF https://github.com/synopse/SynPDF
18+
Synopse/SynPDF [https://github.com/synopse/SynPDF](https://github.com/synopse/SynPDF)
19+
1520
Copyright © Synopse: all right reserved.
1621

17-
HtmlToPdf https://github.com/MuzioValerio/HtmlToPdf
22+
HtmlToPdf [https://github.com/MuzioValerio/HtmlToPdf](https://github.com/MuzioValerio/HtmlToPdf)
23+
1824
Copyright © Muzio Valerio.
1925

20-
- Image32 Library - http://www.angusj.com/delphi/image32/Docs/_Body.htm
26+
Image32 Library - [http://www.angusj.com/delphi/image32/Docs/_Body.htm](http://www.angusj.com/delphi/image32/Docs/_Body.htm)
27+
2128
Copyright ©2019-2023 Angus Johnson.
2229

23-
HTMLViewer - https://github.com/BerndGabriel/HtmlViewer
30+
HTMLViewer - [https://github.com/BerndGabriel/HtmlViewer](https://github.com/BerndGabriel/HtmlViewer)
31+
2432
Copyright (c) 1995 - 2008 by L. David Baldwin
33+
2534
Copyright (c) 1995 - 2023 by Anders Melander (DitherUnit.pas)
35+
2636
Copyright (c) 1995 - 2023 by Ron Collins (HtmlGif1.pas)
37+
2738
Copyright (c) 2008 - 2009 by Sebastian Zierer (Delphi 2009 Port)
39+
2840
Copyright (c) 2008 - 2010 by Arvid Winkelsdorf (Fixes)
41+
2942
Copyright (c) 2009 - 2023 by HtmlViewer Team
43+
44+
Return to [Index](Index.md) to see all the operation available.

Demo/Source/MainForm.dfm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,16 @@ object fmMain: TfmMain
328328
Caption = 'Instant Help'
329329
ExplicitWidth = 64
330330
end
331+
object MarkdownViewer: TMarkdownViewer
332+
Left = 4
333+
Top = 19
334+
Width = 163
335+
Height = 385
336+
Align = alClient
337+
TabOrder = 0
338+
ExplicitLeft = 2
339+
ExplicitTop = 22
340+
end
331341
end
332342
object MainMenu: TMainMenu
333343
Left = 288

Demo/Source/MainForm.pas

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ interface
3131
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
3232
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Menus, Data.DB, Vcl.DBCtrls,
3333
Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.Grids, Vcl.DBGrids, Datasnap.DBClient,
34-
Vcl.ComCtrls, Vcl.Mask, MarkDownViewerComponents;
34+
Vcl.ComCtrls, Vcl.Mask, MarkDownViewerComponents, Vcl.Buttons, HTMLUn2,
35+
HtmlView;
3536

3637
type
3738
TfmMain = class(TForm)
@@ -100,6 +101,7 @@ TfmMain = class(TForm)
100101
EmbeddedHelpPanel: TPanel;
101102
RightSplitter: TSplitter;
102103
HelpTitleLabel: TLabel;
104+
MarkdownViewer: TMarkdownViewer;
103105
procedure MenuItemClick(Sender: TObject);
104106
procedure FormCreate(Sender: TObject);
105107
procedure HelpMenuItemClick(Sender: TObject);
@@ -109,7 +111,6 @@ TfmMain = class(TForm)
109111
procedure ShowHelpEmbeddedClick(Sender: TObject);
110112
procedure PageControlChange(Sender: TObject);
111113
private
112-
MarkdownViewer: TMarkDownViewer;
113114
procedure ShowEmbeddedHelp;
114115
public
115116
{ Public declarations }
@@ -152,15 +153,9 @@ procedure TfmMain.FormCreate(Sender: TObject);
152153
//Register "ServerRoot" folder for any MarkdownViewer
153154
RegisterMDViewerServerRoot(ExtractFilePath(Application.ExeName)+'..\Help');
154155

155-
//Manually create components (so you can test it without installing into IDE)
156-
MarkdownViewer := TMarkdownViewer.Create(Self);
157-
MarkdownViewer.Parent := EmbeddedHelpPanel;
158-
MarkdownViewer.Align := alClient;
159-
160156
HelpTitleLabel.Font.Style := [fsBold];
161157
EmbeddedHelpPanel.Width := 400;
162158

163-
164159
Caption := Application.Title;
165160
TitleLabel.Font.Height := Round(TitleLabel.Font.Height * 1.5);
166161
ClientDataSet.Open;

Ext/HTMLViewer/Source/BegaHtmlPrintPreviewForm.pas

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{-------------------------------------------------------------------------------
2-
Copyright (C) 2006-2012 by Bernd Gabriel.
2+
Copyright (C) 2006-2023 by Bernd Gabriel.
33
44
Permission is hereby granted, free of charge, to any person obtaining a copy of
55
this software and associated documentation files (the "Software"), to deal in
@@ -47,14 +47,14 @@ TBegaHtmlPrintPreviewForm = class(TBegaCustomPrintPreviewForm)
4747
private
4848
FFrameViewer: TFVBase; // TFrameViewer or TFrameBrowser
4949
FHtmlViewer: THtmlViewer;
50-
function canPrint: Boolean;
50+
function CanPrint: Boolean;
5151
function CurrentViewer: THtmlViewer;
5252
function PreviewGetSize(Sender: TObject; MFPrinter: TBegaMetaFilePrinter; out Width, Height: Integer): Boolean;
5353
procedure PreviewCreatePages(Sender: TObject; MFPrinter: TBegaMetaFilePrinter; var Done: Boolean);
5454
procedure PreviewPrintPages(Sender: TObject; MFPrinter: TBegaMetaFilePrinter; FirstPage, LastPage, Copies: Integer);
55-
procedure setFrameViewer(const Value: TFVBase);
56-
procedure setHtmlViewer(const Value: THtmlViewer);
57-
procedure updateEvents;
55+
procedure SetFrameViewer(const Value: TFVBase);
56+
procedure SetHtmlViewer(const Value: THtmlViewer);
57+
procedure UpdateEvents;
5858
public
5959
property FrameViewer: TFVBase read FFrameViewer write setFrameViewer;
6060
property HtmlViewer: THtmlViewer read FHtmlViewer write setHtmlViewer;
@@ -158,26 +158,26 @@ procedure TBegaHtmlPrintPreviewForm.PreviewPrintPages(Sender: TObject;
158158
end;
159159

160160
//- BG ----------------------------------------------------------- 26.03.2007 --
161-
procedure TBegaHtmlPrintPreviewForm.setFrameViewer(const Value: TFVBase);
161+
procedure TBegaHtmlPrintPreviewForm.SetFrameViewer(const Value: TFVBase);
162162
begin
163163
FFrameViewer := Value;
164164
FHtmlViewer := nil;
165-
updateEvents;
165+
UpdateEvents;
166166
Preview.createPages;
167167
end;
168168

169169
//- BG ----------------------------------------------------------- 26.03.2007 --
170-
procedure TBegaHtmlPrintPreviewForm.setHtmlViewer(
170+
procedure TBegaHtmlPrintPreviewForm.SetHtmlViewer(
171171
const Value: THtmlViewer);
172172
begin
173173
FFrameViewer := nil;
174174
FHtmlViewer := Value;
175-
updateEvents;
175+
UpdateEvents;
176176
Preview.createPages;
177177
end;
178178

179179
//- BG ----------------------------------------------------------- 27.03.2007 --
180-
procedure TBegaHtmlPrintPreviewForm.updateEvents;
180+
procedure TBegaHtmlPrintPreviewForm.UpdateEvents;
181181
begin
182182
if CurrentViewer <> nil then
183183
begin

0 commit comments

Comments
 (0)