Make a border around a substack
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 87
- Joined: Wed Mar 25, 2015 2:01 am
Make a border around a substack
Is there a way to make a border around a substack? My substacks have the same background color as the mainstack so there is no delineation.
Thanks,
Erik Hansen
Thanks,
Erik Hansen
-
- Posts: 87
- Joined: Wed Mar 25, 2015 2:01 am
Re: Make a border around a substack
These substacks are Palettes.
-
- VIP Livecode Opensource Backer
- Posts: 9662
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Make a border around a substack
I did not think that stacks, or rather cards, had a "border" property, though the dictionary gives an example of setting the width of a card border, though doing so seems to do nothing, and no error is thrown.
So I am not sure about a native way to do this.
But you can always create a rectangle graphic, and set its rect to the card rect. Color it as you want, and set its lineSize to whatever.
Craig Newman
So I am not sure about a native way to do this.
But you can always create a rectangle graphic, and set its rect to the card rect. Color it as you want, and set its lineSize to whatever.
Craig Newman
-
- VIP Livecode Opensource Backer
- Posts: 9836
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Make a border around a substack
Three card properties to consider:
showBorder
threeD
borderWidth
showBorder
threeD
borderWidth
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 87
- Joined: Wed Mar 25, 2015 2:01 am
Re: Make a border around a substack
Yes! ShowBorder = true and BorderWidth = 1.
I do use Craig's rectangle graphic for an border surrounding a grid in another context.
I drag-draw the whole thing as an easy way to get attention.
I do use Craig's rectangle graphic for an border surrounding a grid in another context.
I drag-draw the whole thing as an easy way to get attention.
-
- VIP Livecode Opensource Backer
- Posts: 9662
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Make a border around a substack
Well what do you know, Cards have borders, even though that property is not present in the inspector.
But changing the borderWidth property does nothing unless I navigate off the stack and come back. Other properties, such as the borderColor, change as advertised.
Craig
But changing the borderWidth property does nothing unless I navigate off the stack and come back. Other properties, such as the borderColor, change as advertised.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9836
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Make a border around a substack
The Inspector is a subset of properties, showing only the most commonly used one. But LC is a deep language, so there's always something new to discover. This Property Sheet tool shows all props returned from "the properties":dunbarx wrote:Well what do you know, Cards have borders, even though that property is not present in the inspector.
http://fourthworld.net/revnet/devolutio ... ops.rev.gz
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 627
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Re: Make a border around a substack
Hey Richard,FourthWorld wrote: ↑Thu Aug 11, 2016 10:02 pmThe Inspector is a subset of properties, showing only the most commonly used one. But LC is a deep language, so there's always something new to discover. This Property Sheet tool shows all props returned from "the properties":dunbarx wrote:Well what do you know, Cards have borders, even though that property is not present in the inspector.
http://fourthworld.net/revnet/devolutio ... ops.rev.gz
I just found your tool while working on some Widget Properties... Just an FYI, it doesn't list some Widget properties, at least not beyond some of the basics. For example: I've shadowed the LiveCode property borderColor in my Widget (along with a some others standard and some custom props too) but that isn't listed. Maybe because 'the properties' is limited or hasn't been updated to support Widget properties? Still a useful tool though, thanks!
-
- VIP Livecode Opensource Backer
- Posts: 9836
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Make a border around a substack
Exactly. In this early stage of LCB widgets are not yet first-class citizens with regard to some universal ways of working with objects in LC Script. My understanding is that there's interest in unifying this currently-bifurcated introspection by allowing property access with widgets via "the properties". When that happens my 4W Property Sheet and everything else in our community that works with "the properties" will automatically handle widgets just as gracefully.PaulDaMacMan wrote: ↑Fri Sep 25, 2020 6:19 pmI just found your tool while working on some Widget Properties... Just an FYI, it doesn't list some Widget properties, at least not beyond some of the basics. For example: I've shadowed the LiveCode property borderColor in my Widget (along with a some others standard and some custom props too) but that isn't listed. Maybe because 'the properties' is limited or hasn't been updated to support Widget properties? Still a useful tool though, thanks!
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 627
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Re: Make a border around a substack
OK, Widgets have been part of LC for at least 5-6 years so I assumed they were already first-class citizens by now.FourthWorld wrote: ↑Fri Sep 25, 2020 6:42 pmExactly. In this early stage of LCB widgets are not yet first-class citizens with regard to some universal ways of working with objects in LC Script. My understanding is that there's interest in unifying this currently-bifurcated introspection by allowing property access with widgets via "the properties". When that happens my 4W Property Sheet and everything else in our community that works with "the properties" will automatically handle widgets just as gracefully.PaulDaMacMan wrote: ↑Fri Sep 25, 2020 6:19 pmI just found your tool while working on some Widget Properties... Just an FYI, it doesn't list some Widget properties, at least not beyond some of the basics. For example: I've shadowed the LiveCode property borderColor in my Widget (along with a some others standard and some custom props too) but that isn't listed. Maybe because 'the properties' is limited or hasn't been updated to support Widget properties? Still a useful tool though, thanks!
Until then this works to get a list of widget properties (not sure if this works on Linux):
-- passing the returned value of: the kind of widget "My Widget"
put the keys of (revIDEExtensionProperties("community.livecode.widget.piano"))
viewtopic.php?t=27183
-
- VIP Livecode Opensource Backer
- Posts: 9836
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Make a border around a substack
Thanks, Paul. You're welcome to add that if you like. Just email me the updated stack file and I'll merge the change(s) into the master and post an update.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn