Page 2 of 3

Re: SlideView - Revealing Backpanels

Posted: Tue Feb 02, 2016 5:46 pm
by Armenhui
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?

Re: SlideView - Revealing Backpanels

Posted: Tue Feb 02, 2016 6:08 pm
by Klaus
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

Re: SlideView - Revealing Backpanels

Posted: Tue Feb 02, 2016 6:37 pm
by Armenhui
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.

Re: SlideView - Revealing Backpanels

Posted: Tue Feb 02, 2016 6:38 pm
by Armenhui
I also see on code but can not find how it custom controls createsin this example

Re: SlideView - Revealing Backpanels

Posted: Tue Feb 02, 2016 6:50 pm
by Armenhui
Are there difference between groups and custom controls?

Re: SlideView - Revealing Backpanels

Posted: Tue Feb 02, 2016 6:54 pm
by Klaus
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

Re: SlideView - Revealing Backpanels

Posted: Tue Feb 02, 2016 7:04 pm
by Armenhui
Thank you very much for your help. Now i understand their difference. Thanks :) :wink:

Re: SlideView - Revealing Backpanels

Posted: Wed Feb 03, 2016 10:50 am
by Armenhui
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?

Re: SlideView - Revealing Backpanels

Posted: Wed Feb 03, 2016 1:52 pm
by Klaus
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...

Re: SlideView - Revealing Backpanels

Posted: Wed Feb 03, 2016 2:10 pm
by endernafi
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

Re: SlideView - Revealing Backpanels

Posted: Wed Feb 03, 2016 4:04 pm
by Klaus
Hi Ender,

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


Best

Klaus

Re: SlideView - Revealing Backpanels

Posted: Wed Feb 03, 2016 9:37 pm
by quailcreek
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.

Re: SlideView - Revealing Backpanels

Posted: Thu Feb 04, 2016 2:58 pm
by Armenhui
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.

Re: SlideView - Revealing Backpanels

Posted: Thu Feb 04, 2016 3:01 pm
by Armenhui
Thanks for answer, yes i found way and resize the stack.

Re: SlideView - Revealing Backpanels

Posted: Sat Feb 06, 2016 9:19 am
by endernafi
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