forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


? MESSAGE Event and @MSGPARAMS() function

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Jul 08, 2003 4:43 pm    Post subject: ? MESSAGE Event and @MSGPARAMS() function Reply with quote

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. Confused

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Thu Jul 10, 2003 4:16 pm    Post subject: Reply with quote

Hi CodeScript,
Can you post some example code?

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Thu Jul 10, 2003 4:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Jul 10, 2003 4:31 pm    Post subject: Reply with quote

Oh my Embarassed Ididnt look at that OPTION MSGEVENT.
Thanx mindpower I will now try that.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group