SlideView - Revealing Backpanels

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Armenhui
Posts: 71
Joined: Fri Oct 16, 2015 12:44 pm

Re: SlideView - Revealing Backpanels

Post by Armenhui » Tue Feb 02, 2016 5:46 pm

Hi all.
I want to use this example, but i do not understand how you create (thePanels) this is only image or what? and buttons on it are image or buttons?

Klaus
Posts: 11309
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: SlideView - Revealing Backpanels

Post by Klaus » Tue Feb 02, 2016 6:08 pm

Hi Armenhui,

well, "thePanels" are a combination of everything you may need for their purpose,
then GROUPed together, so they are just GROUPS! :D


Best

Klaus

Armenhui
Posts: 71
Joined: Fri Oct 16, 2015 12:44 pm

Re: SlideView - Revealing Backpanels

Post by Armenhui » Tue Feb 02, 2016 6:37 pm

Yes i know what is group, and also know how can create groups in LiveCode, but in this example i thinks this is now a group,i can not see thier buttons and group structur on project browser it only shows blue imange and thier name is custom control.

Armenhui
Posts: 71
Joined: Fri Oct 16, 2015 12:44 pm

Re: SlideView - Revealing Backpanels

Post by Armenhui » Tue Feb 02, 2016 6:38 pm

I also see on code but can not find how it custom controls createsin this example

Armenhui
Posts: 71
Joined: Fri Oct 16, 2015 12:44 pm

Re: SlideView - Revealing Backpanels

Post by Armenhui » Tue Feb 02, 2016 6:50 pm

Are there difference between groups and custom controls?

Klaus
Posts: 11309
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: SlideView - Revealing Backpanels

Post by Klaus » Tue Feb 02, 2016 6:54 pm

Ah, now I see!

Right click on "thePanels" ansd select "Property Inspector".
In the inspector check "SelectGroupedControls", which obviously can be set for any group separately
and that makes the difference between a GROUP and a "Custom control"!
Now you can "open" that group in the "Project Brwoser" and see what it is made from.

However EVERYTHING is scripted in the stack script.


Best

Klaus

Armenhui
Posts: 71
Joined: Fri Oct 16, 2015 12:44 pm

Re: SlideView - Revealing Backpanels

Post by Armenhui » Tue Feb 02, 2016 7:04 pm

Thank you very much for your help. Now i understand their difference. Thanks :) :wink:

Armenhui
Posts: 71
Joined: Fri Oct 16, 2015 12:44 pm

Re: SlideView - Revealing Backpanels

Post by Armenhui » Wed Feb 03, 2016 10:50 am

In this example i have an other problem, when i change the stack size app not working well, maybe i need do some changes in code?

Klaus
Posts: 11309
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: SlideView - Revealing Backpanels

Post by Klaus » Wed Feb 03, 2016 1:52 pm

Armenhui wrote:... maybe i need do some changes in code?
Obviously! :D

Sorry, did not take a deeper look, don't have the time right now...

endernafi
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 296
Joined: Wed May 02, 2012 12:23 pm
Location: New York
Contact:

Re: SlideView - Revealing Backpanels

Post by endernafi » Wed Feb 03, 2016 2:10 pm

Armenhui wrote:In this example i have an other problem, when i change the stack size app not working well
Well, it was meant to be just a proof of concept.
And Proof of Concept is, by definition, simple and incomplete.
That is, I've put a lot of effort to keep the script small.

There are many scripts / algorithms shared here in the forums that efficiently and beautifully resizes your stack.
Please, consider to implement one of them.


Best,

~ Ender
~... together, we're smarter ...~
__________________________________________

macOS Sierra • LiveCode 7 & xCode 8

Klaus
Posts: 11309
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: SlideView - Revealing Backpanels

Post by Klaus » Wed Feb 03, 2016 4:04 pm

Hi Ender,

nice to see you're still alive and well! :D


Best

Klaus

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm
Location: McKenna, WA

Re: SlideView - Revealing Backpanels

Post by quailcreek » Wed Feb 03, 2016 9:37 pm

Glad this thread popped up. I've been trying to do something sort of like this in a datagrid. I'm trying to mimic the way the delete is revealed in iSO by swiping left. I've done it with a simple move but it's not quite what I want. In the row template I have a sub group (Slide_Grp) that is layered above a delete graphic. All I want to do is snap the right of the slide_grp to the left of the delete grc once the slide_grp is dragged past the grc. I have attached a sample. I've looked over Ender's stack but I'm having trouble adapting it to my more simple needs. Any help would be much appreciated.
Attachments
DG Slide.livecode.zip
(5.61 KiB) Downloaded 92 times
Tom
MacBook Pro OS Mojave 10.14

Armenhui
Posts: 71
Joined: Fri Oct 16, 2015 12:44 pm

Re: SlideView - Revealing Backpanels

Post by Armenhui » Thu Feb 04, 2016 2:58 pm

In this example preOpenCard command calls in main stack and refers the all cards, for example i have one card which has separate preOpenCard how can organize this staff and create separate preOpenCard command for card ? And do not use main stack`s preOpenCard.

Armenhui
Posts: 71
Joined: Fri Oct 16, 2015 12:44 pm

Re: SlideView - Revealing Backpanels

Post by Armenhui » Thu Feb 04, 2016 3:01 pm

Thanks for answer, yes i found way and resize the stack.

endernafi
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 296
Joined: Wed May 02, 2012 12:23 pm
Location: New York
Contact:

Re: SlideView - Revealing Backpanels

Post by endernafi » Sat Feb 06, 2016 9:19 am

Klaus wrote:Hi Ender, nice to see you're still alive and well! :D
Hi Klaus, nice to see you, too :)


quailcreek wrote:Glad this thread popped up. I've been trying to do something sort of like this in a datagrid. I'm trying to mimic the way the delete is revealed in iSO by swiping left.
Unfortunately, I don't have much time these days to help you with this specific issue and honestly, it's been more than 2 years since I have written any LiveCode script.
Though, I remember that dear Gerry Orkin created an excellent Swipe-to-Action Datagrid, fully functional;
maybe, you could find his stack here in the forums if he did share of course.


Armenhui wrote:In this example preOpenCard command calls in main stack and refers the all cards, for example i have one card which has separate preOpenCard how can organize this staff and create separate preOpenCard command for card ? And do not use main stack`s preOpenCard.
This stack was meant to be dead simple.
It's not production-ready.
It's definitely not a template or can serve as a starting point.
It's not a library, either.
I've put all code into the stack script against the convention, so that it can be seen and observed at one glance.

You should
• Create an empty stack
• Shape it in accordance with your project
• And have a look at my code just whenever you need to.


Armenhui wrote:Thanks for answer, yes i found way and resize the stack.
That's good news, excellent...



Best,

~ Ender
~... together, we're smarter ...~
__________________________________________

macOS Sierra • LiveCode 7 & xCode 8

Post Reply

Return to “iOS Deployment”