The first issue is that when you use OpenAuxDialog or OpenToolDialog to open a Tab View an unwanted error message is posted. This is a 1 line fix I have been using since March 2009 - see the Violet code below.
The second issue is that when Form Views are loaded for use they are usually converted to Mask mode. However this does not apply to Forms on the tabs of a tab View.
The fix for this (which I have been using since January 2013) is in Magenta below.
Can anyone rememebr if this was discussed here before?
Code: Select all
PROCEDURE ThisMask (param: ARRAY OF CHAR): Views.View;
VAR v, tv, w: Views.View; c: Containers.Controller; rd: FormModels.Reader; k: INTEGER; label: Dialog.String;
BEGIN
v := ThisDialog(param);
IF v # NIL THEN
WITH v: Containers.View DO
c := v.ThisController();
IF c # NIL THEN
c.SetOpts(c.opts - {Containers.noFocus} + {Containers.noCaret, Containers.noSelection});
WITH c: FormControllers.Controller DO
rd := c.form.NewReader (rd);
LOOP
rd.ReadView (tv);
IF tv = NIL THEN EXIT END;
WITH tv: StdTabViews.View DO
FOR k := 0 TO tv.NofTabs() - 1 DO
tv.GetItem(k, label, w);
WITH w: Containers.View DO
w.ThisController ().SetOpts(c.opts - {Containers.noFocus} + {Containers.noSelection,
Containers.noCaret})
ELSE
END
END
ELSE
END
END
ELSE
END
ELSE Dialog.ShowMsg("#System:NotEditable")
END
| v: StdTabViews.View DO
ELSE Dialog.ShowMsg("#System:ContainerExpected")
END
END;
RETURN v
END ThisMask
Code: Select all
StdCoder.Decode ..,, ..zT....3QwdONl9RhOO9vRbf9b8R7fJHPNGomCrlAyIhgs,CbKBhZ
xi2,CoruKu4qouqm8rtuGfa4.hOO9vRb1Y66wb8RTfQ9vQRtIdvPZHWKqtCa.E.U5UAy.2U.Qk
lbeZ3DPuP7PNNvQRtId9NPuP7X2hgnRAXDJ.QCPuP7PNG2sET1.PuP.MHT9N9nt.G2sIdvPZnt
gcghghZcZRC8T0E.kiK.T.fO,2.,.bM.cU.ktAcoZimBhWhiohgnZcZRC.,.D,,6.I16.M.6.J
Fyuv.U.2m,.101cUZj0E.6E2.c4E.yjz1,c8.0E.07M,kHk.a1AQAU0I.I5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