|
 |
06-27-2009, 02:21 AM
|
#1
|
|
FLAC
Join Date: Jul 2005
Location: upland california us
Posts: 1,012
|
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"
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
06-28-2009, 06:52 PM
|
#2
|
|
RoadRunner Mastermind
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,060
|
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."
|
|
|
06-28-2009, 07:32 PM
|
#3
|
|
FLAC
Join Date: Jul 2005
Location: upland california us
Posts: 1,012
|
thanks a lot, i was so close...
|
|
|
07-01-2009, 12:20 AM
|
#4
|
|
FLAC
Join Date: Jul 2005
Location: upland california us
Posts: 1,012
|
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.
|
|
|
07-01-2009, 09:05 AM
|
#5
|
|
Terminal flasher
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
|
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.
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
07-01-2009, 10:21 AM
|
#6
|
|
RoadRunner Mastermind
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,060
|
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."
|
|
|
07-01-2009, 10:46 AM
|
#7
|
|
FLAC
Join Date: Jul 2005
Location: upland california us
Posts: 1,012
|
very good info, thanks a lot again.
|
|
|
07-01-2009, 10:48 AM
|
#8
|
|
Terminal flasher
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
|
NICE! Thats exactly what i needed. Thanks G
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
07-01-2009, 11:21 AM
|
#9
|
|
The Curator
Join Date: Aug 2004
Location: Chicago area,IL
Posts: 3,565
|
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...
|
|
|
07-01-2009, 11:25 AM
|
#10
|
|
The Curator
Join Date: Aug 2004
Location: Chicago area,IL
Posts: 3,565
|
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.
|
|
|
07-01-2009, 12:45 PM
|
#11
|
|
RoadRunner Mastermind
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,060
|
Quote: Originally Posted by Blue ZX3 
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."
|
|
|
07-01-2009, 01:36 PM
|
#12
|
|
FLAC
Join Date: Jul 2005
Location: upland california us
Posts: 1,012
|
i agree...
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:46 AM.
| |