Can I Drag n Drop to Card or Stack?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Can I Drag n Drop to Card or Stack?
Hi all,
I've been playing with drag n drop files n folder into Text Entry Fields.
I've finally got it all working.
Now I want to drag n drop files n folder onto the card or stack.
But I can't get either to work.
Am I supposed to be able to do this?
I know the LC dev editor allows me to drop a control onto the card.
But at runtime I'd like to dragEndter and dragDrop onto the card or the stack.
I've been playing with drag n drop files n folder into Text Entry Fields.
I've finally got it all working.
Now I want to drag n drop files n folder onto the card or stack.
But I can't get either to work.
Am I supposed to be able to do this?
I know the LC dev editor allows me to drop a control onto the card.
But at runtime I'd like to dragEndter and dragDrop onto the card or the stack.
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: Can I Drag n Drop to Card or Stack?
Many thanks for the quick reply and the hyperlink.
I have read thru that article.
I believe the topic was dragging LC controls that are already existing around on the form.
The article was a bit vague regarding where all the code went.
Without a proper working example I'll have to deduce its psudo code.
Looks like I'll have to fake it I think.
Make the text entry field that does handles the dragEnter and dragdrop cover the entire card.
And change its background color to match the card background color etc.
If I have buttons and checkboxes and other controls,
can I pass the DragEnter dragdrop onto my text entry field that does handle the dragEnter dragDrop?
Will I have to write seperate code in each control to handle dragEnter dragdrop events?
I have read thru that article.
I believe the topic was dragging LC controls that are already existing around on the form.
The article was a bit vague regarding where all the code went.
Without a proper working example I'll have to deduce its psudo code.
Looks like I'll have to fake it I think.
Make the text entry field that does handles the dragEnter and dragdrop cover the entire card.
And change its background color to match the card background color etc.
If I have buttons and checkboxes and other controls,
can I pass the DragEnter dragdrop onto my text entry field that does handle the dragEnter dragDrop?
Will I have to write seperate code in each control to handle dragEnter dragdrop events?
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: Can I Drag n Drop to Card or Stack?
I've copied my DragEnter and DragDrop code to the card.
I can drag filesnfolder ove the card with no effect.
now when I drag over a button the DragEnter and DragDrop script of the card fires.
Who knows? More trouble to uncover.
I can drag filesnfolder ove the card with no effect.
now when I drag over a button the DragEnter and DragDrop script of the card fires.
Who knows? More trouble to uncover.
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Re: Can I Drag n Drop to Card or Stack?
Barry-
I wrote that article - that's actual working code pulled from a real application, not pseudocode.
I wrote that article - that's actual working code pulled from a real application, not pseudocode.
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: Can I Drag n Drop to Card or Stack?
Can you post the working app?
Do you know how to set the card to accept dragndrop?
wasn't there a post about faking the card background by covering the coard with a text field and setting it's opacity to 1
moving it zOrder to the back?
Do you know how to set the card to accept dragndrop?
wasn't there a post about faking the card background by covering the coard with a text field and setting it's opacity to 1
moving it zOrder to the back?
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: Can I Drag n Drop to Card or Stack?
I've placed a text field contol onto the card and set its Opaque property to off.
And have set its Layer Property to 1.
And have removed all dragEnter and DragDrop script
except for the dragEnter and DragDrop code in the Card script.
OK all working to my liking at the moment.
And have set its Layer Property to 1.
And have removed all dragEnter and DragDrop script
except for the dragEnter and DragDrop code in the Card script.
OK all working to my liking at the moment.
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.