Project

General

Profile

Actions

Bug #106

closed

View restored twice on Open

Added by I. Denisov over 9 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
02/23/2016
Due date:
% Done:

0%

Estimated time:

Description

The Restore procedure of a view is called twice when a view is first opened. Experiments showed that for simple views (no scrollbars) this is not required. Until a final solution is available it is proposed that a flag (HostWindows.creatingDoc) is introduced that allows a simple view to skip the first Restore.

Actions #1

Updated by I. Denisov about 9 years ago

  • Target version changed from 1.7 to 1.7.1
Actions #2

Updated by I. Denisov over 8 years ago

  • Status changed from New to Dormant
  • Target version deleted (1.7.1)
Actions #3

Updated by R. Campbell almost 8 years ago

  • Status changed from Dormant to In Progress
  • Target version set to 1.7.1
  • Forum topic set to https://forum.blackboxframework.org/viewtopic.php?f=40&t=237
Actions #4

Updated by R. Campbell almost 8 years ago

  • Status changed from In Progress to Closed
Actions #5

Updated by J. Templ almost 8 years ago

  • Description updated (diff)

Testprogram

MODULE ToolsTestView;

IMPORT Views, Log;

TYPE
    View = POINTER TO RECORD (Views.View) END;

    PROCEDURE (v: View) Restore (f: Views.Frame; l, t, r, b: INTEGER);
    BEGIN
        Log.Int(l); Log.Int(r); Log.Int(t); Log.Int(b); Log.Ln;
    END Restore;

    PROCEDURE Start*;
    VAR v: View;
    BEGIN
        NEW(v);
        Views.OpenView(v);
    END Start;

END ToolsTestView.

^Q ToolsTestView.Start

Log window:

 0 5912792 0 5880100
 0 5912792 0 5880100

Actions

Also available in: Atom PDF