Page 1 of 1

Flowers losing the colors! (="."=)

Posted: Tue Oct 01, 2013 6:21 pm
by Mariasole
Ciao a tutti!
I am continuing to study LiveCode and, even though I made more complex things, I stopped on this simple experiment!
I ask you to help my gurus! :D
I have a list of red flowers, green flowers and blue flowers. I have a button that puts in list these flowers. The problem is that the lists, when "combined", they lose the colors! :oops:
How can I do? Sorry for the obvious ignorance!
Grazie a tutti!!!!!

Mariasole
(="."=)

Social Security took care of this lad.
We watch in reverence, as Narcissus is turned to a flower.
A flower?

- Supper's Ready, Genesis -

Re: Flowers losing the colors! (="."=)

Posted: Tue Oct 01, 2013 6:56 pm
by jmburnod
Ciao MariaSole,

I'm not a guru but I believe I can help you.
You have to change the textcolor of the added lines

Something like that:

Code: Select all

   put the textcolor of fld "fRed" into tCurColor
   put the num of lines of  field "fRed" into tNbS
   put the num of lines of  field "fColorList" into tNbD
   put field "fRed" after field "fColorList"
   set the textcolor of line (tNbD+1) to (tNbD+tNbS) of fld "fColorList" to tCurColor
Same for green and blue and you can use a loop

Avanti popolo

Jean-Marc

Re: Flowers losing the colors! (="."=)

Posted: Thu Oct 03, 2013 11:00 am
by Mariasole
Cher Jean-Marc autre que guru! Vous ĂȘtes mon chevalier!
I understand the method, which is the most important thing.
You've clarified a dark side (for me) of LiveCode. Now is a colorful side! :P
Merci encore!
Au revoir mon chevalier, se remettre en selle de votre cheval pour sauver demoiselles d'autres codes malveillants! 8)



Mariasole

Code: Select all

 
         @@@
        // \\
       / \_/ \
      / ./_(-.\
     ( /      \\
      )|| @/ // )
     /  @>@<@/ (
     '-..@\ \.-'
        |    |
        |    |
        |    |
        |    `'.
        |        `'-.
        /           '-..
        |          . .. '-.__
         |.' .' .'.'__;.--'--.-'
         `"-----'"`

Re: Flowers losing the colors! (="."=)

Posted: Fri Oct 04, 2013 6:29 pm
by jmburnod
Sweet Lady,
I tried your code with a "do" command and that was very interesting.
The main room of the castle was perfect but why did you choose these green curtains ?

Sincerely your

P.S. I'm sorry to announce you i have eaten my horse