Page 1 of 1

sendMessage examples?

Posted: 1 Apr 2018 2:05
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.

Re: sendMessage examples?

Posted: 1 Apr 2018 5:00
by CalmoSoft
Hello Dave,

See the next program:

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

Greetings,
Gal Zsolt
(~ CalmoSoft ~)

Re: sendMessage examples?

Posted: 1 Apr 2018 12:52
by daveplummermd
Thanks, but this code includes predicates for "messageBox", but not "sendmessage"

dave

Re: sendMessage examples?

Posted: 1 Apr 2018 22:09
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).

Re: sendMessage examples?

Posted: 2 Apr 2018 1:15
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

Re: sendMessage examples?

Posted: 7 Mar 2019 22:47
by Tonton Luc
Hi,

:idea:

Code: Select all

postEvent(e_Menu(id_file_exit,c_Nothing)),