<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[My Visual Database — Using .chm help file in your project]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=3220</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=3220&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Using .chm help file in your project.]]></description>
		<lastBuildDate>Mon, 20 Mar 2017 23:44:09 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Using .chm help file in your project]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19493#p19493</link>
			<description><![CDATA[<p>Hello all and many thanks to Dmitry for this huge step forward with MVD !!</p><br /><p>In addition to what Dmitry wrote, here is how I use it.</p><br /><p><span class="bbu">Adding Help buttons for every Form or every already existing button will produce a loooooooot of buttons.</span></p><br /><p>So, I linked the Help system with the middle mouse button :<br />- when the user left-clicks the button, the application works normally<br />- when the user middle-cliks the button, the help file opens at the correct page, like this :</p><div class="codebox"><pre><code>procedure Form1_Button1_OnMouseDown (Sender: string; MouseLeft, MouseRight, MouseMiddle: boolean; Shift, Alt, Ctrl: boolean; X, Y: Integer);
begin
    if MouseMiddle = True then Application.HelpContext(IDH_TOPIC_KW_GENERAL);
end;</code></pre></div><br /><p>Hope this helps</p><br /><p>Cheers</p><br /><p>Mathias</p>]]></description>
			<author><![CDATA[null@example.com (mathmathou)]]></author>
			<pubDate>Mon, 20 Mar 2017 23:44:09 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19493#p19493</guid>
		</item>
		<item>
			<title><![CDATA[Using .chm help file in your project]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19481#p19481</link>
			<description><![CDATA[<p>Example, how to work with .chm help file in your project (ver. 3.3 and above):</p><br /><div class="codebox"><pre><code>const
  IDH_TOPIC10 = 10;
  IDH_TOPIC20 = 20;
  IDH_TOPIC30 = 30;
  IDH_TOPIC40 = 40;
  IDH_TOPIC50 = 50;

procedure Form1_OnShow (Sender: string; Action: string);
begin
  Application.HelpFile := ExtractFilePath(Application.ExeName) + &#039;Help\HelpFile.chm&#039;;
end;                



procedure Form1_bContents_OnClick (Sender: string; var Cancel: boolean);
begin
    Application.HelpContents;
end;

procedure Form1_bIndex_OnClick (Sender: string; var Cancel: boolean);
begin
    Application.HelpIndex(&#039;test&#039;);
end;

procedure Form1_bSearch_OnClick (Sender: string; var Cancel: boolean);
begin
    Application.HelpSearch;
end;

procedure Form1_bTopic30_OnClick (Sender: string; var Cancel: boolean);
begin
    Application.HelpContext(IDH_TOPIC30);
end;                     

procedure Form1_bTopic40_OnClick (Sender: string; var Cancel: boolean);
begin
    Application.HelpContext(IDH_TOPIC40);
end;

procedure Form1_bKeyword_OnClick (Sender: string; var Cancel: boolean);
begin
    Application.HelpKeyword(&#039;Test&#039;);
end;</code></pre></div><br /><br /><p><strong>Example project:</strong></p>]]></description>
			<author><![CDATA[null@example.com (DriveSoft)]]></author>
			<pubDate>Mon, 20 Mar 2017 15:03:58 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19481#p19481</guid>
		</item>
	</channel>
</rss>
