Results 1 to 3 of 3

Thread: C# (or any .Net language) example using a custom list (CL)

  1. #1
    Variable Bitrate
    Join Date
    Nov 2006
    Posts
    265

    C# (or any .Net language) example using a custom list (CL)

    I have a skin with the following definition:

    Code:
    /, IL, LIST, SelImg, UnselImg, EndImg, LimitMode, Drag, MaxSpeed
    IL,CL,transparent.bmp,sel.bmp,end.bmp,0,50,60
    
    /, S, x, y, w, h, fore R;RGB, G, B,  back R;RGB, G, B,  folder R;RGB, G, B,  file R;RGB, G, B, selected R;RGB, G, B, select R;RGB, G, B, trs, font pt;FONT, font name
    SC,158,208,474,236,255,255,255,3,80,40,0,0,0,255,128,0,TRUE,20,"Lucida Sans Unicode"
    I'm having trouble figuring out how, in C#, to get each line into the list with an icon at the beginning of each line.

    Does anyone have a C# example (or any .Net language or even VB6) of how to load the list and then how to determine which item was selected by the user?

    Regards,
    Jim

  2. #2
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    345
    try to contact the user pierrotm777

  3. #3
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,772
    Code:
                    case "rr_translator_fromtolanguage":
                        SDK.Execute("MENU;RRTranslator_Languages.skin||CLCLEAR;ALL");
                        if (File.Exists(DPath + "Languages.txt")) {
                            string[]  sArray = File.ReadAllLines(DPath + "Languages.txt");
                            for (int p = 0; p <= sArray.GetUpperBound(0); p++)
                            {
                                SDK.Execute("CLADD;" + sArray[p]);
                                if (File.Exists(DPath + "Languages\\" + sArray[p] + "\\" + sArray[p] + ".gif"))
                                {
                                    SDK.Execute("CLSETIMG;" + (p + 1) + ";" + DPath + "Languages\\" + sArray[p] + "\\" + sArray[p] + ".gif");
                                }
                                else
                                {
                                    SDK.Execute("CLSETIMG;" + (p + 1) + ";" + DPath + "Languages\\Error.gif");
                                }
                            }
    
                            //selectionne la ligne du language actuel
                            SDK.Execute("CLFIND;" + INI.ReadString("RRTranslator", "Language", ""));
    	                                        } else {
                            SDK.ErrScrn("!! Info !!", DPath  + "Languages.txt file is not found !!!", "");
                        }
                        result = ProcessCommandResults.CommandProcessedStayOnScreen;
                        break;

Similar Threads

  1. Custom List manager
    By pierrotm777 in forum Road Runner
    Replies: 14
    Last Post: 06-02-2013, 04:44 AM
  2. Need little help with custom list with C#
    By pierrotm777 in forum Road Runner
    Replies: 7
    Last Post: 06-28-2012, 10:04 AM
  3. Custom List question??
    By eribs4e in forum RR Skins
    Replies: 2
    Last Post: 08-11-2009, 09:12 AM
  4. Custom List creation
    By lambosprit in forum Road Runner
    Replies: 11
    Last Post: 05-12-2009, 07:46 PM
  5. Custom List (SC)
    By EL CAMINO in forum Road Runner
    Replies: 2
    Last Post: 10-29-2007, 12:41 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
  •