Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Jan 12, 2000

Using ShowHelp with Windows 95 and NT

Question:
When we call the ShowHelp function in Windows 95, it works with a topic ID but not with a keyword. However, the same source works just the opposite in NT: a topic ID does not work, but a keyword does. We have both environments and need a solution that will work in both situations. Can you help us?

Answer:
I would recommend using the Windows API in place of the PowerBuilder functions. The API is more reliable and has features not supported by PowerBuilder, such as contents pages.

The API call is defined as:

 
function long WinHelpA(ulong hwind, string lpszHelp, &
   uint uCommand, ulong dwData) library "user32" 
You will also need the following constants:
 
Protected:
integer HELP_CONTEXT = 1
integer HELP_CONTENTS = 3
integer HELP_CONTEXTPOPUP = 8
integer HELP_FINDER = 11
Then call the function, such as:

WinHelp( 0, , HELP_FINDER, 0 )

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date