Hi Cameron,
Views.Deposit places a view in an internal queue. Calling StdCmds.Open open
all views in the queue into separate windows. Views.OpenAux opens a single
specified view in a window. So calling both, Open and OpenAux, on the same
view is rather strange.
If you wish to open views with specified window titles, then you cannot use
StdCmds.Open - and therefore not Views.Deposit which merely communicates the
view you wish to open to StdCmds.Open or any of the other generic "view
consuming" procedures, such as StdCmds.PasteView.
Using Views.OpenAux is OK, if that's what you want to do,
- Clemens
On Mon, 5 Jan 1998 cameronp{([at]})nowhere.xy
> cameronp{([at]})nowhere.xy
>
>
> Hi all again, didnt get a response for this question..
> Are you sure noone knows what the problem is?
> Thanks for you time
> Cameron
> >
> > Hi all,
> > Got another problem I cant seem to solve...
> > >From a function in one of my classes, I want to create a number of
> > views, and *deposit* open them up.. To do this, I called a function as
> > below, which was based on the deposit function.
> >
> > This procedure is inside my view class
> >
> > PROCEDURE InitView*( l: G1Lecturer.Lecturer);
> > VAR
> > v: View;
> > m: Model;
> > str : Views.Title;
> > tmpstr: G1Strings.String;
> > BEGIN
> > NEW(m);
> > Init(m);
> > NEW(v);
> > v.model := m;
> > lecturer := l;
> > tmpstr := lecturer.GetName();
> > Strings.Replace(str,0,64,tmpstr^);
> > (*Views.Deposit(v);*)
> > Views.OpenAux(v,str);
> > StdCmds.Open;
> >
> > END InitView;
> >
> > Now I also wanted to give the view a particular name at the top, hence
> > the call to openaux.. But even if I dont use openaux, and just go with
> > deposit call, it doesnt work.. It actually displays them if i have 2 or
> > more, but the first one always appears and then it vanishes...
> >
> > Any ideas as to what I'm doing wrong?
> > Cheers
> > Cam
Received on Wed Apr 22 1998 - 07:44:22 UTC