home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
FOXPRO
/
3DGEN
/
READ.ME
< prev
next >
Wrap
Text File
|
1993-09-01
|
6KB
|
144 lines
3-D Controls for FoxPro for Windows
-----------------------------------
Updated 9/1/93 to accomodate 2.5a
Author: Rick Whitt - 70672,605
The author hereby places the portions of this code written
by the author into the public domain. No guarantee of fitness
for use is made. Comments and suggestions via E-Mail are
welcome and appreciated.
Description:
This archive contains a patch file to create a modified
GENSCRN.PRG, that allows you to effortlessly create 3-D effects
via the FoxPro for Windows screen builder. It's as easy as
placing the string "#3D" in the comment field of any object for
which you want 3-D effects. Now you can easily create that slick
chiselled metallic look with hardly any effort!
Contents:
3DGEN25A.RTP - Patch for standard genscrn.prg to create 3dgenscr.prg
This only patches current 2.5a release genscrn.prg!
3DGENSCR.RTP - Patch for older 2.5 genscrn.prg to create 3dgenscr.prg
This only patches original 2.5 genscrn.prg!
PATCH.EXE - Version 2.00 RTPatch to run the above patch file
3DPANEL.PRG - Routine for drawing 3D panels (from Foxpro Advisor)
3D.APP - Sample APP showing most available controls
3D PJT - Files that make up 3D.APP
3D PJX
3D.SCT .
3D.SCX .
FOXPRO.ICO .
CANCEL.BMP .
OK.BMP
WIN.BMP
Setup:
To get started using the system, you must run the supplied patch
against a standard 2.5a GENSCRN.PRG to create the modified
3DGENSCR.PRG. You must have the GENSCRN.PRG dated 4-22-93, 4:54pm,
size 277,228 bytes. If you have a modified GENSCRN, you will need
to reload the original, patch it, then extract the modified code and
put it in your modified GENSCRN as directed below. Put the original
GENSCRN.PRG in a temporary directory, along with 3DGENSCR.RTP
and PATCH.EXE. Run the following command:
PATCH 3DGEN25A
If you still have the older 2.5 GENSCRN.PRG dated 1-18-93, 2:50am,
size 277,113 bytes, you will need to use the older patch instead:
PATCH 3DGENSCR
If all goes well, you will end up with 3DGENSCR.PRG. The
original GENSCRN.PRG will be deleted, which is why it is important
to do the patch on a copy in a temporary directory! Next, put
3DGENSCR.PRG in the Foxpro for Windows directory.
Put the following line in your CONFIG.FPW file:
_GENSCRN = "3DGENSCR"
If you use any 3D effects, calls to the 3DPANEL.PRG will be
placed in your code. This file must be available in the search
path at runtime or included in your APP.
If you already have a modified GENSCRN program and wish to
incorporate the 3D changes into it, search 3DGENSCR.PRG for the
string "*! rlw". There are some lines of code added to procedure
BUILDFMT and two new procedures at the end of the file. These
are all that's needed to change your custom GENSCRN to do the 3D
generation.
Usage:
Simplicity itself! To add 3D shading to any screen object, select
that object and place the string "#3D" anywhere in its COMMENT
field. Case does not matter. That's all that's required for
default behavior. You will not see the change in the screen
builder, but the next time you generate or build, the resulting
program will have the effects. All visible screen objects are
supported with the exception of regular (round) radio buttons.
A subsequent release will include that capability plus anything
else I think of between now and then.
There are two additional parameters that can be added to the
comment field to change the default behavior. The defaults are
2 pixel wide shading for all objects except lines and boxes, which
are 1 line. To change this, insert the string "PEN:x" in the
comments, with x being a number from 0-6 for pen size.
Indented-type shading is the default. If you wish raised-looking
areas, insert the string "STYLE:RAISED" in the comments field.
IMPORTANT! You must select a background color for your window
for these effects to look right. Light grey looks best, IMHO.
Also, be sure to turn GET boarders OFF in your generate dialog
if you will be adding effects to any GET fields.
Limitations:
This is my first attempt at this, so these routines may still
have some rough edges and have not had anything like extensive
testing! I'm throwing it out in hopes that I might get comments
and more ideas for improvement. I will be updating the file
on FoxForum as improvements are made. I'm not 100% certain how
Fox calculates the sizes of some of it's screen objects, so more
messing around with this is inevitable.
The most glaring hole right now is regular round Radio buttons.
They are not currently supported because I haven't yet figured
out how I'm going to do it! Since there's no native arc drawing
function in Fox, I'm not sure how I'll attack it yet. If anyone
has a suggestion, I would love to hear it! If anyone figures this
part out, I would appreciate an e-mail of the technique or an
example file.
Change Log:
9/1/93 - new patch file 3DGEN25A patches 2.5a version of genscrn.prg
- included user suggested changes to 3dpanel.prg for better
performance.
- Updated PATCH.EXE to vesion 2.00.
- Still no 3D effects for radio buttons!
5/7/93 - Original version.