EzSlide 8 Editor and EzSlide 8 Viewer Apps.

pdablue

Active Member
Licensed User
Longtime User
Hi,

Here is a slide show editor program and a slide show viewer program,
both for the Pocket PC device. These programs limit you to a total
of 8 slides. You can have a varying number of slides from 1 up to 8.

You can attach a (.wav) file to each slide. You can select a slide delay
from 1 to 30 seconds. You will want to set the slide delay to be longer
than the length of the audio (.wav) file that you have attached to it so
you can here it play completely. Each of the 8 slides can have a different
slide delay from 1 to 30 seconds.

The idea here is to use the Editor program to develop your slide show and
get it the way that you want it and save the data file. The Viewer program
will read the data file that was created by the Editor program to run the
slide show.

You can run the Viewer program through the Setup Builder program to
create an install file that can be installed on a Pocket PC device.

You can create a variety of slide shows that users can download and view
on their Pocket PC devices.

When you create your slide show using the Editor program you can select
files located anywhere on your Pocket Pc device: Compact Flash cards,
SD Memory cards or any directory on the Pocket PC.

Once you have setup the data for your slide show the data will be saved
in the data file called: Ez8EData.txt

You must use a text editor program to edit the file: Ez8EData.txt
to create the Ez8VData.txt file for the Viewer program before you run
it through the SetupBuilder Program to create your (.CAB) installation file.

When SetupBuilder creates the (.CAB) installation file for your program it
will put all of the files into one directory when the (.CAB) file installs your
program on a Pocket PC device.

The Ez8EData.txt file must be edited to point to the "local" directory when
looking for the Picture and (.wav) audio files.

For example:

If the Editor program found a picture file in the following directory:

\My Documents\Pic1.jpg

The Ez8EData.txt file must be edited to look like this:

Pic1.jpg

If the Editor program found a (.wav) file in the following directory:

\My Documents\Audio.wav

The Ez8EData.txt file must be edited to look like this:

Audio.wav

Editing the Ez8EData.txt file like this will prepare it to look for the
Picture and (.wav) files in the "Local" directory.

Once the Ez8EData.txt file has been modified it should be saved as
Ez8VData.txt which can then be loaded into the SetupBuilder program
to create the Viewer Slide Show install (.CAB) file.

Here is an example of an Ez8EData.txt file created with the Editor Program
with data for all 8 of the slides.

The 8 Picture files are listed first (for slides 1 to 8).
The 8 (.wav) audio files are listed next (for slides 1 to 8).
The 8 slide delay times are listed next (for slides 1 to 8).
The number of active slides in the slide show is listed next.
The Picture for the Main Screen in the Editor is listed next.
The Picture for the Main Screen in the Viewer is listed last.

The following is the text as it appears in the Ez8Data.txt file
when created using the Editor program:

\My Documents\P4A.JPG
\My Documents\P4B.JPG
\My Documents\P4C.JPG
\My Documents\P4D.JPG
\My Documents\P4E.JPG
\My Documents\P4F.JPG
\My Documents\P4G.JPG
\My Documents\P4H.JPG
\My Documents\A1.WAV
\My Documents\A2.WAV
\My Documents\A3.WAV
\My Documents\A4.WAV
\My Documents\A5.WAV
\My Documents\A6.WAV
\My Documents\A7.WAV
\My Documents\A8.WAV
2000
2000
2000
2000
2000
2000
2000
2000
4
\My Documents\EZ8EDIT.JPG
\My Documents\EZ8VIEW.JPG

Before we run the file through the SetupBuilder program to create the
(.CAB) install file we must edit the Ez8EData.txt file to look like this and
save the modified data file as the Ez8VData.txt file that is used by the
Viewer Program.

P4A.JPG
P4B.JPG
P4C.JPG
P4D.JPG
P4E.JPG
P4F.JPG
P4G.JPG
P4H.JPG
A1.WAV
A2.WAV
A3.WAV
A4.WAV
A5.WAV
A6.WAV
A7.WAV
A8.WAV
2000
2000
2000
2000
2000
2000
2000
2000
4
EZ8EDIT.JPG
EZ8VIEW.JPG

This modification to the Ez8EData.txt file will point the Viewer program to
the "local" directory where the (.CAB) installation file installed the Viewer
Program and all of the files needed to run the Slide Show that you have
created.

To create a (.CAB) install file. Use Basic4ppc to compile the program

EZ8VIEW.SBP for the device.

The files that you need to add to the SetupBuilder program inorder to
create a (.CAB) installation file are:

EZ8VIEW.EXE
EZ8VDATA.TXT
EZ8VIEW.JPG
G40W35.JPG
R40W35.JPG
B60W35.JPG
G60W35.JPG
R60W35.JPG
Y60W35.JPG
SB1.JPG
SB2.JPG
SB3.JPG
SB4.JPG
SB5.JPG
SB6.JPG
SB7.JPG
SB8.JPG
SR1.JPG
SR2.JPG
SR3.JPG
SR4.JPG
SR5.JPG
SR6.JPG
SR7.JPG
SR8.JPG
SW1.JPG
SW2.JPG
SW3.JPG
SW4.JPG
SW5.JPG
SW6.JPG
SW7.JPG
SW8.JPG

The above files are needed by the program to run and includes the program
.exe file, the data .txt file, the main screen .jpg picture file, and all of the
.jpg graphic button image files.

The next group of files are the Picture image .jpg files and the (.wav) audio
files that can have any name that you want to give them. The ones
included in this example are listed below.

P4A.JPG
P4B.JPG
P4C.JPG
P4D.JPG
P4E.JPG
P4F.JPG
P4G.JPG
P4H.JPG
A1.WAV
A2.WAV
A3.WAV
A4.WAV
A5.WAV
A6.WAV
A7.WAV
A8.WAV

Once you have loaded all of these file into the SetupBuilder program you
should enter text for the Company Name and text for the Program Name
and then Press the Build button to create the (.CAB) installation file
for your slide show program.

The file "Ez8e1.JPG" is a screenshot of the Editor Program's main screen.
The file "Ez8e2.JPG" is a screenshot of the Editor Program's Slide Edit screen.
The file "Ez8e3.JPG" is a screenshot of the Editor Program's Text Edit screen.
The file "Ez8v1.JPG" is a screenshot of the Viewer Program's main screen.
The file "ez8edit.sbp" is the Basic4ppc source code for the Editor Program.
The file "ez8view.sbp" is the Basic4ppc source code for the Viewer program.
The file "Ez8EData.txt" is a sample data file used by the Editor program.
The file "Ez8VData.txt" is a sample data file used by the Viewer program.

The file "Ez8Editzip.zip" is the zipped up ARMV4 (.CAB) install file for the Editor program.

The file "Ez8Viewzip.zip" is the zipped up ARMV4 (.CAB) install file for the
Viewer program.

As a last step before you get ready to run your slide show through
the SetupBuilder program, you can use the Editor program's Text Edit
screen to edit the Ez8EData.txt file by going through each data line
and making the necessary modifications and then saving the data
back to the Ez8VData.txt file.

You can edit each data line entry yourself using the Soft Input Panel
keyboard or you can just press the "Auto Scan" button to automatically
edit the data file to prepare it for a "local" directory.

From the "Data: Text Editor" screen, press the "Read" button to the
left of the Label "Editor: EZ8EDATA.TXT" to read the contents of the
editor's data file which will be displayed in the large textbox window.

Then press the "Auto Scan" button which will remove all "directory"
specific information from the file data.

Finally, press the "Save" button to the right of the Label
"Viewer: EZ8VDATA.TXT" to save the modified data to the .txt file
used by the Viewer program.

Take the newly modified "EZ8VDATA.TXT" file and load it into the
SetupBuilder program to build your slide show's (.CAB) installation file.

When you install the zipped up programs from this page all of the
graphic button images will be placed into the program directory
created by the (.CAB) installation file when you install it on a
Pocket PC device. You can make a copy of all of those button
images from either the Editor programs directory or the Viewer
programs directory when you are creating your own slide show.

Your graphic images should be 240 pixels wide by 220 pixels high.
You can take any picture and use a graphics program on a PC to
resize the image to the 240 x 220 size.

You can create musical (.wav) files or use a Text-to-Speech
synthesizer program on a PC to create a "talking" (.wav) file or
record your own voice to a (.wav) file.

You can customize the 240 x 220 graphic image that is displayed
when the Editor or Viewer programs start up. Just enter the
picture file name into the Main Screen textboxes for the
Editor and Viewer on the "Edit Slide Screen".

Your picture images should be (.JPG) JPEG files just because
they do not take up a lot of storage space. You can easily
convert a (.BMP) file to a (.JPG) file using MS Paint.
 

Attachments

  • Ez8e1.JPG
    Ez8e1.JPG
    17.8 KB · Views: 214
  • Ez8e2.JPG
    Ez8e2.JPG
    28.7 KB · Views: 204
  • Ez8e3.JPG
    Ez8e3.JPG
    29.1 KB · Views: 198
  • Ez8v1.JPG
    Ez8v1.JPG
    17.7 KB · Views: 197
  • Ez8EData.txt
    467 bytes · Views: 197
  • Ez8VData.txt
    215 bytes · Views: 199
Last edited:

klaus

Expert
Licensed User
Longtime User
Hi pdablue,

I had a look at your programs, and as taximania already reported, you can decrease the size of your code by a big amount.

Attached a 'shrinked' version of the ez8view program, to show what can be done, 370 codelines instead of 2070.
It would also be interesting to enter the image files for the buttons directly in the IDE, because in that case all the images are included in the exe file, so no need to add those for the cab file.

Unfortunately I cannot test nor compile it because all the *.jpg files for the different controls are missing.

Best regards.
 

Attachments

  • ez8viewNew.sbp
    11 KB · Views: 203
Last edited:

pdablue

Active Member
Licensed User
Longtime User
Button Images in the IDE Editor.

Hi,

I use "Button Up" and "Button Down" events for an ImageButton.

I noticed that when placing an ImageButton onto a form and setting
the graphic image for that ImageButton in the control's property window
and the program is compiled the ImageButton's graphic image is included
in the (.exe) file when the program is compiled.

I have not been able to get the ImageButton's graphic images for the
"Button Up" and "Button Down" events to be saved in the (.exe) file
when it is compiled. I always have to include them when I create
an installation file using SetupBuilder.

Do you know of anyway to include all graphic images for an ImageButton
into a compiled (.exe) file?
 

klaus

Expert
Licensed User
Longtime User
I don't use the program to embed images in file anymore, because there is still a file needed.
I use, as suggested by agraham, an ImageList, filled in the IDE, to store the different images for controls for which I need to modify them.

Could you post the image files you use in the program?

Best regards.
 
Top