Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
58 user(s) are online (48 user(s) are browsing Forums)

Members: 1
Guests: 57

geennaam, more...

Headlines

Report message:*
 

Re: Updates of FastView, SysMon, FastCompress and NetDock

Subject: Re: Updates of FastView, SysMon, FastCompress and NetDock
by Chris on 2013/10/17 15:11:12

@zzd10h

Quote:
But I have a question, Phantom suggested me to use FastView like MultiView in the deficon.
I don't know how to insert an argument in a .info file for a CLI program.

What I would like to do is when I click on a JPG.info file, it calls
"FastView SinglePicture file_name.jpg"

It works only when I insert "SinglePicture" in the "Specify parameters" requester.


Hmm, why is it running as a CLI program?

What you need to do is run it as a Workbench program, then grab the filename(s) from the WBStartUp structure. If it's being launched as a CLI program from ContextMenus, then you already know whether FastView has been launched from there or via DefIcons or Extended Selection. So if it's WB launched (with filename(s) passed) you could go automatically into SinglePicture view.

Things to consider:
* If a drawer has been passed you'll need to open a "normal" session for that drawer.
* If you support Extended Selection properly, you'll need to support opening multiple SinglePicture windows (note: this would be a step up from MultiView, which doesn't support extended selection beyond the first file)


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project