MYEDSIZE

This is a modification of Kent Reisdorph's example
for resizing BC++ 5.x editor windows.

Chavdar Dimitrov has made it to put source and header
windows aligned side by side.



README.TXT for NEWEDSIZ.IDE Project

Hello,

OVERVIEW
========
This script was written as an example program for an article I
wrote. It was designed to teach the use of a DLL from within an
ObjectScript script. I also wanted to improve upon the way the
BC++ IDE creates editor windows. I didn't like the way the
EDITSIZE.SPP example worked so I set out to improve it.

There were two primary things I didn't like about EDITSIZE. One,
the window always came up at 0,0 so that it had to be moved
after it was created in most cases. Secondly, I didn't like the
1-10,000 value that ObjectScript uses to set the editor window
size. Actually, there's a third thing: it never worked very well
to begin with. A fourth thing that I don't like about EDITSIZE
is that the window becomes visible and then you can see it
resize. That particular effect I was not able to work around.

HOW IT WORKS
============
This script calls a function in a DLL which enumerates the child
editor windows and places the new window down and to the right
of the right-most existing editor window. Now your new editor
windows can be the size you desire and they won't all be created
on top of one another. Another advantage to this script is that
you now set the editor window width and height in pixels so you
know exactly how large the window will be.

INSTALLATION
============
The DLL is provided already built so that you don't have to
compile it if you don't want to. (NOTE: The DLL was built with
BC++ 5.01. If you encounter problems then rebuild the DLL with
the project file provided.) Place the DLL in \bc5\bin and
the script anywhere you keep your usual scripts. To have the
script load on startup either add it to the list of startup
scripts (Options | Environment | Scripting) or put it in your
PERSONAL.SPP file.

The PERSONAL.SPP script file is a special script file that BC5
looks for when it starts the IDE. This file should be left in
\bc5\script so that the IDE knows where to find it. If you
the NEWEDSIZ.SPP file in your PERSONAL.SPP file you should use
the script engine as follows:

import scriptEngine;
if (!scriptEngine.IsLoaded("newedsiz")) scriptEngine.Load("newedsiz");

That will load the NEWEDSIZ.SPP file if it has not already
been loaded.

I hope you find this script useful. Let me know if you have any
gripes or suggestions.

Kent Reisdorph
75300.1417@compuserve.com
kentr@mdex.net
http://www.mdex.net/~kentr

