Page 1 of 1
Make a border around a substack
Posted: Thu Aug 11, 2016 5:38 pm
by erikhans08
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
Re: Make a border around a substack
Posted: Thu Aug 11, 2016 5:48 pm
by erikhans08
These substacks are Palettes.
Re: Make a border around a substack
Posted: Thu Aug 11, 2016 6:17 pm
by dunbarx
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
Re: Make a border around a substack
Posted: Thu Aug 11, 2016 6:47 pm
by FourthWorld
Three card properties to consider:
showBorder
threeD
borderWidth
Re: Make a border around a substack
Posted: Thu Aug 11, 2016 7:22 pm
by erikhans08
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.
Re: Make a border around a substack
Posted: Thu Aug 11, 2016 8:52 pm
by dunbarx
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
Re: Make a border around a substack
Posted: Thu Aug 11, 2016 10:02 pm
by FourthWorld
dunbarx wrote:Well what do you know, Cards have borders, even though that property is not present in the inspector.
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":
http://fourthworld.net/revnet/devolutio ... ops.rev.gz
Re: Make a border around a substack
Posted: Fri Sep 25, 2020 6:19 pm
by PaulDaMacMan
FourthWorld wrote: ↑Thu Aug 11, 2016 10:02 pm
dunbarx wrote:Well what do you know, Cards have borders, even though that property is not present in the inspector.
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":
http://fourthworld.net/revnet/devolutio ... ops.rev.gz
Hey Richard,
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!
Re: Make a border around a substack
Posted: Fri Sep 25, 2020 6:42 pm
by FourthWorld
PaulDaMacMan wrote: ↑Fri Sep 25, 2020 6:19 pm
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!
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.
Re: Make a border around a substack
Posted: Sun Sep 27, 2020 2:48 pm
by PaulDaMacMan
FourthWorld wrote: ↑Fri Sep 25, 2020 6:42 pm
PaulDaMacMan wrote: ↑Fri Sep 25, 2020 6:19 pm
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!
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.
OK, Widgets have been part of LC for at least 5-6 years so I assumed they were already first-class citizens by now.
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
Re: Make a border around a substack
Posted: Sun Sep 27, 2020 4:05 pm
by FourthWorld
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.