Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Change the R,V and B colour values by variables into the labels

  1. #1
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,845

    Smile Change the R,V and B colour values by variables into the labels

    I should like to change the colour of a label on the fly .
    I know that the DEFINE method exist but only into an include or a skin file.
    I have tried that but without success !
    Code:
    L04,551,192,101,38,$RRR$,$VVV$,$BBB$,12,"Arial:BI","=Send To RideRunner","WRAP-CENTER",,"DS=2,2,0,0,0"
    I should like well a command as:
    DEFINE;color;255,128,0 , with the normal format:
    Code:
    L04,551,192,101,38,#COLOR#,12,"Arial:BI","=Send To RideRunner","WRAP-CENTER",,"DS=2,2,0,0,0"
    or
    DEFINE;RRR;255
    DEFINE;VVV;0
    DEFINE;BBB;0
    with the normal format:
    Code:
    L04,551,192,101,38,#RRR#,#VVV#,#BBB#,12,"Arial:BI","=Send To RideRunner","WRAP-CENTER",,"DS=2,2,0,0,0"
    Thanks for all help !!!

  2. #2
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,625
    On the fly cannot be done.

    if you change the value of the variable used for the font colour in a label you will need to reload that screen for the effect to take.

  3. #3
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,845
    Quote Originally Posted by Enforcer View Post
    On the fly cannot be done.

    if you change the value of the variable used for the font colour in a label you will need to reload that screen for the effect to take.
    Thanks for your help Enforcer,
    I know that i need to refresh the screen , but does exist a possibility to use variables for the RVB values ?

  4. #4

  5. #5
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,845
    Quote Originally Posted by Enforcer View Post
    Yes.

    That's how my iDrive skin does it.

    Oh and we call them RGB


    Green not Vert
    Yes , sorry for my french.
    How do you do that into your skin please ?

  6. #6
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,625
    Are you trying to do this in a plugin or just a skin?


    Anyway I have a colours.skin file which is included in a top.skin which in turn is included in all the .skin files.


    However you could just put the commands in the .skin file.


    colours.skin has

    /DEFINE Selected $SelectedFont$
    /DEFINE Fore $ForeFont$
    /DEFINE Contrast $ContrastFont$
    /DEFINE Test $TestFont$



    and labels are


    Code:
    L,210,50,102,22,#Fore#,15,"Tahoma:B","idrive_postcode",
    
    L,320,50,102,22,#Contrast#,15,"Tahoma","rrfp_postcode",
    
    L,670,105,110,32,#Selected#,24,"Tahoma:B","rrfp_0_price","CENTER"

  7. #7
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,845
    I want that my plugin change the colour of a label if a status of a var is true or false.
    Ok,
    Into my.skin , i have added:
    /DEFINE Test $TestFont$
    and my label is:
    L04,343,36,101,38,#Test#,12,"Arial:BI","=Send To RideRunner","WRAP-CENTER",,"DS=2,2,0,0,0"

    I suppose that i define my variable like that:
    setvar;testfont;255,255,255 ?

    But that don't run !

  8. #8
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,625
    That looks right, you need a reloadscreen afterwards though.

    From the iDrive config plugin.



    setvar;ContrastFont;255,255,0||reloadscreen


    Bear in mind you will need to save the values to the skin.ini as well if you want them to be the same when you restart the skin.

  9. #9
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,845
    Quote Originally Posted by Enforcer View Post
    Bear in mind you will need to save the values to the skin.ini as well if you want them to be the same when you restart the skin.
    No this is my plugin that define this var !

    Thank you Enforcer , It's exactly that i wanted

  10. #10
    Newbie
    Join Date
    Dec 2010
    Posts
    12
    @pierrotm777
    i have your same problem.. i have follow your message but it not work...
    can you tell the exact command for change color ?
    thank you

Page 1 of 2 12 LastLast

Similar Threads

  1. How to save values of variables from MDX
    By doctr_nick in forum FB Software
    Replies: 3
    Last Post: 03-02-2011, 08:17 PM
  2. Replies: 13
    Last Post: 04-02-2009, 05:49 PM
  3. feature request: global color values for labels
    By liquid_smoke in forum Road Runner
    Replies: 30
    Last Post: 10-06-2006, 06:31 AM
  4. Feature request: extra colour for labels
    By Enforcer in forum Road Runner
    Replies: 2
    Last Post: 09-11-2006, 10:18 AM
  5. How to Change RR Font Colour
    By babyface in forum Road Runner
    Replies: 4
    Last Post: 03-01-2006, 04:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •