Bug #106
closed
View restored twice on Open
Added by I. Denisov almost 10 years ago.
Updated about 8 years ago.
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.
- Target version changed from 1.7 to 1.7.1
- Status changed from New to Dormant
- Target version deleted (
1.7.1)
- 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
- Status changed from In Progress to Closed
- 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
Also available in: Atom
PDF