Re: Strangeness with Dialog.Update and Properties.CollectProp

From: [at]} <gruntz{>
Date: Thu, 22 Jul 1999 15:08:55 +0200

> >I do not see why this is necessary, as only the dialog needs
> >to be updated, not your view.
> The dialog controls are bound to fields in a property record. As the user
> changes values in the controls, I want the changes to be reflected in the
> view that they are editing.
ok, I thought you asked for the notification in the context of updating the
controls in the property dialog. Obviously, notification of a view is also
necessary when the controls in the dialog are changed. Both solutions
you proposed are valid ones, i.e. a Notify procedure which directly sets
the attributes or which calls EmitProp.
Alternatively, you could also define a procedure which is executed if
you click on the Apply or Ok button.

> PROCEDURE Notify*(op, from, to : INTEGER);
> BEGIN
> IF (op = Dialog.changed) OR (op = Dialog.included) OR (op =
> Dialog.excluded) THEN
> Properties.EmitProp(NIL, graphProp);
> END;
> END Notify;
EmitProp sets focus view's properties to prop. The question is: what is
the focus?

> Unfortunately, it doesn't always work. Certain dialog controls seem to vary
> the focus within their notification procedures. Text boxes and check boxes
> work fine. The colour picker seems to focus itself (sometimes).
This is strange and I have to check that. However, you can force the frame-
work to do what you expect by setting the focus path to the target, i.e.
to the view you are manipulating. Try the following statements in your
Notify procedure:

 oldpath := Controllers.path;
 Controllers.SetCurrentPath(Controllers.targetPath);
 Properties.EmitProp(NIL, graphProp);
 Controllers.SetCurrentPath(oldpath);

For all others interested in this discussion: I have extended the example I distributed
in my last answer. It now also defines a Property and in addition, a special property
editor is provided which can be invoked with the Properties... item in the context menu.
Changes since the last version are marked red.

- Dominik

StdCoder.Decode ..,, ..3o,...3Qw7uP5PRPPNR9Rbf9b8R79FTvMf1GomCrlAy2xhX,Cb2x
 hXhC6FU1xhiZiVBhihgmRiioedhgrZcZRiXFfaqmSrtuGfa4700zdGrr8rmCLLCJuyKtYcZRiX
 7.2.s,cWt.,k,5TWyql.bnayKmKKqGomC5XzET1.PuP.MHT9N9ntumaU2,CJuyKtQC98P9PP7O
 NbXmb.2.2vPk2Ecj,,6.,U08J99SdfJHPNjvQCJuGKfaqmY6MwdONl1QCh0708T,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y4PPNkVy4..Z6.6..E2E.U76.2n9RC,t75J.nT32kwL,lsHFHEfGA,B2....
 --- end of encoding ---
Received on Thu Jul 22 1999 - 15:15:01 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:43 UTC