Discussions related to Visual Prolog
daveplummermd
VIP Member
Posts: 80
Joined: 18 Jul 2006 17:18

sendMessage examples?

Unread post by daveplummermd »

Hello

Are there any examples that make use of "sendMessage". I do not see any in the examples. I am trying to activate a taskmenu item from within a class.

Thanks in advance
dave plummer m.d.
Dave Plummer
User avatar
CalmoSoft
VIP Member
Posts: 73
Joined: 17 Oct 2006 5:49

Re: sendMessage examples?

Unread post by CalmoSoft »

Hello Dave,

See the next program:

C:\Visual Prolog\examples\buttonDemo\okButtonDemo\OkButtonDemo.pro

Greetings,
Gal Zsolt
(~ CalmoSoft ~)
daveplummermd
VIP Member
Posts: 80
Joined: 18 Jul 2006 17:18

Re: sendMessage examples?

Unread post by daveplummermd »

Thanks, but this code includes predicates for "messageBox", but not "sendmessage"

dave
Dave Plummer
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Re: sendMessage examples?

Unread post by Thomas Linder Puls »

sendMessage is used a lot when controlling various controls. You can for example see it used in the listViewControl code.

Not quite sure what you are really trying to achieve, but it may sound like you think sendMessage can do something different than what it actually does.

If you are trying to use it for emulating user actions, then recall that users only generates mouse and keyboard events (disregarding speech recognition, and perhaps other sophisticated stuff).
Regards Thomas Linder Puls
PDC
daveplummermd
VIP Member
Posts: 80
Joined: 18 Jul 2006 17:18

Re: sendMessage examples?

Unread post by daveplummermd »

Thanks so much for reply.

This all was solved when I realized that I can create class predicates in TaskWindow, like any other.

My newbie mistake with this really impressive language!

Thanks again

dave
Dave Plummer
User avatar
Tonton Luc
VIP Member
Posts: 204
Joined: 16 Oct 2001 23:01

Re: sendMessage examples?

Unread post by Tonton Luc »

Hi,

:idea:

Code: Select all

postEvent(e_Menu(id_file_exit,c_Nothing)),
Post Reply