[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1843.0. "VIEW DDIF documents without mouse intervention?" by GIDDAY::CULLEN (Andrew Cullen, TSC New Zealand) Mon Dec 04 1989 19:12

    
        Hello,
      I want to be able to display a DDIF file in a window on a workstation
    under program control. The VIEW command would be ideal, except that user
    intervention is needed to delete the window. I want something that behaves
    more like the "TYPE" command, in that, after the document is displayed, it
    disappears, or can be made to disappear under program control.
    Can anyone think of a method to display DDIF documents in this manner, so
    that the user does not have to use the mouse to delete the VIEW window
    after he or she has finished with a document?
    Thanks,
      Andrew
T.RTitleUserPersonal
Name
DateLines
1843.1VANISH::BAILEYI have a cunning plan...Tue Dec 05 1989 07:44116
SLIDE uses the CDA viewer widget to present a series of .DDIF files
as a "slide show" or demo, you can present the VIEWed
files as...

(1) Each VIEWed picture stays on the screen until you 'call up'
	the next picture with a button press

or

(2) Each picture stays on the screen for a given number of seconds
	and is then replaced by the next picture

or

(3) A combination of (1) & (2) above.. IE a picture will
	stay on the screen for N seconds.. but a button press
	will call the next picture up _Now_


Using SLIDE

Create a Symbol SLIDE:=$Disk:[Directory]SLIDE   (note the dollar sign)

and use it as...   SLIDE  SHOW qualifiers....

EG  SLIDE SHOW /FILE=SLIDE.TEXT /TIMEOUT=120 

Qualifiers are..


/FILE=filename		where <filename> contains a list of
			.DDIF files to display... This file
			should be organized as one filename per line
			and each file name can contain standard VMS
			wild cards

eg (SAMPLE CONTENTS)
SYS$LOGIN:*.DDIF
DISK$FRED:[JANET.NEW]*OCT*.DDIF
SYS$SYSDEVICE:[TEST...]*.DDIF

/TIMEOUT=Seconds	timeout period from picture-to-picture
			IE display each picture for 120 seconds
			(5 minutes) then go onto the next picture
			(NOTE: this time period DOES NOT include the
			time to read the picture)
			Default = 60 (seconds)

/CONTINUE= TIMEOUT | BUTTON
			either continue from picture-to-picture
			by timeout or on button press
			Default = continue on Timeout & Button press

Examples...

SLIDE.TEXT contains

......................................................
SYS$LOGIN:*.DDIF
DISK$FRED:[JANET.NEW]*OCT*.DDIF
SYS$SYSDEVICE:[TEST...]*.DDIF
......................................................

SLIDE SHOW /FILE=SLIDE.TEXT

display all the .DDIF pictures pointed from SLIDES.TEXT
.. each picture will stay on the screen for 60 seconds OR
pressing the 'Next Picture' button will call up the next
picture now


SLIDE SHOW /FILE=SLIDE.TEXT /TIMEOUT=120 /CONTINUE=TIMEOUT

display all the .DDIF pictures pointed from SLIDES.TEXT
.. each picture will stay on the screen for 120 seconds 


SLIDE SHOW /FILE=SLIDE.TEXT /TIMEOUT=120 /CONTINUE=BUTTON

display all the .DDIF pictures pointed from SLIDES.TEXT
.. each picture will stay on the screen until the "Next Picture'
is pressed




Disclaimer:  Seems to work for me.. should work for you

(This is stunningly crude.. IE it don't 'interlace' the pictures
(display one picture while it reads another picture) I tried
this and I just didn't get much improvement in time-to-display
each picture  (see the DDIF notes file.. note 134.last


VANITY""::SLIDE.EXE  
VANITY""::SLIDE.OBJ
VANITY""::SLIDE.README   (This file)


4-sep-1989

New version of the .DDIF 'slide show'   VANITY""::SLIDE.EXE

The major change is that this version does NOT charge the time taken
to display a picture against the timeout value given...

Ie If you ask to VIEW a picture for 60 seconds .. and it takes 45
seconds just to complete the display.... you still get to see
the completed picture for 60 seconds



{With the old version you would have only seen the completed picture
for 15 seconds)

1843.2You could also make use of the callable viewer routines directlyFIGMNT::MUNYANSteve Munyan, ZK2-2/O23, DTN 381-2264Tue Dec 05 1989 17:1811
Peter's slide program works well but if you want to interface this code 
directly into your application you might want to call the DDIF viewer
callable routines directly.

They are documented in the VWR chapter of the CDA Reference Manual.

The routines are called Dvr$mumble

Steve
DDIF Viewer Team
1843.3JAMMER::JACKMarty JackWed Dec 06 1989 16:443
    To expand on .2, this is true in 5.3 and following.  The viewer was
    undocumented in 5.1 and 5.2 (and its interface changed significantly
    between then and now).