Search found 809 matches
- Mon Mar 20, 2023 10:24 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Message sent when object placed onto card
- Replies: 56
- Views: 13538
Re: Message sent when object placed onto card
If the stack is your standalone application, you won't be able to save the changes. But you can create a stack and save that with the changes and new cards. Thanks for that reminder Emily. I don't often use that technique but you are correct, creating a splash stack and then launching/creating othe...
- Sun Mar 19, 2023 9:35 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Message sent when object placed onto card
- Replies: 56
- Views: 13538
Re: Message sent when object placed onto card
Mark. If you make a new control by any other method than dragging from the tools palette, the messages are sent. So if you are building a standalone app, you will always want to have some other action do that; users do not see the tools palette, so that limitation is IDE-only. Craig Thanks Craig, n...
- Sun Mar 19, 2023 8:52 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Message sent when object placed onto card
- Replies: 56
- Views: 13538
Re: Message sent when object placed onto card
Yeah, I couldn't remember the name of the img url website, so improvised
- Sun Mar 19, 2023 8:46 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Message sent when object placed onto card
- Replies: 56
- Views: 13538
Re: Message sent when object placed onto card
If you're using drag/drop handlers you can get info about the object when it's dropped and send a custom message from there. In a dragDrop handler, get the dragData and act on it. See the last paragraph in the dragdrop dictionary entry. Yes Jacque, there is a drag and drop involved. A picture being...
- Sun Mar 19, 2023 6:52 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Message sent when object placed onto card
- Replies: 56
- Views: 13538
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 Yes Craig, you are exactly right. I'm developing a tutorial stack and it's participatory... the user gets to add objects to the cards. Somet...
- Wed Mar 15, 2023 11:16 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Message sent when object placed onto card
- Replies: 56
- Views: 13538
Re: Message sent when object placed onto card
There are at least a dozen "new..." messages sent whenever anything, er, new is created. They are invaluable. Look up "new" in the dictionary for a complete list. Craig Hi Craig, I am presuming (based on some experiments) that these messages are not sent up the message path to the card in pointer m...
- Wed Mar 15, 2023 11:04 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Message sent when object placed onto card
- Replies: 56
- Views: 13538
- Wed Mar 15, 2023 10:42 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Message sent when object placed onto card
- Replies: 56
- Views: 13538
- Mon Mar 13, 2023 1:09 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Message sent when object placed onto card
- Replies: 56
- Views: 13538
Re: Message sent when object placed onto card
You guys are a great tag team
on newWidget
put the id of the last control into NewWidgetID
end newWidget
should be just the fix I was looking for!!
Thank you!
on newWidget
put the id of the last control into NewWidgetID
end newWidget
should be just the fix I was looking for!!
Thank you!
- Mon Mar 13, 2023 12:30 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Message sent when object placed onto card
- Replies: 56
- Views: 13538
Message sent when object placed onto card
Hello,
Is a message sent to the card when an object is placed on the card? Like when a new field or button is added? I need to grab the object ID of the newly added object.
Thanks
M
Is a message sent to the card when an object is placed on the card? Like when a new field or button is added? I need to grab the object ID of the newly added object.
Thanks
M
- Wed Mar 08, 2023 7:59 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: pgMouseCell PolyGrid
- Replies: 4
- Views: 2479
Re: pgMouseCell PolyGrid
Actually, I think I am over thinking this. The PG is so easy to setup that I don't even think it needs a drag drop interface.
Mark
Mark
- Wed Mar 08, 2023 6:01 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: pgMouseCell PolyGrid
- Replies: 4
- Views: 2479
Re: pgMouseCell PolyGrid
on mousemove put the pgMouseCell of widget "PolyGrid1" end mousemove Thanks Klaus. Fooling around I got it to work. But there is at least one requirement and one restriction which makes it challenging for what I was trying to do. I was attempting to drag things from outside the PG into the PG and d...
- Wed Mar 08, 2023 5:01 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: pgMouseCell PolyGrid
- Replies: 4
- Views: 2479
Re: pgMouseCell PolyGrid
I also tried..
But that was no better.
Code: Select all
on mouseMove
get the pgMouseCell of widget "PolyGrid" -- does it go into "it"?
put it into fld "MouseCell" -- returns point (col,row)
end mouseMove
- Wed Mar 08, 2023 4:57 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: pgMouseCell PolyGrid
- Replies: 4
- Views: 2479
pgMouseCell PolyGrid
Does anyone know how to trigger the pgMouseCell command in the PolyGrid? I am trying to get the current cell position under the mouse cursor as the mouse is hovered over a polyGrid but I am not getting any response to: on mouseMove put the pgMouseCell of widget "PolyGrid" into fld "MouseCell" -- ret...
- Wed Mar 01, 2023 4:39 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Is a widget not an object?
- Replies: 3
- Views: 1411
Re: Is a widget not an object?
Thanks guys!! Probably me just getting into the "natural" language thing a bit too much and forgetting, yes, LC does have its own particular brand of English.