Scrolling List Field

John Baxter mandozine at gmail.com
Thu Aug 17 15:02:01 EDT 2006


Mark,
Yes, the idea is to be able to insert both chords and Tab, and occasionally
lyrics. There are times I will want to do just a chord sheet, and other
times I will want to do just Tab. But, most of the time I will want to do
both. The idea is to insert chords on one line and Tab on the next line,
alternating between the two.

You suggestion of putting the char in the ChordList, and hiding it using
tabStops is great. I was able to get it working for both the label/chord
display in the Chord Library, and for the insertion of chords into the
mainstack. I've updated my web page to reflect the latest code.

http://www.ukefarm.com/uketab/

Now all I need to do is be able to insert chords or Tab at the cursor
location in the mainstack, rather than the char being added to the end of
the last line.

You have been extremely helpful and generous with your time. Maybe I can pay
you something for your help?

John

On 8/17/06, Mark Smith <mark at maseurope.net> wrote:
>
> Is the idea to have both the text name of the chord "Am" with the Am
> tab below it? If so, it might be easier to have two fields, one above
> the other, and line up the contents using tabStops.
>
> You might be able to avoid a lookup, as such, by having the char you
> need for the tab font ('a' in this case) on the same line as "Am" in
> the chordList field, tabbed over to the right, so the user doesn't
> see it. So the A major and A minor lines in the chord list would be:
>
> A    -tab- A
> Am -tab- a
> having set the tabStops of fld  "chordList" to 200, or some number of
> pixels that puts the second word out of sight.
>
> Then you can get at the respective chord representations by using
> 'word 1 of value(the selected line of fld "chordList")' or 'word 2 of
> value(the selected line of fld "chordList")'.
>
> I'm still not exactly clear on what you want to insert into the main
> stack (chords or tabs, chords and tabs, sometimes one or other), but
> I'm sure we'll get there...:)
>
> best,
>
> Mark
>
> On 17 Aug 2006, at 10:49, John Baxter wrote:
>
> > Mark,
> > That is correct. I use "A" for the "A" chord, and "a" for the "Am"
> > chord.
> > But the code I am using is passing the "Am" rather that the "a", so
> > it is
> > displaying two chords. I'm not sure how to code this, other than
> > creating a
> > lookup list. That is what I had before, but I couldn't mix the fonts
> > successfully. If I put chords in, and then switched to Tab, the
> > chords would
> > change to Tab. I apologize for my lack of knowledge on this. You
> > have been
> > extremely helpful and patient.
> > John
> >
> > On 8/17/06, Mark Smith <mark at maseurope.net> wrote:
> >>
> >> John, I  may have this wrong, but don't you need to map the "Am" (two
> >> chars) to the appropriate (single) character of the tab font, like
> >> you do when setting the chordField field?
> >>
> >> Mark
> >>
> >> On 17 Aug 2006, at 06:14, John Baxter wrote:
> >>
> >> > Mark,
> >> > Thanks for your help. I'm getting there, but there are two problems
> >> > I am
> >> > still having:
> >> >
> >> > I have uploaded images and the problems I am having at:
> >> >
> >> > http://www.ukefarm.com/uketab/
> >> >
> >> > I thought it might be easier if there were a visual to help explain
> >> > what I'm
> >> > trying to accomplish. Your code has been very helpful. If anyone
> >> has
> >> > suggestions on how to fix my problems I listed on the link above, I
> >> > would
> >> > really appreciate it.
> >> >
> >>
> >> _______________________________________________
> >> use-revolution mailing list
> >> use-revolution at lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-revolution
> >>
> >
> >
> >
> > --
> > John Baxter
> > http://www.mandozine.com
> > http://www.mandotunes.com
> >
> > Mandozine Radio:  Tuned Locally - Played Globally
> > http://www.live365.com/stations/mandozine
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
John Baxter
http://www.mandozine.com
http://www.mandotunes.com

Mandozine Radio:  Tuned Locally - Played Globally
http://www.live365.com/stations/mandozine



More information about the use-livecode mailing list