<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Additional buttons in FormTitelBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Additional buttons in FormTitelBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 05:47:29 +0000</pubDate>
  <lastBuildDate>Wed, 16 Dec 2009 02:40:47 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=15852</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Additional buttons in FormTitelBar :   Thank you Oleg.There are some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15852&amp;PID=55660&amp;title=additional-buttons-in-formtitelbar#55660</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2575">Jean</a><br /><strong>Subject:</strong> 15852<br /><strong>Posted:</strong> 16 December 2009 at 2:40am<br /><br />Thank you Oleg.<br><br>There are some limitations with the <a href="mk:@MSITStore:C:%5CProgram%20Files%5CMicrosoft%20Visual%20Studio%5CMSDN%5C2000APR%5C1033%5Cfoxhelp.chm::/html/lngwhatsthishelpproperty.htm" target="_blank">WhatsThisHelp</a> :<br>-Works only with HTML Help. No custom actions programmable<br>-Help button is only visible if min and max buttons are invisible<br><img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" align="absmiddle"><br><br>I found a way with hooking, but I dont know if this is a "save way".<br>This code is built from samples I found in the internet.<br>Works with click on the help button and I try to listen to the F1 key. Doesn't work perfect.<br><br>Form (disable min and max button!):<br><table width="99%"><tr><td><pre class="BBcode">Private Sub Form_Load()<br>&nbsp; Call SetCBTHook<br>End Sub<br><br>Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)<br>&nbsp; If IsHooked Then<br>&nbsp;&nbsp;&nbsp; Call RemoveCBTHook<br>&nbsp; End If<br>End Sub</pre></td></tr></table><br>Module (bas):<br><table width="99%"><tr><td><pre class="BBcode">Option Explicit<br><br>Private Declare Function SetWindowsHookEx Lib "user32" Alias "SetWindowsHookExA" (ByVal idHook As Long, ByVal lpfn As Long, ByVal hmod As Long, ByVal dwThreadId As Long) As Long<br>Private Declare Function UnhookWindowsHookEx Lib "user32" (ByVal hHook As Long) As Long<br>Private Declare Function CallNextHookEx Lib "user32" (ByVal hHook As Long, ByVal ncode As Long, ByVal wParam As Long, lParam As Any) As Long<br><br>Public Const WH_CBT = 5<br>Public Const WH_KEYBOARD = 2<br><br>Public Const HCBT_KEYSKIPPED = 7<br>Public Const HCBT_SYSCOMMAND = 8<br><br>Private hHook As Long<br>Private hKbdHook As Long<br><br>Public IsHooked As Boolean<br><br>Public Sub SetCBTHook()<br>&nbsp; If Not IsHooked Then<br>&nbsp;&nbsp;&nbsp; hHook = SetWindowsHookEx(WH_CBT, AddressOf CBTProc, 0, App.ThreadID)<br>&nbsp;&nbsp;&nbsp; hKbdHook = SetWindowsHookEx(WH_KEYBOARD, AddressOf KbdProc, 0, App.ThreadID)<br>&nbsp;&nbsp;&nbsp; IsHooked = True<br>&nbsp; End If<br>End Sub<br><br>Public Sub RemoveCBTHook()<br>&nbsp; Dim temp As Long<br>&nbsp; temp = UnhookWindowsHookEx(hHook)<br>&nbsp; temp = UnhookWindowsHookEx(hKbdHook)<br>&nbsp; IsHooked = False<br>End Sub<br><br>Public Function CBTProc(ByVal uCode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long<br>&nbsp; If uCode = HCBT_SYSCOMMAND Then<br>&nbsp;&nbsp;&nbsp; If wParam = 61824 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CBTProc = -1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox "Eigene Hilfe!"<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp; ElseIf uCode = HCBT_KEYSKIPPED Then<br>&nbsp;&nbsp;&nbsp; Debug.Print wParam<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If wParam = 112 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CBTProc = -1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox "Eigene Hilfe!"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp; End If&nbsp; <br>&nbsp; If CBTProc = -1 Then<br>&nbsp; &nbsp; CBTProc = 1<br>&nbsp; Else<br>&nbsp;&nbsp;&nbsp; CBTProc = CallNextHookEx(hHook, uCode, wParam, lParam)<br>&nbsp; End If<br>End Function<br><br>Public Function KbdProc(ByVal uCode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long<br>&nbsp; KbdProc = CallNextHookEx(hKbdHook, uCode, wParam, lParam)<br>End Function</pre></td></tr></table><br>]]>
   </description>
   <pubDate>Wed, 16 Dec 2009 02:40:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15852&amp;PID=55660&amp;title=additional-buttons-in-formtitelbar#55660</guid>
  </item> 
  <item>
   <title><![CDATA[Additional buttons in FormTitelBar : Yes, In VB you can set WhatsThisButton...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15852&amp;PID=55642&amp;title=additional-buttons-in-formtitelbar#55642</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15852<br /><strong>Posted:</strong> 15 December 2009 at 5:01am<br /><br />Yes, In VB you can set WhatsThisButton to True<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Here instruction from MSDN for next steps:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>In design mode, open the form you want to enable "What's This?" Help for.<BR><BR></DIV><OL><LI>Set the form's <a href="mk:@MSITStore:C:\Program%20Files\Microsoft%20Visual%20Studio\MSDN\2000APR\1033\foxhelp.chm::/html/lngwhatsthishelpproperty.htm" target="_blank">WhatsThisHelp</A> property to true (.T.).<BR><BR><LI>To display a "What's This?" Help button in the form's title bar, set the form's <a href="mk:@MSITStore:C:\Program%20Files\Microsoft%20Visual%20Studio\MSDN\2000APR\1033\foxhelp.chm::/html/lngwhatsthisbutt&#111;nproperty.htm" target="_blank"><FONT style=": #316ac5" color=#ffffff>WhatsThisButton</FONT></A> property to true (.T.).<BR><BR><LI>To associate a "What's This?" Help topic with the form, set the form's <a href="mk:@MSITStore:C:\Program%20Files\Microsoft%20Visual%20Studio\MSDN\2000APR\1033\foxhelp.chm::/html/lngwhatsthishelpidproperty.htm" target="_blank">WhatsThisHelpID</A> property to an ID number corresponding to a topic in your HTML Help file.<BR><BR><LI>To associate a "What's This?" Help topic with a specific control on the form, select the control and set its <a href="mk:@MSITStore:C:\Program%20Files\Microsoft%20Visual%20Studio\MSDN\2000APR\1033\foxhelp.chm::/html/lngwhatsthishelpidproperty.htm" target="_blank">WhatsThisHelpID</A> property to an ID number corresponding to a topic in your HTML Help file. </LI></OL>]]>
   </description>
   <pubDate>Tue, 15 Dec 2009 05:01:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15852&amp;PID=55642&amp;title=additional-buttons-in-formtitelbar#55642</guid>
  </item> 
  <item>
   <title><![CDATA[Additional buttons in FormTitelBar :   How is it possible to have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15852&amp;PID=55631&amp;title=additional-buttons-in-formtitelbar#55631</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2575">Jean</a><br /><strong>Subject:</strong> 15852<br /><strong>Posted:</strong> 15 December 2009 at 1:29am<br /><br />How is it possible to have more buttons in a FormTitleBar?<br>I need such a button like the question mark button in the print dialog eg. from MS Word:<br><br><img src="uploads/20091215_012150_CodeJock.JPG" height="48" width="581" border="0"><br><br>Is there an easy way to do this with CodeJock components?<br>There's a way over API but then the button is not skinned correct. <img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" align="absmiddle"><br>I guess the picture needs to be in a style file to fit with a selected style?<br><br>With WhatsThisButton I can show the button but I don't find an event for it. :(<br><br>I would appreciate it if someone had an advice...<br>Thanks,<br>Jean<br>]]>
   </description>
   <pubDate>Tue, 15 Dec 2009 01:29:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15852&amp;PID=55631&amp;title=additional-buttons-in-formtitelbar#55631</guid>
  </item> 
 </channel>
</rss>