Buttons,Fields & Columns
sarahr at genesearch.com.au
Thu Mar 17 17:27:00 CST 2005
> I am
> currently trying to:
> 1. Use PrimaryOptionButton with the lettters, A,B,C,
> 2. A SecondaryOptionButton -set multiple choice categories.
> 3. A TaskField for entering a task or action.
> 3. Combine the PrimaryOptionButton and the SecondaryOptionButton and
> TaskField into a Multicolumn field which can be sort by
> Multiple Choice
I'm not sure I fully understand what you are trying to do, but I'll
have a go.
#1 is a group a radio buttons so that only one of A, B or C can be
chosen, we'll call the group "Primary"
#2 is a menu button of some sort, they all act similarly though they
look different - again only one of the available options can be chosen,
we'll call this menu button "Secondary"
#3 is an editable field that we will call "Task"
Make a list field called "List" and a button called "Add".
Script the Add button as follows:
put the hilitedButtonName of group "Primary" into tPrimary
put the selectedText of button "Secondary" into tSecondary
put field "Task" into tTask
put tPrimary & tab & tSecondary & tab & tTask & cr after field "List"
To sort by any of these columns, use this:
on sortBy pColumnNumber
set the itemDelimiter to tab
sort lines of field "List" by item pColumnNumber of each
Hope this helps, if I have misunderstood your objectives, or something
is not clear, please ask again.
More information about the use-livecode