Started by Louderjohn ·
2023-01-19 14:27 UTC ·
5 replies · SMF topic #2844
Louderjohn
2023-01-19 14:27 UTC
I tried the {ShowHelpButton [as Boolean]} option in dcl-messagebox. When I click on the Help button nothing happens, which I expected. How do you define the actual help file for the Help button?
fred_tomke
2023-01-19 14:39 UTC
Hello, I really have no experience with the help button in messageboxes. I'm also afraid that the messagebox does not close by clicking on the button, to get the return value of dcl-messagebox. In some cases AutoCAD can open a chm-file by clicking F1 when just a command is runnig (context-sensitive-help) but you have to define a help function right before by using setfunhelp (http://docs.autodesk.com/ACD/2013/ENU/index.html?url=files/GUID-61B2326A-8DE4-46C4-B9F9-22B8D163A761.htm,topicNumber=d30e627653). But in the end I realy have no idea, sorry.
With regards, Fred
Louderjohn
2023-01-19 14:54 UTC
Thanks Fred.
owenwengerd
2023-01-19 18:05 UTC
Without looking at the code, I guess pressing causes the dialog to close and (dcl-MessageBox) returns an integer value for the Help button that is just missed in the OpenDCL reference.
fred_tomke
2023-01-20 03:36 UTC
Hello, Owen, unfotunately the form won't be closed by clicking help button.
(dcl-messagebox "Msg" "Title" 3 3 T)
Regards, Fred
owenwengerd
2023-01-21 00:18 UTC
According to
{2} the button sends a WM_HELP message to the parent window. Presumably the intent was to trigger the parent form's
{2} event handler. The parent form would be the form that is active before the message box is displayed.
I'm not sure it works, though. I see that there is no direct handler for WM_HELP for any of the form types, so it depends on how the MFC dialog code translates an unhandled WM_HELP message.