Lisp HUG Maillist Archive

Editable grid interface

Hello,

I'd like to implement a kind of editable grid, with possibility to  
dynamically add columns and rows, and editing of the cells through  
freeform input and selection from a  collection (e.g. with an option- 
pane).  The application is an OS X CAPI application.

The only grid-like pane I could find is multiple-column-list-pane,  
but I could not find a way to select a single cell in it and make it  
editable. Another way would be to implement the grid as a grid layout  
where I manually lay out text-input-panes  and option-panes. Is there  
a simpler way?

Thank you, Denis.


AW: Editable grid interface



-----Ursprüngliche Nachricht-----
Von: owner-lisp-hug@lispworks.com [mailto:owner-lisp-hug@lispworks.com] Im
Auftrag von Denis Mashkevich
Gesendet: Montag, 28. Januar 2008 09:23
An: lisp-hug@lispworks.com
Betreff: Editable grid interface



Hello,

I'd like to implement a kind of editable grid, with possibility to  
dynamically add columns and rows, and editing of the cells through  
freeform input and selection from a  collection (e.g. with an option- 
pane).  The application is an OS X CAPI application.

The only grid-like pane I could find is multiple-column-list-pane,  
but I could not find a way to select a single cell in it and make it  
editable. Another way would be to implement the grid as a grid layout  
where I manually lay out text-input-panes  and option-panes. Is there  
a simpler way?

Thank you, Denis.


Denis,

There are some examples (grid.lisp and grid-impl) you can find
in <LispWorks dir>/lib/5-0-0-0/examples/capi/elements.

There is some code in public domain at http://lisp.ystok.ru/ygrid/

Finally you can roll your own stuff like I did :)

Andreas


Re: Editable grid interface


On Jan 28, 2008, at 3:22 AM, Denis Mashkevich wrote:

> I'd like to implement a kind of editable grid, with possibility to  
> dynamically add columns and rows, and editing of the cells through  
> freeform input and selection from a  collection (e.g. with an option- 
> pane).  The application is an OS X CAPI application.
>
> The only grid-like pane I could find is multiple-column-list-pane,  
> but I could not find a way to select a single cell in it and make it  
> editable. Another way would be to implement the grid as a grid  
> layout where I manually lay out text-input-panes  and option-panes.  
> Is there a simpler way?


Unfortunately, there is not a simple way to do this. The multi-column- 
list-pane corresponds to a Mac Cocoa object that has all of these  
features, so you could implement it using the Cocoa API.


John DeSoi, Ph.D.





Re: Editable grid interface

On Monday 28 January 2008 3:22:47 am Denis Mashkevich wrote:

> The only grid-like pane I could find is multiple-column-list-pane,
> but I could not find a way to select a single cell in it and make it
> editable. Another way would be to implement the grid as a grid layout
> where I manually lay out text-input-panes  and option-panes. Is there
> a simpler way?

a) As someone already mentioned, looked at ygrid.

b) You can make a non-editable grid in the usual way, then instantiate a 
single editor (capi:rich-text-pane or capi:edit-pane or capi:text-input-pane) 
and hide it (capi:hide-pane).  When your input-model logic determines that 
the user wants to edit a cell (for example double-click the left mouse button 
over a particular cell), you can reposition the editor pane (setf 
(capi:pinboard-pane-position ...) and capi:pinboard-pane-size) over the cell 
and use capi:show-pane to display the editor and allow in-place editing.

pt


Re: Editable grid interface

On Mon, 28 Jan 2008 14:44:21 +0100, Jochen Schmidt <js@codeartist.org> wrote:

> Sometimes I wished we had a public repository for CAPI widgets...

<AOL>
  Me too... :)
</AOL>

Didn't LispWorks once have a directory of contributed code?  The home
page still mentions it, but when I follow the link I don't find it
anymore.


Re: Editable grid interface

Unable to parse email body. Email id is 7562

Re: Editable grid interface

On Mon, 28 Jan 2008 19:04:37 GMT, davef@lispworks.com wrote:

> http://www.lispworks.com/downloads/contrib.html

Ah, thanks.


Updated at: 2020-12-10 08:44 UTC