Indigo Rose Software
  #1  
Old 09-15-2005
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Lightbulb Sample: File Browser with Tree Object

This sample project shows you how to work with the Tree object by dynamically filling it at runtime.

It is a simple file browser that allows you to set the root folder that is being displayed:

Skills used:

Tree object, Dialog.FolderBrowse action, File actions, Input object, Paragraph object

Note: This project only works in AutoPlay Media Studio 6.0
Attached Images
File Type: jpg tree_browser_ss.jpg (50.0 KB, 1107 views)
Attached Files
File Type: apz File_Browser.apz (11.0 KB, 1628 views)
Reply With Quote
  #2  
Old 12-25-2005
azmanar's Avatar
azmanar azmanar is offline
Indigo Rose Customer
 
Join Date: Oct 2004
Location: East, South & West Asia
Posts: 948
Activate Subitems

Quote:
Originally Posted by Brett
This sample project shows you how to work with the Tree object by dynamically filling it at runtime.

It is a simple file browser that allows you to set the root folder that is being displayed:

Skills used:

Tree object, Dialog.FolderBrowse action, File actions, Input object, Paragraph object

Note: This project only works in AutoPlay Media Studio 6.0
Hi,

Nice piece.

How do I activate the subitems so if I double click, it will launch?

ON DOUBLE-CLICK EVENT
File.Open(strFilename) ?

Thanks

Last edited by azmanar; 12-25-2005 at 03:38 AM. Reason: missed
Reply With Quote
  #3  
Old 02-10-2006
srussell's Avatar
srussell srussell is offline
Indigo Rose Customer
 
Join Date: Sep 2005
Location: Arizona
Posts: 77
Folders Only

Brett,

This sample works great... The only question I have is that I only need to display the folder names, not the folders with the filenames in a sub-node of each folder...

Any suggestions?
Reply With Quote
  #4  
Old 06-18-2006
clubbcrusher's Avatar
clubbcrusher clubbcrusher is offline
Forum Member
 
Join Date: Jun 2006
Posts: 19
file browser

nice script! ,b ut, is it possible when you browse and click, n the right info, and at top of the right collum, insert a image, that you can see what youre talking about??? and a action click button??
Reply With Quote
  #5  
Old 04-16-2008
lepinski lepinski is offline
Forum Member
 
Join Date: Jul 2003
Posts: 31
From subitems open files PDF

Hi, I'm new in Ams, this example is good for my project, but I need to know how to open files from subitems, the project open a folder, then show names in sub items but I need script for open file with double click option.
I have AMS 7.0

Thanks
Reply With Quote
  #6  
Old 09-23-2008
Centauri Soldier's Avatar
Centauri Soldier Centauri Soldier is online now
Forum Member
 
Join Date: Jun 2007
Location: Delphi II
Posts: 626
Thanks

I've avoided the tree object for over a year and now I need one. Mine was coming along but then I saw yours....thanks so much; yours is great and I can modify it to fit my project, you saved me hours of work.
Reply With Quote
  #7  
Old 01-19-2009
Alweissi Alweissi is offline
Forum Member
 
Join Date: Sep 2008
Posts: 12
Help plz

Hi. This project suits for my project. BUT.. Can somebody help me, how I change this to search always in same file (same path).
On start or behind button? (button is better)

when Klik, "C:\filepath" goes to the tree and tree shows what are inside filepath.?
Reply With Quote
  #8  
Old 01-19-2009
Imagine Programming's Avatar
Imagine Programming Imagine Programming is offline
Forum Member
 
Join Date: Apr 2007
Location: The Netherlands
Posts: 1,325
Try to check the source, On Click on that button for instance
Reply With Quote
  #9  
Old 01-19-2009
Alweissi Alweissi is offline
Forum Member
 
Join Date: Sep 2008
Posts: 12
Quote:
Originally Posted by C B programming and webdesign View Post
Try to check the source, On Click on that button for instance
yes I did check, and I still do. but dont get how.. =/
Reply With Quote
  #10  
Old 01-19-2009
Centauri Soldier's Avatar
Centauri Soldier Centauri Soldier is online now
Forum Member
 
Join Date: Jun 2007
Location: Delphi II
Posts: 626
This code is in the On Show event of the page.

Code:
-- See "On Preload" for functions
Tree.PopulateFromFolder("tree", _SourceFolder);
jJust modify '_SourceFolder' to be whatever path you want.
Reply With Quote
  #11  
Old 01-19-2009
JDog37's Avatar
JDog37 JDog37 is offline
Forum Member
 
Join Date: Feb 2008
Location: Western Pennsylvania
Posts: 386
Grin Error

Im getting this error: On show line 5: attempt to call field populate from folder ( a nil value)... ???? What dose that mean?
Reply With Quote
  #12  
Old 01-19-2009
Centauri Soldier's Avatar
Centauri Soldier Centauri Soldier is online now
Forum Member
 
Join Date: Jun 2007
Location: Delphi II
Posts: 626
It means that your PopulateFromFolder function has not been defined as a sub item of Tree...perhaps it's missing or being called before it is declared.

The AMS order of operations during load (and correct me if I'm wrong here) is Plugins, Globals, On Startup then the first page or dialog that shows.
Reply With Quote
  #13  
Old 01-20-2009
Alweissi Alweissi is offline
Forum Member
 
Join Date: Sep 2008
Posts: 12
Quote:
Originally Posted by Centauri Soldier View Post
This code is in the On Show event of the page.

Code:
-- See "On Preload" for functions
Tree.PopulateFromFolder("tree", _SourceFolder);
jJust modify '_SourceFolder' to be whatever path you want.

Thanks. U r the best =)
Hmm. Untill now I notice to replace \ --> /
C:\test\test --> c:/test/test
Now its works fine. Just modify and 1 problem less to solve

thx Centauri Soldier
Reply With Quote
  #14  
Old 01-20-2009
Alweissi Alweissi is offline
Forum Member
 
Join Date: Sep 2008
Posts: 12
Quote:
Originally Posted by Alweissi View Post
Thanks. U r the best =)
Hmm. Untill now I notice to replace \ --> /
C:\test\test --> c:/test/test
Now its works fine. Just modify and 1 problem less to solve

thx Centauri Soldier
1 other question. This Tree object. Can it be transparent anyhow.?
Reply With Quote
  #15  
Old 01-28-2009
ReconADA's Avatar
ReconADA ReconADA is offline
Forum Member
 
Join Date: Mar 2007
Location: Huntsville, AL
Posts: 13
Quote:
Originally Posted by azmanar View Post
Hi,

Nice piece.

How do I activate the subitems so if I double click, it will launch?

ON DOUBLE-CLICK EVENT
File.Open(strFilename) ?

Thanks
I'm sure this is a stupid question but how would you open a file from the double-click event?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO: Return a Web Browser Object to the Original URL after a Page Jump Support AutoPlay Media Studio 4.0 Examples 0 02-03-2003 10:18 AM
INFO: Difference between the Media Player Object and the AVI Object Support AutoPlay Media Studio 4.0 Examples 0 10-29-2002 03:15 PM
INFO: Minimum requirements for the Flash Object, Media Player Object, and Web Browser Object Support AutoPlay Media Studio 4.0 Examples 0 10-04-2002 11:09 AM
Install only into one of several directories with specific existing file? RichardShaw Setup Factory 5.0 0 08-17-2000 03:29 PM


All times are GMT -6. The time now is 04:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software