Properties and properties
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 10076
- Joined: Fri Feb 19, 2010 10:17 am
Properties and properties
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.
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
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
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
-
- Livecode Opensource Backer
- Posts: 10076
- Joined: Fri Feb 19, 2010 10:17 am
Re: Properties and properties
I can't figure this out.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.
Regardless of what I try I don't get a pane called "Table."
Please explain or show pictures.
Thanks,
Bob
Re: Properties and properties
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
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
Okay.
Thanks Craig.
Thanks Craig.
Re: Properties and properties
Since Craig already explained, here are the pictures

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. When Revolution 1 came out, the properties dialog (and MANY other things) changed slightly... 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... Cont'd in the next post...

Re: Properties and properties
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... and finally, we come to the (more or less) current crop of IDEs, which I don't use at all. Don't ask about CREATE or Xavvi or whatever they are calling it now, I have never touched it.
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... and finally, we come to the (more or less) current crop of IDEs, which I don't use at all. Don't ask about CREATE or Xavvi or whatever they are calling it now, I have never touched it.

Re: Properties and properties
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
Craig
Re: Properties and properties
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 ?

Re: Properties and properties
Bogs.
Yep. I now see the standard inspector pane I posted. The colors threw me.
Craig
Yep. I now see the standard inspector pane I posted. The colors threw me.
Craig
Re: Properties and properties
Oh the colors... funny, I didn't think you were out of the 60s vintage like myself 

