Page 1 of 1

Properties and properties

Posted: Tue Nov 26, 2024 1:55 pm
by richmond62
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.

Re: Properties and properties

Posted: Tue Nov 26, 2024 3:26 pm
by bn
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

Re: Properties and properties

Posted: Tue Nov 26, 2024 3:43 pm
by richmond62
Thank you very much.

Re: Properties and properties

Posted: Tue Dec 24, 2024 1:05 pm
by bogs
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:

Re: Properties and properties

Posted: Sun Dec 29, 2024 11:21 pm
by bobcole
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

Re: Properties and properties

Posted: Mon Dec 30, 2024 1:02 am
by dunbarx
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

Re: Properties and properties

Posted: Mon Dec 30, 2024 1:44 am
by bobcole
Okay.
Thanks Craig.

Re: Properties and properties

Posted: Mon Dec 30, 2024 1:48 pm
by bogs
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...

Re: Properties and properties

Posted: Mon Dec 30, 2024 1:52 pm
by bogs
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.

Re: Properties and properties

Posted: Mon Dec 30, 2024 4:05 pm
by dunbarx
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 527 times

Re: Properties and properties

Posted: Mon Dec 30, 2024 6:59 pm
by bogs
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 11367 times

Re: Properties and properties

Posted: Mon Dec 30, 2024 7:57 pm
by dunbarx
Bogs.

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

Craig

Re: Properties and properties

Posted: Mon Dec 30, 2024 8:36 pm
by bogs
Oh the colors... funny, I didn't think you were out of the 60s vintage like myself :twisted: