Search found 809 matches

by marksmithhfx
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...
by marksmithhfx
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...
by marksmithhfx
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

richmond62 wrote:
Sun Mar 19, 2023 8:50 pm
That's a funny way of including images.
Yeah, I couldn't remember the name of the img url website, so improvised 8)
by marksmithhfx
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...
by marksmithhfx
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...
by marksmithhfx
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...
by marksmithhfx
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

Re: Message sent when object placed onto card

Klaus wrote:
Mon Mar 13, 2023 1:03 pm
The message(s):
newcard
newbutton
newfield
etc.

is/are sent to the newly created object, so you could "catch" that in your card script.
Hi Klaus, is it possible to do this "catch" thing in pointer mode? If so, script in card or somewhere else?

Thanks
by marksmithhfx
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

Re: Message sent when object placed onto card

dunbarx wrote:
Mon Mar 13, 2023 3:49 pm
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
Thanks Craig.
by marksmithhfx
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!
by marksmithhfx
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
by marksmithhfx
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
by marksmithhfx
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...
by marksmithhfx
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..

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
But that was no better.
by marksmithhfx
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...
by marksmithhfx
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. 😊

Go to advanced search