Controls properties description ?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
michel_bujardet
Posts: 45
Joined: Mon Apr 21, 2014 10:41 am
Contact:

Controls properties description ?

Post by michel_bujardet » Tue Sep 30, 2014 12:24 am

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.

Mitch
http://FontMenu.com

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

Re: Controls properties description ?

Post by dunbarx » Tue Sep 30, 2014 4:32 pm

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Controls properties description ?

Post by FourthWorld » Tue Sep 30, 2014 4:48 pm

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
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

michel_bujardet
Posts: 45
Joined: Mon Apr 21, 2014 10:41 am
Contact:

Re: Controls properties description ?

Post by michel_bujardet » Tue Sep 30, 2014 8:52 pm

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.

Mitch
http://FontMenu.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Controls properties description ?

Post by FourthWorld » Tue Sep 30, 2014 8:55 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

michel_bujardet
Posts: 45
Joined: Mon Apr 21, 2014 10:41 am
Contact:

Re: Controls properties description ?

Post by michel_bujardet » Tue Sep 30, 2014 8:57 pm

FourthWorld wrote: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
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]

Mitch
http://FontMenu.com

michel_bujardet
Posts: 45
Joined: Mon Apr 21, 2014 10:41 am
Contact:

Re: Controls properties description ?

Post by michel_bujardet » Tue Sep 30, 2014 9:03 pm

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.

Mitch
http://FontMenu.com

Post Reply