| View previous topic :: View next topic |
| Author |
Message |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Jul 08, 2003 4:43 pm Post subject: ? MESSAGE Event and @MSGPARAMS() function |
|
|
| Quote: | | When a message is received by the program main window, a MESSAGE event is generated. The @MSGPARAMS() function can be used to retrieve the values of the wParam and lParam parameters. |
from VDS 5 help file.
When is this MESSAGE event generated ? whether its generated only whnever a message is posted on to main window or or for all messages ?
I tried to put a label :MESSAGE and get the @msgparams - always 0|0.
If it generates an event then without this label would it not give an error message or there is a bulit in errortrap.
I was looking for whther its possible to give context snsitive help and "that" help icon on sys bar of the window to which the window should respond. I have already created the button but how to get messages/other way of responding to it. The problem is when the help ? button is clicked the script comes to a stand still and becomes active only on clicking the window- by the time everything is over! _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Jul 10, 2003 4:16 pm Post subject: |
|
|
Hi CodeScript,
Can you post some example code? _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Jul 10, 2003 4:19 pm Post subject: |
|
|
Are you using
OPTION MSGEVENT, <message_no>, <event_name> {,HANDLED}
At the top of your script?
The quote below is from the VDS 5 help file...
| Quote: | OPTION MSGEVENT: This option is used to cause an event to be generated when a particular window message is sent to the application window. This option is for advanced users only. An understanding of Windows messasge processing is required to use it.
The <message_no> is the numeric identifier for the message; if it is a Windows message then this value can be obtained from Windows SDK documentation. The <event_name> is the name of the event that will be generated when the message is received: there should be a corresponding label of this name in the script. The optional HANDLED parameter specifies whether the message should be passed on to the program's internal message handling or not. If a message is not a user defined message then not passing it on is likely to have undesirable results. For efficiency reasons, the maximum number of messages that can be specified to generate events is limited to 4.
|
_________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Jul 10, 2003 4:31 pm Post subject: |
|
|
Oh my Ididnt look at that OPTION MSGEVENT.
Thanx mindpower I will now try that. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
|