dgross@rchland.vnet.ibm.com (Dave Gross) (06/05/91)
I've been poking around in frame.c trying to get ListBuffers to allow
you to click on a buffer name and switch to that buffer. Inoticed that
there is already code there to do something similar inhelptxtv.c, the
problem is it doesn't get invoked. I noticedthat in
frame__GetHelpBuffer, the line
buffer = buffer_Create(bufferName, NULL, "text",NULL);
creates a text object that is used to store buffer names, filenames,etc.
in. I was trying to find out which view was getting hooked to this.
Itdefaults to textview. Down a little inframe__SetHelpBuffer, there is
the line:
self->DialogBufferView =buffer_GetView(buf, &inputFocus,
&targetView,"helptextview");
Seems like this would set the view to helptextview, but it neverreaches
this statement.
I created a dummy subclass of text called helptext, replaced"text" with
"helptext" in the buffer_Create line, andpoof! I could now select items
out of the help buffer. This works nice for completing filenames and
buffer names forVisit/Switch File and Visit Buffer. Just type a ? at
themessage prompt, click on one of the names listed and hit return. I
like this. Any chance for this to be the default behavior?
-- Dave
P.S. List Buffers would have to be fixed since it will also place
theselected name on the message line (which is useless). I don't know
what elsethis change would affect.