Search found 1062 matches

by DGDanforth
Thu Oct 19, 2017 9:52 am
Forum: Resolved (Bugs)
Topic: issue-#106 View restored twice on Open
Replies: 38
Views: 56832

Re: issue-#106 View restored twice on Open

Josef,
Operationally it really doesn't matter where the flag is placed since in my
code there is only one place for which it is tested.

Conceptually Views is the correct place,
but as you say, this is a hack anyway.

I would not object to leaving it as Robert posted.

-Doug
by DGDanforth
Thu Oct 19, 2017 12:58 am
Forum: Resolved (Bugs)
Topic: issue-#106 View restored twice on Open
Replies: 38
Views: 56832

Re: issue-#106 View restored twice on Open

A comment should of course be added to the global variable. Not required if it is adequately documented, which it must be. I would put it in Views for two reasons: 1 - Views has a Docu file, HostWindows does not (or only an empty one!). 2 - Client code has to IMPORT Views anyway, requiring it to al...
by DGDanforth
Wed Oct 18, 2017 8:40 am
Forum: Resolved (Bugs)
Topic: issue-#106 View restored twice on Open
Replies: 38
Views: 56832

Re: issue-#106 View restored twice on Open

Doug, does that mean that docCreated is set to FALSE initially (before the Restore is called) and set to TRUE at the end of CreateDoc (after the Restore is called)? The code in your Restore method would then be something like: IF HostWindows.docCreated THEN ... (* draw view only once *) (* ELSE ski...
by DGDanforth
Wed Oct 18, 2017 5:18 am
Forum: Resolved (Bugs)
Topic: issue-#106 View restored twice on Open
Replies: 38
Views: 56832

Re: issue-#106 View restored twice on Open

Josef Templ wrote: VAR createDoc: BOOLEAN;
A comment should of course be added to the global variable.
- Josef
Perhaps

Code: Select all

VAR docCreated: BOOLEAN;
would be better since the user wants to know the status.
-Doug
by DGDanforth
Wed Oct 11, 2017 8:10 pm
Forum: Resolved (Bugs)
Topic: issue-#106 View restored twice on Open
Replies: 38
Views: 56832

Re: issue-#106 View restored twice on Open

Robert,
I have implemented your fixups and for 4 modules they seem to work correctly (only one call to my draw routines).
I'll continue using this and will let you know if any problems arise.
Thank you.
-Doug
by DGDanforth
Wed Oct 11, 2017 5:22 am
Forum: Resolved (Bugs)
Topic: issue-#106 View restored twice on Open
Replies: 38
Views: 56832

Re: issue-#106 View restored twice on Open

Josef Templ wrote: The docu states clearly that there must not be any assumptions on the number of Restore operations.
- Josef
In my opinion that is a poor design.
The framework needs to be redesigned so that an "Open" calls "Restore" only once.
-Doug
by DGDanforth
Mon Oct 02, 2017 5:57 am
Forum: Rejected (Bugs)
Topic: Controllers.pick
Replies: 7
Views: 13052

Re: Controllers.pick

I am happy to report that deletion of the Code/Controllers.ocf file does indeed allow me to
run the .951 version.

Thank you very much Josef.

-Doug
by DGDanforth
Mon Oct 02, 2017 5:42 am
Forum: Rejected (Bugs)
Topic: Controllers.pick
Replies: 7
Views: 13052

Re: Controllers.pick

If you start without the /USE option it should work. So, there must be something in your /USE dir. Let's review the error message in detail: "Controllers.pick not found (imported from Containers)" This says that Controllers.pick is not found. Controllers.pick is new in blackbox-1.7.1-b1.9...
by DGDanforth
Mon Oct 02, 2017 5:05 am
Forum: Rejected (Bugs)
Topic: Controllers.pick
Replies: 7
Views: 13052

Re: Controllers.pick

Josef Templ wrote:Doug, check if you have a privately modified Containers module in your /USE directory.

- Josef
I do not have a Containers nor Controllers module in my /USE directory.
-Doug
by DGDanforth
Wed Sep 27, 2017 8:02 am
Forum: Rejected (Bugs)
Topic: Controllers.pick
Replies: 7
Views: 13052

Re: Controllers.pick

Josef Templ wrote:Doug, I cannot reproduce the error.
There may be an inconsistency on your side.
Are you starting blackbox.exe with the /USE option?

- Josef
yes