Page 1 of 1
Controls properties description ?
Posted: Tue Sep 30, 2014 12:24 am
by michel_bujardet
Is there a description of every control properties and the way to change them ?
I went to use a Table Field, and have already discovered how to set column widths with for instance "200,10,200,500" but simply experimenting is not convenient. For instance, how do I access each cell, is it possible to insert check boxes into some cells, or graphics, and so on ? The Dictionary does not even list the Table Field.
This may be right under my nose, but I could not see it.
Any help will be greatly appreciated. TIA.
Re: Controls properties description ?
Posted: Tue Sep 30, 2014 4:32 pm
by dunbarx
Hi.
Are these two separate question?
Read about "the properties" er, property, in the dictionary.
As for accessing the "cells" in a table field (there aren't any, really, a table field is just a field with tabs embedded) you deal with that as a data gestalt. The table field is arranged like a spreadsheet, that is, tab and return delimited. So if you want to place text in the third cell" of the second row, you would:
on mouseUp
set the itemDel to tab
put "xxx" into item 3 of line 2 of fld "yourTable"
end mouseUp
Now if you want to add the fancy stuff you mentioned, you will need to use a dataGrid of type "form". Good luck with this, as DG's are wonderful, but complex, and require learning a syntax subset of LC.
Craig Newman
Re: Controls properties description ?
Posted: Tue Sep 30, 2014 4:48 pm
by FourthWorld
This may not help with your specific need on the table field, but this tool provides a UI for viewing and ediing nearly every property of the selected object:
http://fourthworld.net/revnet/devolutio ... ops.rev.gz
Re: Controls properties description ?
Posted: Tue Sep 30, 2014 8:52 pm
by michel_bujardet
dunbarx wrote:Read about "the properties" er, property, in the dictionary.
Thank you. I already had found this. My concern is to find a description of existing properties for a particular control. But I guess I will have to figure that out from the inspector.
Now if you want to add the fancy stuff you mentioned, you will need to use a dataGrid of type "form". Good luck with this, as DG's are wonderful, but complex, and require learning a syntax subset of LC.
Interesting. Where would I be able to learn, then ?
Thank you for your example, though.
Re: Controls properties description ?
Posted: Tue Sep 30, 2014 8:55 pm
by FourthWorld
michel_bujardet wrote:My concern is to find a description of existing properties for a particular control. But I guess I will have to figure that out from the inspector.
In the Dictionary you can choose the object type from the left-hand pane and then sort the results by the Type field to find properties for that object, messages, etc.
Re: Controls properties description ?
Posted: Tue Sep 30, 2014 8:57 pm
by michel_bujardet
Thank you. But I get the following message when opening the stack
Code: Select all
There was an error executing a script in
stack 4wProps. No more information is
available because the stack is password
protected.
[OK]
Re: Controls properties description ?
Posted: Tue Sep 30, 2014 9:03 pm
by michel_bujardet
FourthWorld wrote:michel_bujardet wrote:My concern is to find a description of existing properties for a particular control. But I guess I will have to figure that out from the inspector.
In the Dictionary you can choose the object type from the left-hand pane and then sort the results by the Type field to find properties for that object, messages, etc.
OK. So there is the field object, and I gather the properties would be the same for a Table field ?
What about a Data Grid ? It is not there...
Well. I found
http://lessons.runrev.com/m/datagrid/l/ ... -with-data
Thank you.