Search found 3 matches

by swedishmichaell
Sun Jun 15, 2014 10:36 pm
Forum: Talking LiveCode
Topic: Knowing which object fired the message
Replies: 5
Views: 3210

Re: Knowing which object fired the message

Correct! Do not use reserved words. This became the final test code:

Code: Select all

on mouseUp
  if "btnSend" is in target then
    answer "Send was clicked!"
  else if "btnCancel" is in the target then
    answer "Cancel was clicked!"
  end if
end mouseUp
by swedishmichaell
Sun Jun 15, 2014 4:15 pm
Forum: Talking LiveCode
Topic: Knowing which object fired the message
Replies: 5
Views: 3210

Re: Knowing which object fired the message

Thanks for your fast responds! I came to this preliminary test code: on mouseUp if "Send" is in the target then answer "Send was clicked!" else if "Cancel" is in the target then answer "Cancel was clicked!" end if end mouseUp So now I can proceed with my tests. I have had LiveCode for "a couple of y...
by swedishmichaell
Sun Jun 15, 2014 2:08 pm
Forum: Talking LiveCode
Topic: Knowing which object fired the message
Replies: 5
Views: 3210

Knowing which object fired the message

Hi! I have a somewhat very basic question, but I have not find the answer in my searches. I have a main stack and a sub stack to that and on the sub stack I have two buttons. In the main stack I have this simple code: on mouseUp answer "Button clicked" end mouseUp Of course the message appears if I ...