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

Thread: frm.CL. question

  1. #1
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283

    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"

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    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."

  3. #3
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    thanks a lot, i was so close...

  4. #4
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    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.

  5. #5
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,168
    Blog Entries
    53
    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.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  6. #6
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    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."

  7. #7
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    very good info, thanks a lot again.

  8. #8
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,168
    Blog Entries
    53
    NICE! Thats exactly what i needed. Thanks G
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  9. #9
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    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."

  10. #10
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    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."

Page 1 of 2 12 LastLast

Similar Threads

  1. heavy-duty OBD standards support question
    By Michael2006 in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 0
    Last Post: 01-07-2007, 04:13 AM
  2. Replies: 2
    Last Post: 05-02-2006, 05:15 PM
  3. Forum Etiquette
    By Enforcer in forum Newbie
    Replies: 5
    Last Post: 01-09-2006, 05:58 PM
  4. Paint And Polish Question
    By gboy in forum Fabrication
    Replies: 8
    Last Post: 08-13-2005, 07:22 PM
  5. FM Card Question....
    By Superbike1k in forum Car Audio
    Replies: 1
    Last Post: 05-16-2005, 09:03 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
  •