Re: Opening and Closing views

From: [at]} <Stewart>
Date: Fri, 20 Aug 1999 16:38:57

At 10:14 AM 20/8/99 +0200, Dominik Gruntz wrote:
>> It works up to a point. Once the first view is opened, more calls to Open
>> will not open another view. However, after CLOSING the initial view, every
>> call to Open gives a new window. The first one has title "Terminal",
>> successive ones have title "<Terminal>", so it presumably realises they are
>> the same. Is there a better way of doing this? All I want is an effect
>> similar to StdLog.Open.
>All commands in Views which open a view (e.g. Views.Open, Views.OpenAux, etc)
>internally use the procedure Sequencers.Open. The names of the parameters
of this
>procedure are shomehow self-explaining. This for your purpose, use the
command
>Sequencers.Open(v, "Terminal", NIL, "", NIL, FALSE, TRUE, FALSE, FALSE,
TRUE);

I would never have thought to use that procedure. Module Sequencers is (of
course) undocumented. Looking at the interface definition, it looks like a
very useful procedure.

>> Another problem is that I get "Terminal has changed. Do you want to save
>> changes?" when closing the window. This seems to be related to the use of
>> UpdateMsg in the model. If I don't send UpdateMsgs, it doesn't ask the
>> question. Is there a way of telling the framework that I don't want to save
>> the view, even though I have updated its model?
>The last parameter of Sequencers.Open is "neverDirty". This if you pass TRUE
>for that parameter, the view never becomes dirty and can be closed without
>any alert dialog.

Thanks, Dominik. It works perfectly.

Cheers,
- Stewart


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 to:
   owner-blackbox{([at]})nowhere.xy
Received on Fri Aug 20 1999 - 10:32:07 UTC

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