PDA

View Full Version : Forcing Thumbnail View


jgavin
12-16-2004, 12:04 AM
I created a file pop-up within the cd so customers can view my client’s additional contract pictures. He wants them to always come up in thumbnail view automatically. Is there a script to force this?

sferguson
12-16-2004, 06:41 AM
Do you mean you automatically pop open the folder where the images are stored on the disc, and he wants that folder view to default to thumbnail? For example, if your just browsing a directory and you go to the view menu and choose Thumbnail. Or did you have something else in mind with regards to a Pop-up window through an AMS project window?

sferguson
12-16-2004, 08:55 AM
I recall having delivered a CD to a client a few years ago with a similar request (assuming that the window is a folder/directory window as opposed to an AMS project window). It was for Win2000 OS. I believe the solution was pretty simple.

Here's the WinXP version:

Right-click the folder, choose properties, choose the customize tab, select "pictures" from the "Use this folder type as template" drop-down. That's it. Then just burn the disc.

HOWEVER, I just tested it with a disc on WinServer 2003, and it did not retain the folder view - BUT, the machine I loaded it on also has user-specified folder views globally set to "Detail View", so that may be overiding the folder properties burned to the disc.

Then again, it may be that I just have a number of synapses mis-firing in the ol' noggin, and as a result have conveniently "tricked myself" into remembering the outcome as "working beautifully"... :D

So, maybe give 'er a whirl, and if nothing else it might jump-start a brainstorm or two.

jgavin
12-16-2004, 09:24 AM
Yes, through AMS, the user clicks a folder icon that says additional Photos (The pictures are stored in an "extras" folder in cd root). I would like to make it global for thumbnail view but had similar experience with other pc's.

:p My brother-in-law is Scott Ferguson too!

Worm
12-16-2004, 09:50 AM
Have you considered using the Thumbnail plugin? Seems it would give you the result you're looking for, plus you'd have some control on what the user is/can do.

sferguson
12-16-2004, 10:04 AM
I would like to make it global for thumbnail view but had similar experience with other pc's.

Hmmm, alrighty then. Could this possibly be handled through shell?

Found the following at:
shell reference (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/enums/folderviewmode.asp)


FOLDERVIEWMODE Enumerated Type

--------------------------------------------------------------------
Set of constants used to specify the folder view type.

Syntax

typedef enum {
FVM_FIRST = 1,
FVM_ICON = 1,
FVM_SMALLICON = 2,
FVM_LIST = 3,
FVM_DETAILS = 4,
FVM_THUMBNAIL = 5,
FVM_TILE = 6,
FVM_THUMBSTRIP = 7,
FVM_LAST = 7
} FOLDERVIEWMODE;

Constants

FVM_FIRST
Specifies a convenience constant equal to the first constant in FOLDERVIEWMODE.

FVM_ICON
The view should display medium-size icons.

FVM_SMALLICON
The view should display small icons.

FVM_LIST
Object names are displayed in a list view.

FVM_DETAILS
Object names and other selected information, such as the size or date last updated, are shown.

FVM_THUMBNAIL
The view should display thumbnail icons.

FVM_TILE
The view should display large icons.

FVM_THUMBSTRIP
The view should display icons in a filmstrip format.

FVM_LAST
Specifies a convenience constant equal to the last constant in FOLDERVIEWMODE.

Anybody familiar with "shell stuff" want to chime-in here...? :D


Brother-in-law with same name... (with my best Wayne & Garth impersonation - "No Way!" "Waaaaay!!" "...Cule!") :yes

Worm
12-16-2004, 10:39 AM
You'll need the FREE LuaCOM (http://www.icynorth.com/luacom/index.html) plugin for this, but it seems to work.
Thanks for the idea Scott.


--Create an Instance of IE
oIE=luacom.CreateObject("InternetExplorer.Application.1")
--set the folder
sFolder = "C:\\Pictures"
--navigate to the folder
oIE:Navigate2(sFolder)
--set the view
oIE.Document.CurrentViewMode = 5 -- 6 for filmstrip
--show IE
oIE.Visible = true

jgavin
12-16-2004, 10:39 AM
Thanks, great information! Off to a meeting for now but will try these
suggestions.

John

Worm
12-16-2004, 11:10 AM
This is a little better:


--Create an Instance of IE
oIE=luacom.CreateObject("InternetExplorer.Application.1")
--set the folder
sFolder = "C:\\Pictures"
--navaigate to the folder
oIE:Navigate2(sFolder)

--set the menu, adddres, and toolbar to off
oIE.Menubar = false;
oIE.AddressBar = false;
oIE.ToolBar = false;

--[[ Some other settings to play with ]]--
-- oIE.FullScreen = true; -- KIOSK MODE
-- oIE.Resizable = false; --Can't resize the window
-- oIE.StatusBar = true; --turn the statusbar on
-- oIE.StatusText = "This will be in the statusbar" --set the statusbar text

--set the view
oIE.Document.CurrentViewMode = 5 -- 6 for filmstrip
--show IE
oIE.Visible = true