
Message sent when object placed onto card
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: Message sent when object placed onto card
The reason was that, for various kinky reasons of my own I bunged a CR on the end. 

Re: Message sent when object placed onto card
WHAT???
Operator malfunction???
With this (
) emoji appended???
Craig
Operator malfunction???
With this (

Craig
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: Message sent when object placed onto card
CR = carriage return.
Re: Message sent when object placed onto card
Oh.
Carriage return.
I thought it was a ham sandwich.
No wonder you threw in a
Craig
Carriage return.
I thought it was a ham sandwich.
No wonder you threw in a

Craig
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: Message sent when object placed onto card
So . . .
- -
cardScript of main stack:
does NOT . . . ?
- -
cardScript of main stack:
Code: Select all
on opencard
palette "OBJ LIST"
end opencard
on newImage
put the name of the last control && cr after fld "fOBJ" of stack "OBJ LIST"
end newImage
on newButton
put the name of the last control && cr after fld "fOBJ" of stack "OBJ LIST"
end newButton
- Attachments
-
- STAKK.livecode.zip
- Stack.
- (1010 Bytes) Downloaded 258 times
Re: Message sent when object placed onto card
Richmond.
What does that stack purport to do? Anyway, I made a button on the main stack with:
When I click on that button a new button appears, and your card handler does its work.
Craig
What does that stack purport to do? Anyway, I made a button on the main stack with:
Code: Select all
on mouseUp
create button "XYZ"
end mouseUp
Craig
Re: Message sent when object placed onto card
Is it possible you are trying to send that sort of message when you pull a control from the tools palette? Those messages are not sent when you do that.
Craig
Craig
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: Message sent when object placed onto card
Blast, blast, blast: got me in one.Is it possible you are trying to send that sort of message when you pull a control from the tools palette?
Err, so? . . .
Re: Message sent when object placed onto card
AHA.
To be fair, I do not know why LC considers that particular action as "not" creating a new control, but it seems it does. But if you do it in any other way, cloning, using the "create" command, it does.
Craig
To be fair, I do not know why LC considers that particular action as "not" creating a new control, but it seems it does. But if you do it in any other way, cloning, using the "create" command, it does.
Craig
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: Message sent when object placed onto card
Thanks: but no nearer to answering the OP's question, methinks.
Re: Message sent when object placed onto card
Richmond.
Hmmm
Except for the fact that dragging a control from the tool palette sends no useful message, what part of that question remains? There is:
Done, no?
There is in fact a message sent when pulling from the tools palette, as can be seen in the message watcher. It is "cIDETransient". This is not an "IDE message", because I have those suppressed, but it is hard (impossible?) to trap in a handler.
@Everyone.
Is there a setting (method, kluge) that allows one to trap such semi-IDE messages?
Craig
Hmmm
Except for the fact that dragging a control from the tool palette sends no useful message, what part of that question remains? There is:
Code: Select all
on newbutton
put the name of last button into fld 1
end newbutton
There is in fact a message sent when pulling from the tools palette, as can be seen in the message watcher. It is "cIDETransient". This is not an "IDE message", because I have those suppressed, but it is hard (impossible?) to trap in a handler.
@Everyone.
Is there a setting (method, kluge) that allows one to trap such semi-IDE messages?
Craig
Re: Message sent when object placed onto card
If there was a way to trap the "cIDETransient" message, one could
In that way you get the type of control, and whatever else you need from it.
Craig
Code: Select all
on newbutton
put the name of last control into fld 1
end newbutton
Craig
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: Message sent when object placed onto card
IFF . . . But all quiet on the Western front.
AND, at the risk of sounding stupid (and I am not stupid, merely ignorant), as LiveCode
is, supposedly, built with LiveCode, why is there a distinction between 'IDE messages'
and 'non-IDE messages'?
As Wikipedia states:
"The boundary between an IDE and other parts of the broader software development environment is not well-defined"
It might be useful for EVERYONE to know WHERE the boundary in LC between the IDE and the non-IDE exists, and
HOW to leverage stuff going on in the non-IDE.
As March 15 was the IDEs of March, this seems a good a time as any to explore and push this question.
Love, Brutus.
AND, at the risk of sounding stupid (and I am not stupid, merely ignorant), as LiveCode
is, supposedly, built with LiveCode, why is there a distinction between 'IDE messages'
and 'non-IDE messages'?
As Wikipedia states:
"The boundary between an IDE and other parts of the broader software development environment is not well-defined"
It might be useful for EVERYONE to know WHERE the boundary in LC between the IDE and the non-IDE exists, and
HOW to leverage stuff going on in the non-IDE.
As March 15 was the IDEs of March, this seems a good a time as any to explore and push this question.
Love, Brutus.

-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: Message sent when object placed onto card
I did NOT see anything.
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: Message sent when object placed onto card
HOWEVER . . . in RunRev/LC 4.5 DP 4:
- -
- -