Properties and properties

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10077
Joined: Fri Feb 19, 2010 10:17 am

Properties and properties

Post by richmond62 » Tue Nov 26, 2024 1:55 pm

I have been messing around with fields, and discovered that the fields that are delivered from the Tools palette are derived from Tab_delimited files stored way, way down in the merry file structure of LiveCode:

Contents/Tools/Toolset/resources/supporting_files/property-definitions

they contain a vast list of properties:

name
styledText
text
tooltip
disabled
visible
sharedText
dontWrap
lockText
opaque
traversalOn
showFocusBorder
autoTab
threeD
showBorder
borderWidth
hScrollbar
vScrollbar
scrollbarWidth
autoHilite
listBehavior
multipleHilites
nonContiguousHilites
toggleHilites
firstIndent
dontSearch
layerMode
behavior
basicTableObject
cellEdit
maxColumnCount
cellFormat

showLines
hGrid
vGrid
tabStops
foregroundColor
foregroundPattern
backgroundColor
backgroundPattern
hiliteColor
hilitePattern
borderColor
borderPattern
topColor
topPattern
bottomColor
bottomPattern
shadowColor
shadowPattern
focusColor
focusPattern
customProperties
blendLevel
ink
textFont
textSize
textStyle
textAlign
fixedLineHeight
textHeight
margins
lockLoc
width::revIDESetRectProperty
height::revIDESetRectProperty
dropShadow
innerShadow
outerGlow
innerGlow
colorOverlay

my emphasis

the properties that I have highlighted in orange (which, oddly enough, comes out as dark pink in my browser) are not listed in the Dictionary, and on changing them, do not seem to change a field in any observable fashion.

HOW can I work out what properties DO have an effect on an object, and what ones DON'T?

I am a bit fussed that there seem to be many, many areas inwith LiveCode (= community version) I cannot find documentation.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Properties and properties

Post by bn » Tue Nov 26, 2024 3:26 pm

Hi Richmond,

Those four colored properties are used in the "Table Field"

Drag a "Table Field" on a stack in open the properties inspector for it. Then you have a pane "Table" in the properties inspector which shows those properties and their values.

Kind regards
Bernd

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10077
Joined: Fri Feb 19, 2010 10:17 am

Re: Properties and properties

Post by richmond62 » Tue Nov 26, 2024 3:43 pm

Thank you very much.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Properties and properties

Post by bogs » Tue Dec 24, 2024 1:05 pm

bn wrote:
Tue Nov 26, 2024 3:26 pm
Drag a "Field" on a stack in open the properties inspector for it. Then you have a pane "Table" in the properties inspector which shows those properties and their values.
... fixed that for you Bn :wink:
Image

bobcole
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 161
Joined: Tue Feb 23, 2010 10:53 pm

Re: Properties and properties

Post by bobcole » Sun Dec 29, 2024 11:21 pm

bn wrote: ↑Tue Nov 26, 2024 8:26 am
Drag a "Field" on a stack in open the properties inspector for it. Then you have a pane "Table" in the properties inspector which shows those properties and their values.
I can't figure this out.
Regardless of what I try I don't get a pane called "Table."
Please explain or show pictures.
Thanks,
Bob

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Properties and properties

Post by dunbarx » Mon Dec 30, 2024 1:02 am

Bob.

LC has only one field object, and a table field is just a field with certain properties.

The "table" tab is fourth from the left in the inspector.

Craig

bobcole
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 161
Joined: Tue Feb 23, 2010 10:53 pm

Re: Properties and properties

Post by bobcole » Mon Dec 30, 2024 1:44 am

Okay.
Thanks Craig.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Properties and properties

Post by bogs » Mon Dec 30, 2024 1:48 pm

bobcole wrote:
Sun Dec 29, 2024 11:21 pm
Please explain or show pictures.
Since Craig already explained, here are the pictures :wink:

If your an anachronism like myself or just interested in how things started out, to create a table field in MC you would either set it up through the message box or through these 2 tabs in the properties dialog. MC's menu-bar and tool-bar only had the default base field control.
fldTablePropsMc.png
MC field properties to set for a table were across these 2 tabs...
When Revolution 1 came out, the properties dialog (and MANY other things) changed slightly...
fldTablePropsRev1-1.png
Rev 1.1, which I find fairly interesting myself..
Revolution 2.2 is a lot closer to what you see in the previous generation (pre 8.x) IDE, things didn't change much from this point till 7.x (the DataGrid being the major addition to the tools palette) , but you can see the properties sections were still progressing...
fldTablePropsRev.png
Rev 2.2...
Cont'd in the next post...
Image

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Properties and properties

Post by bogs » Mon Dec 30, 2024 1:52 pm

Cont'd from previous post....

From Rev 3 to Lc 7.x, a lot changed, sometimes even for the better, but the IDE controls and locations of things were pretty much set by this point for the next decade or so...
fldTablePropsLc6-5-2.png
Lc 6.5.2, the first IDE I used when I first heard of LiveCode...
and finally, we come to the (more or less) current crop of IDEs, which I don't use at all.
fldTablePropsLc9-x.png
Lc 9.6.x
Don't ask about CREATE or Xavvi or whatever they are calling it now, I have never touched it.
Image

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Properties and properties

Post by dunbarx » Mon Dec 30, 2024 4:05 pm

MC was before my time; I held onto HC until jacque finally convinced my I was being silly. Anyway, just to be sure Bob's question is answered, here is a screenshot of the LC "Table" tab.

Craig
Untitled.pdf.zip
(36.12 KiB) Downloaded 523 times

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Properties and properties

Post by bogs » Mon Dec 30, 2024 6:59 pm

I'm curious Craig, did you skip straight from the screen shot of MC past the rest of the 2 posts showing every version of the table tab in all the IDEs since MC, including the screen shot of 9.x ?
rofl.png
rofl.png (64.04 KiB) Viewed 11342 times
Image

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Properties and properties

Post by dunbarx » Mon Dec 30, 2024 7:57 pm

Bogs.

Yep. I now see the standard inspector pane I posted. The colors threw me.

Craig

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Properties and properties

Post by bogs » Mon Dec 30, 2024 8:36 pm

Oh the colors... funny, I didn't think you were out of the 60s vintage like myself :twisted:
Image

Post Reply