Results 1 to 4 of 4

Thread: There's gotta be a better way to do this...

  1. #1
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448

    There's gotta be a better way to do this...

    So here's what I'm trying to do:
    I'm putting together a non-standard skin that will allow the viewing of pictures LIKE the PICVIEWER.skin, BUT is not the PICVIEWER.skin. This skin will have different function, but it needs the ability to preview pictures.

    Here is my current work around for my TOOLS_CONFIG_ICONVIEWER.skin:

    Code:
    TMR,001
    
    /, SD, Alignment;Alignment, Disp;MODE, Icon Width, Icon Heigth, Path
    SD,0,0,50,50,"$skinpath$","*.*",TRUE
    
    /, B, x, y, w, h, Command;COMMANDCODES, Tooltip
    B21,0,550,89,50,"EXIT",""
    B09,600,121,113,50,"PGUP||SETVARBYCODE;imgfilename;LISTTEXT||SETVARBYCODE;imgpathname;DLPATH||LOADIMG;155;211;138;148;clear.png;OUT||LOADIMG;155;211;138;148;$imgfilename$;OUT",
    B10,600,171,113,50,"UP||SETVARBYCODE;imgfilename;LISTTEXT||SETVARBYCODE;imgpathname;DLPATH||LOADIMG;155;211;138;148;clear.png;OUT||LOADIMG;155;211;138;148;$imgfilename$;OUT",",
    B13,600,372,114,50,"DOWN||SETVARBYCODE;imgfilename;LISTTEXT||SETVARBYCODE;imgpathname;DLPATH||LOADIMG;155;211;138;148;clear.png;OUT||LOADIMG;155;211;138;148;$imgfilename$;OUT",
    B14,600,422,114,50,"PGDOWN||SETVARBYCODE;imgfilename;LISTTEXT||SETVARBYCODE;imgpathname;DLPATH||LOADIMG;155;211;138;148;clear.png;OUT||LOADIMG;155;211;138;148;$imgfilename$;OUT",
    
    B14,356,500,88,50,"",
    
    /, L, x, y, w, h, color R;RGB, G, B, font size;FONT, font name, Code;LABELCODES, Tooltip;LABELALIGNMENT
    L19,181,92,437,29,#MMITITLER#,#MMITITLEG#,#MMITITLEB#,#MMITITLESIZE01#,#MMITITLEFONT01#,"=$imgpathname$$imgfilename$","SCROLL-CENTER"
    
    L20,356,510,88,30,#SUBR#,#SUBG#,#SUBB#,#MMINAVBARSIZE01#,#MMINAVBARFONT01#,"=Select","Center"
    
    /, 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
    S01,310,135,286,326,#FORER#,#FOREG#,#FOREB#,#DUMMYR#,#DUMMYG#,#DUMMYB#,#FOLDERR#,#FOLDERG#,#FOLDERB#,#FILER#,#FILEG#,#FILEB#,#SELECTEDFORER#,#SELECTEDFOREG#,#SELECTEDFOREB#,#SELECTEDFONTR#,#SELECTEDFONTG#,#SELECTEDFONTB#,true,#LISTSIZE01#,#LISTFONT01#
    
    /, J, x, y, w, h
    /,J01,155,211,138,148
    Code:
    "TIMER","SETVARBYCODE;imgfilename;LISTTEXT||SETVARBYCODE;imgpathname;DLPATH||LOADIMG;155;211;138;148;clear.png;OUT||LOADIMG;155;211;138;148;$imgfilename$;OUT",TOOLS_CONFIG_ICONVIEWER.skin
    This skin works, but has its drawbacks:
    1 - Does not maintain the picture's aspect ratio
    2 - .5 sec delay in loading the image when choosing an image in the DL list instead of the UP/DOWN/PGUP/PGDOWN buttons since it is contigent on the TMR,001 value.
    3 - Limited to only the skin directory. Does not allow for subfolders.

    NOTE: the (J) box was commented out purposely since my earlier attempts do display images in a directory didn't pan out outside of the picviewer skin.

    Does anyone know how I can emulate the function of the RR PICVIEWER skin instead of my current method which involves the loading/unloading of selected images?

    To view only specific file types the SD line should follow a similar format like so: (THANKS MGD!)
    Code:
    SD,0,0,50,50,"$skinpath$","*.jpg;*.gif;*.png;*.bmp",TRUE
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  2. #2
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Here's what the skin looks like, to help give you an idea of how it works...

    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  3. #3
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,703
    Blog Entries
    1
    As for the all or nothing, I am not sure about that, but you can define that in the SD for that particular directory list, and not effect others in the skin.

    SD,00,01,50,50,"C:","*.*",1

    To maintain the aspect ratio of an image, place :A after the image, SOmething like this

    $MyImage$:A

    Hopefully this helps with a couple of the problems.....
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  4. #4
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Quote Originally Posted by JohnWPB View Post
    As for the all or nothing, I am not sure about that, but you can define that in the SD for that particular directory list, and not effect others in the skin.

    SD,00,01,50,50,"C:","*.*",1
    If I wanted to filter only one type of file (i.e *.png), then it would work. However, if I wanted to only display image files, (.jpg, .png, .gif, .bmp, etc.), the "*.jpg,*.png,*.gif,*.bmp" doesn't work.

    Specifically, I have the directory set to the skinpath and want to browse the image files only and omit the .skin files.

    Quote Originally Posted by JohnWPB View Post
    To maintain the aspect ratio of an image, place :A after the image, SOmething like this

    $MyImage$:A
    Doesn't work w/ the LOADIMG command, which is what i use to load images in a predefined area.

    Works great w/ I,XX,..."PICTURE:A" tho. Unfortunately, doesn't work too well w/o the picviewer.skin.

    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

Similar Threads

  1. Vice Versa Pro: You gotta get it!
    By nsmoller in forum Software & Software Development
    Replies: 13
    Last Post: 08-22-2005, 06:56 AM
  2. hmm, i gotta sign up for this one day...
    By nottastocker in forum Off Topic
    Replies: 21
    Last Post: 02-12-2005, 04:19 PM
  3. Gotta love firewire.
    By VanMan69 in forum General Hardware Discussion
    Replies: 3
    Last Post: 08-03-2004, 04:22 PM
  4. gotta love wireless internet from t-mobile! finally done right.
    By churnopol in forum Wireless Communications
    Replies: 33
    Last Post: 03-05-2004, 06:26 AM
  5. New portable product. You've gotta see this!
    By Gman in forum General Hardware Discussion
    Replies: 3
    Last Post: 04-26-2000, 02:05 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
  •