sendMessage examples?

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

sendMessage examples?

Unread post by daveplummermd » 1 Apr 2018 2:05

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
Active Member
Posts: 48
Joined: 17 Oct 2006 5:49

Re: sendMessage examples?

Unread post by CalmoSoft » 1 Apr 2018 5:00

Hello Dave,

See the next program:

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

Greetings,
Gal Zsolt
(~ CalmoSoft ~)
There are two types of programmers :
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com

daveplummermd
VIP Member
Posts: 88
Joined: 18 Jul 2006 17:18

Re: sendMessage examples?

Unread post by daveplummermd » 1 Apr 2018 12:52

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

dave
Dave Plummer

User avatar
Thomas Linder Puls
VIP Member
Posts: 2430
Joined: 28 Feb 2000 0:01

Re: sendMessage examples?

Unread post by Thomas Linder Puls » 1 Apr 2018 22:09

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: 88
Joined: 18 Jul 2006 17:18

Re: sendMessage examples?

Unread post by daveplummermd » 2 Apr 2018 1:15

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: 814
Joined: 16 Oct 2001 23:01

Re: sendMessage examples?

Unread post by Tonton Luc » 7 Mar 2019 22:47

Hi,

:idea:

Code: Select all

postEvent(e_Menu(id_file_exit,c_Nothing)),

Post Reply