Check Boxes in Text Fields
SparkOut
SparkOutYNY at gmail.com
Tue Jan 27 11:20:15 EST 2009
Jan Schenkel wrote:
>
> --- SparkOut <SparkOutYNY at gmail.com> wrote:
>>
>>
>> J. Landman Gay wrote:
>> >
>> > Gregory Lypny wrote:
>> >> Hello everyone,
>> >>
>> >> I'd like to have functional check boxes at
>> the beginning of each
>> >> line of a text field. Is there some way to get
>> the actual button in
>> >> there or would I create an image of both a
>> checked and unchecked box and
>> >> then toggle the imageSource?
>> >
>> > I've always toggled the imagesource. Any other way
>> is a scripting
>> > nightmare.
>> >
>> > --
>> > Jacqueline Landman Gay |
>> >
>> Sorry to hijack this question, but on the same
>> subject - is there any way to
>> handle the toggling other than stepping line by line
>> through the field,
>> checking the appropriate item and choosing the
>> relevant imagesource? I find
>> working on the field this way very slow.
>> For speed I'd like to do this in a variable and put
>> the finished list into
>> the field, but you can't set the imagesource of a
>> chunk of a variable, only
>> a field (that I know).
>> Is there a better way than I've got in my head?
>>
>
> You can always build the field's htmlText in one go,
> and set it after you're done.
>
> HTH,
>
> Jan Schenkel.
>
> Quartam Reports & PDF Library for Revolution
> <http://www.quartam.com>
>
> =====
> "As we grow older, we grow both wiser and more foolish at the same time."
> (La Rochefoucauld)
>
>
>
> _______________________________________________
> 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
>
>
You lost me there Jan, are you telling me you can set the imageSource of
char 1 of line x of a variable and then set the htmlText of the field to the
variable? (That's what I was suggesting I'd like to try, but if you could
set the imageSource of a chunk of a variable then you wouldn't need to set
the htmlText anyway, you could just put the variable - including images -
into the field. Except you can't. Can you?)
And thanks William, I already have a ListMagic trial - and am very
impressed, only I need to have several checkboxes in different columns.
ListMagic is limited to a fixed position checkbox in only one column, plus
it came after I'd already rolled my own table control in this particular
app. It's not very generic, and I'd like to have a true table control
(please vote for QCC #670 everyone!)
It's very sad - I'd emailed Eric to see if there were any options with
regard to enhanced checkboxes and/or potential for making some source
available to work on that aspect for him and donating back to ListMagic, but
after a few days I found out the reason for him not replying. Such a
terrible loss to the community.
--
View this message in context: http://www.nabble.com/Check-Boxes-in-Text-Fields-tp21670593p21688652.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list