Announcement

Collapse
No announcement yet.

frm.CL. question

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • frm.CL. question

    using sdk i can use:
    Code:
    RRSDK.Execute ("CLSETIMG;" & ArtNum & ";" & App.Path & "\Cache\" & ArtNum & ".bmp")
    but i would like to know the syntax using the frm object
    Code:
    frm.CL.?? ArtNum + Chr(10) + App.Path & "\Cache\" & ArtNum & ".bmp"
    BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
    RRTube ==> [View/Download Youtube Videos]
    WifiMan ==> [Wifi Manager]
    RRec ==> [Audio Capture]

    If You Want To Be Given Everything, Give Everything Up ...
    Bird York -- In The Deep --

  • #2
    This should work:

    frm.CL.SetImg ArtNum, App.Path & "\Cache\" & ArtNum & ".bmp"
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

    Comment


    • #3
      thanks a lot, i was so close...
      BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
      RRTube ==> [View/Download Youtube Videos]
      WifiMan ==> [Wifi Manager]
      RRec ==> [Audio Capture]

      If You Want To Be Given Everything, Give Everything Up ...
      Bird York -- In The Deep --

      Comment


      • #4
        if possible can you share some more knowledge? is there a way to tell the properties of a CL, i.e. if is using, Text, Icon, Grid or iList mode. in one of my plugins by default i got 'jpg files, if i use iList mode i need to convert those jpg's to bmp(NP). but if the current screen is not using iList mode is useless to convert the jpgs. so i need to know when a screen is using iList mode or not. similar to frm,ShowDL tells if a CL is present in the current screen.
        BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
        RRTube ==> [View/Download Youtube Videos]
        WifiMan ==> [Wifi Manager]
        RRec ==> [Audio Capture]

        If You Want To Be Given Everything, Give Everything Up ...
        Bird York -- In The Deep --

        Comment


        • #5
          it'd be nice if we were able to read all properties from all lists internally. Right now i'm dependent on reading .skin files for the information.
          mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
          Follow Me on Twitter or Facebook
          Live mp3Car Facebook Chat

          Comment


          • #6
            This is the information you can use in Lists (PL, CL, DL, PB) from extension plugins. You can pretty much manage the whole thing without using skin commands, but you should be aware that changing some properties on the fly could cause adverse effects or may not have any effect -- they should be set with the usual skin definitions. However, it could be very useful to be able to read those properties and act accordingly. To check if the list is an iList or standard list, you can check if DisplayMode is 3, if so it's an iList, if not, it's a standard list. Using this stuff could particularly be faster, but remember that nothing used directly will be logged in RR's log so you may have to make your own logs if needed.

            Code:
            'Files/Directory Control
            Public FileTypes As String      'File Types to ACCEPT
            Public ShowDirs As Boolean      'Show Directories ?
            Public ShowIcons As Boolean     'Show Icons ?
            Public Fname As String          'Name of Font to Use
            Public FSize As String          'Font Size To use
            Public SelRGB As Long           'Selection ForeColor
            Public SelBackRGB As Long       'Selection BackColor
            Public DirRGB As Long           'Directory ForeColor
            Public FileRGB As Long          'Files ForeColor
            Public DirCount As Long         'Directories Count
            Public Charset As Integer       'Charset for fonts
            Public Transparency As Boolean  'set this to true if you want to use the SEL BAR to be transparent (no color)
            Public Source As Integer        'File=0, ML=1, Ipod=2
            Public UpText As String         'Text before entering LAST goin
            
            'Display Options
            Public Alignment As Integer     'Alignemt of Labels
            Public DisplayMode As Integer   'Display Mode (0=Normal, 1=ThumbList, 2=Album Icons, 3=iList)
            Public IconHeight As Long       'Icon Height
            Public IconWidth As Long        'Icon Width
            Public ShowExt As Integer       'Show Extensions ? (-1=Default, 0=No, 1=Yes)
            
            'iList info
            Public SelBMP As String                 'Selection BMP filename
            Public UnSelBMP As String               'Unselection BMP filename
            Public EndBMP As String                 'End Marker BMP filename
            Public BackRGB As Long                  'BackSurface Fill Color
            Public LineColor As Long                'Separator Line Color (For TextMode)
            Public UseLimit As Integer              'Limit Scroll ? (0=Free Roll, 1=Limited, 2=Sticky)
            Public MaxSpeed As Long                 'Maximum Speed
            Public DragForce As Double              'Drag Force
            
            'Functions/Subs
            ---------------
            
            'Returns Max value/number of items
            Public Property Get Max() As Long
            'Returns Current value/selected item
            Public Property Get Value() As Long
            'Sets the current value (selected item)
            Public Property Let Value(ByVal Value As Long)
            'Returns the number of lines viewable at once in the list
            Public Property Get Lines() As Long
            'Returns text of current selected item of the list
            Public Property Get Text() As String
            'Add item
            Public Sub AddItem(item As String, Optional itemType As String = "LST")
            'Remove Item
            Public Sub RemoveItem(item As Long)
            'Clear Items (Max defines the new max of the list -- reduces the list)
            Public Sub Clear(Optional Max As Long = -1)
            'Update list display and center current selection
            Public Sub CenterList()
            'Set current path -- if showing directories
            Public Property Let Path(Val As String)
            'Get current path -- if showing directories
            Public Property Get Path() As String
            'Get Item
            Public Function GetItem(ByVal N As Long, Optional StripNumber As Boolean = False) As String
            'Get description of item
            Public Function GetDesc(ByVal N As Long) As String
            'Check if item has description
            Public Function HasDesc(ByVal N As Long) As Boolean
            'Get the type of item
            Public Function GetType(ByVal N As Long) As String
            'Set Item
            Public Sub SetItem(ByVal N As Long, ByVal item As String, Optional ByVal Typ As String = "LST")
            'Returns the index of first item displayed
            Public Property Get TopLine() As Long
            'Custom Images support (Set)
            Public Sub SetImg(N As Long, ImgPath As String)
            'Custom Images support (Get)
            Public Function GetIMG(N As Long) As String
            'Go in folder -- if showing directories, returns true if successful
            Public Function GoIn() As Boolean
            'Go out of current folder -- if showing directories, returns true if successful
            Public Function GoOut() As Boolean
            'Return current list (Same as available in Flash)
            Public Function GetList() As String
            'Save Current List
            Public Sub SaveList(Fname As String)
            'Load Previously Saved List
            Public Sub LoadList(Fname As String, Optional Plain As Boolean = False)
            Ride Runner RR's Myspace

            "Being happy is not about having what you want, it's about wanting what you have."
            "The best things in life are always free - but that doesn't mean money can't buy you good things."

            Comment


            • #7
              very good info, thanks a lot again.
              BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
              RRTube ==> [View/Download Youtube Videos]
              WifiMan ==> [Wifi Manager]
              RRec ==> [Audio Capture]

              If You Want To Be Given Everything, Give Everything Up ...
              Bird York -- In The Deep --

              Comment


              • #8
                NICE! Thats exactly what i needed. Thanks G
                mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
                Follow Me on Twitter or Facebook
                Live mp3Car Facebook Chat

                Comment


                • #9
                  The more i work in my PI's, the more I starting to deal straight with the form instead of relying on RR cmds that do the same expect take the extra time to execute on something that i could directly do...
                  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."

                  Comment


                  • #10
                    I think that would be nice to actually include the above in a txt file when the Extention PI option is installed durring a RR install. I usually have to open the source when i cant remember how to interact with a contol on the form, when a quick txt file like that would be much better and quicker to use.
                    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."

                    Comment


                    • #11
                      Originally posted by Blue ZX3 View Post
                      I think that would be nice to actually include the above in a txt file when the Extention PI option is installed durring a RR install. I usually have to open the source when i cant remember how to interact with a contol on the form, when a quick txt file like that would be much better and quicker to use.
                      That is a good idea.
                      Ride Runner RR's Myspace

                      "Being happy is not about having what you want, it's about wanting what you have."
                      "The best things in life are always free - but that doesn't mean money can't buy you good things."

                      Comment


                      • #12
                        i agree...
                        BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
                        RRTube ==> [View/Download Youtube Videos]
                        WifiMan ==> [Wifi Manager]
                        RRec ==> [Audio Capture]

                        If You Want To Be Given Everything, Give Everything Up ...
                        Bird York -- In The Deep --

                        Comment

                        Working...
                        X