Article View: comp.soft-sys.andrew
Article #1861frame__GetHelpBuffer
From: Dave Gross
Date: Tue, 04 Jun 1991 21:10
Date: Tue, 04 Jun 1991 21:10
31 lines
1891 bytes
1891 bytes
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.
Technical Details
Message-ID:
<AcH07Sk91E6JQuFOMY@rchland.ibm.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!rchland.vnet.ibm.com!dgrossShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!rchland.vnet.ibm.com!dgross From: dgross@rchland.vnet.ibm.com (Dave Gross) Newsgroups: comp.soft-sys.andrew Subject: frame__GetHelpBuffer Message-ID: <AcH07Sk91E6JQuFOMY@rchland.ibm.com> Date: 4 Jun 91 21:10:54 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: "Dave Gross" <dgross@rchland.vnet.ibm.com> Distribution: world Organization: The Internet Lines: 31