Discussion:
The main file remains set when I create a new project.
Germano Rossi
2014-07-03 11:26:24 UTC
Permalink
May be a bug?

I have a project open with a main file set and I want to create a new
project.

"New Project" closes all files but the tree remains that of the old project
and the main file is set to the old project.

The same with "Close Project" and with "Quit project".

Windows 7, Build: 20140613 (v. 8.2) - 64-bit
--
==================
Germano Rossi, Dipartimento di Psicologia, Universita' degli Studi di
Milano Bicocca
Piazza dell'Ateneo Nuovo, 1- 20126 Milano - Italy
Erie Morales
2014-07-03 14:09:24 UTC
Permalink
Hello Germano,

What you do is to select the working file.  There are two icons for that, one "selects" and the other "cancels selection".  The icons are on top left of screen, right below the File and Folder icons.   To select working file press the green one, to cancel press the red one.


Cheers,

Erie

 
Dr Erie Morales
PhD Physics
University of Pennsylvania
Material Science and Engineering
215.898.9122 (lab)
215.898.3446 (office)


On Thursday, July 3, 2014 7:38 AM, Germano Rossi <***@gmail.com> wrote:



May be a bug?


I have a project open with a main file set and I want to create a new project.

"New Project" closes all files but the tree remains that of the old projectand the main file is set to the old project.

The same with "Close Project" and with "Quit project".


Windows 7, Build: 20140613  (v. 8.2) - 64-bit
--
==================
Germano Rossi, Dipartimento di Psicologia, Universita' degli Studi di Milano Bicocca
Piazza dell'Ateneo Nuovo, 1- 20126 Milano - Italy
WinEdt Team
2014-07-03 15:14:43 UTC
Permalink
Germano,
Post by Germano Rossi
May be a bug?
Not really as it is configurable.
Post by Germano Rossi
I have a project open with a main file set and I want to create a
new project.
"New Project" closes all files but the tree remains that of the old
project and the main file is set to the old project.
The same with "Close Project" and with "Quit project".
Windows 7, Build: 20140613 (v. 8.2) - 64-bit
In the Options Interface -> Advanced -> Event Handlers double-click
on Close Project (After). This will open this event handler macro
and you can now adjust what you expect to happen when you close the
project. By default it does nothing but you will see:

DeleteTree(1, $$0000);
// DeleteTree(UseFlag: 0..1, Flag: $$0000..$$1111);
// UseFlag: 0..1
// 0 delete the tree (as before)
// 1 use flags to select the tasks
// Binary Flags from left to right $$0000..$$1111:
// Clear Gather Control
// Delete the Tree
// Clear File List
// Remove persistent Main File

Adjust the flags in Delete Tree ($$1111 will clean everything).

I believe that there was a discussion on what should be done when
the project is closed (many, many years ago) and different ideas
were presented. That's why I decided to introduce this parameter
and 16 different scenarios can now be implemented by adjusting it.

Best regards,
alex

Loading...