Results 1 to 7 of 7

Thread: Add tab character into a label

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

    Add tab character into a label

    I try to import into a RR label from a web page some results .
    I should like that my column are aligned , so i have tried to add some tabs characters into a C# plugin without success.
    So i add some space , but it's not very easy to always align !
    My c# line is :
    RRTranslator.SDK.SetUserVar("RR_TRANSLATOR_CAC40In dex", GetStringBetween(myWebFileInfo, "FR%3APX1\">", "</span></td></tr><tr>").Replace("</a></td><td align=\"right\">", " ").Replace("</td><td align=\"right\"><span style=\"color:red\">"," ").Replace("</span></td> <td align=RIGHT><span style=\"color:red\">"," "));
    is it possible to do that:
    RRTranslator.SDK.SetUserVar("RR_TRANSLATOR_CAC40In dex", GetStringBetween(myWebFileInfo, "FR%3APX1\">", "</span></td></tr><tr>").Replace("</a></td><td align=\"right\">", "\t\t\t").Replace("</td><td align=\"right\"><span style=\"color:red\">","\t\t\t").Replace("</span></td> <td align=RIGHT><span style=\"color:red\">","\t\t\t"));
    Thanks for your help !

  2. #2
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,255
    you should use multiple lables, collumn aligned, your are trying to put more than one element into label
    but since this is a plug in, you can do spaces...
    just do the math, to space it out
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  3. #3
    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,588
    Quote Originally Posted by mitchjs View Post
    you should use multiple lables, collumn aligned, your are trying to put more than one element into label
    but since this is a plug in, you can do spaces...
    just do the math, to space it out


    Doesn't work with most fonts if you try that.

    You need to have a fixed space font for it to work properly and even then, not always right.

  4. #4
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,849
    OK, thanks for this help

  5. #5
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    Quote Originally Posted by Enforcer View Post
    You need to have a fixed space font for it to work properly and even then, not always right.
    Yep, but I'll disagree on the latter part...you have to use some simple math and there should be no problems. I have done this before, but my usage was to create a txt file for a CL to get nice columns
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  6. #6
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,849
    Quote Originally Posted by mitchjs View Post
    just do the math, to space it out
    What do you say by math .
    Do you have an example ?

  7. #7
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,255
    say your field is 20 chars wide
    and the text you put in is 15 chars

    20-15 = 5

    5 spaces needed to get it to next field
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

Similar Threads

  1. Use label For at button
    By martin_xtx in forum Road Runner
    Replies: 2
    Last Post: 05-03-2010, 02:05 AM
  2. create label from existing label with math opertions...
    By sgtpepperaut in forum Road Runner
    Replies: 3
    Last Post: 11-18-2009, 12:33 AM
  3. Help with gpsspd RR label
    By ThunderStick in forum Road Runner
    Replies: 3
    Last Post: 08-31-2008, 01:58 AM
  4. Label Request
    By MGD in forum Road Runner
    Replies: 7
    Last Post: 12-10-2006, 09:07 AM
  5. Help with RR label
    By WarningSLO in forum RR Skins
    Replies: 4
    Last Post: 11-15-2006, 05:03 PM

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
  •