Solved

Delphi Programming question

Posted on 1997-07-01
1
184 Views
Last Modified: 2012-05-04
I would like to put a "What's this?" function in my program. I have already put a button with question mark in title bar to use this function. Now I would like to put the same function in menu or toolbar, but I don't what to do when user triggers this function in menu or toolbar.
0
Comment
Question by:marko020397
1 Comment
 
LVL 3

Accepted Solution

by:
sperling earned 0 total points
ID: 1338061
I'm not sure what you're asking, but the following line might work to simulate a press on the question mark in the title bar.

Add in eg MenuItemClick handler:
PostMessage(Handle, WM_SYSCOMMAND, SC_CONTEXTHELP, 0);

Regards,

Erik.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question