----boundary-LibPST-iamunique-575543394_-_-
Content-type: text/plain
Hi
I have a View type that I sometimes like to have a fixed size (eg when printing)
and sometimes I like it to adapt to the size of the Window it is in. Thus I have
given it a field v.fitToWin which I can control, and then use as shown below.
The problem is that the ResizePref message is not often called. When I change
fitToWin it has no immediate effect, but if I take a copy of the View the new
copy behaves as required.
Can anyone suggest how I can make the Container of the View send the
ResizePref message?
(Note - the Menu item Tools->Document Size... must solve this problem somehow.)
Cheers
Robert Campbell
PROCEDURE (v : View) HandlePropMsg (VAR msg : Properties.Message);
BEGIN
WITH msg : Properties.SizePref DO (* prevent illegal sizes *)
...
| msg : Properties.ResizePref DO
msg.horFitToWin := v.fitToWin;
msg.verFitToWin := v.fitToWin
| msg : Properties.PollMsg DO GetProperties (v.model, msg.prop)
| msg : Properties.SetMsg DO SetProp (v.model, msg.prop)
ELSE
END
END HandlePropMsg;
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-575543394_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciB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