How to remove responsive layout

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
terryho
Posts: 126
Joined: Mon Nov 05, 2012 2:53 pm

How to remove responsive layout

Post by terryho » Fri Dec 16, 2022 7:52 am

Hi

Yesterday, I had try and test responsive layout on a sample stack.

I don't know what I click and make it un-control in server cards. Is there a way or script to clear out all responsive layout in the stack or card?

It seems in the magic platter there is no such setting.

Regards

Terry Ho

stam
Posts: 2686
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: How to remove responsive layout

Post by stam » Fri Dec 16, 2022 10:27 am

Hi Terry - Jacque mentioned the settings are stored in a custom property and that they are deletable - but I don't know if that custom property is in object, group, card or stack. Certainly it's a bug and it's being worked on. Hopefully we'll no longer need to do this in the future but for now I guess you'd need to hunt down that custom prop and delete it ;)

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7239
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: How to remove responsive layout

Post by jacque » Fri Dec 16, 2022 6:49 pm

Only cards and groups can be containers for responsive layout, so the custom property set will be in one of those places. When you open the card inspector, go to the custom properties pane and use the drop-down in the set button to select responsive layout. Then you can delete it. Do the same for any group that uses the feature.

There is also an empty choice in the popup selectors in the Magic Palette (it's the top line), you can use that to remove any existing setup for a single card or group.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7239
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: How to remove responsive layout

Post by jacque » Fri Dec 16, 2022 11:50 pm

Found it. From the dictionary:
Use the clearLayoutCache command to clear the cache for all objects on the card.
If you choose "ResponsiveLayout" in the dictionary filters, all the relevant keywords are displayed. The descriptions are not always clear, but at least they're available and point in the general direction.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

terryho
Posts: 126
Joined: Mon Nov 05, 2012 2:53 pm

Re: How to remove responsive layout

Post by terryho » Sat Dec 17, 2022 8:16 am

Hi All,

Thanks for help. I find the property and delete it.
But it seems there is bug in it. I will try and find the bug and report to Quality.

Regards

Terry Ho

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7239
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: How to remove responsive layout

Post by jacque » Sat Dec 17, 2022 6:38 pm

I tried clearLayoutCache from the message box and it wasn't recognized, so I'm not sure how to use it. Anyway, since it only deletes the cache, it probably doesn't delete the properties.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”