Lisp HUG Maillist Archive

Pinboard layout: dynamically adding children

Is there a way to dynamically add children to a pinboard layout?

I see CAPI::ADD-PINBOARD-OBJECT in the class browser but this generic  
function is not documented.

     Thanks, Joel

--
http://wagerlabs.com/uptick




Re: Pinboard layout: dynamically adding children

On Wed, 10 Aug 2005 12:51:03 +0200, Joel Reymont <joelr1@gmail.com> wrote:

> Is there a way to dynamically add children to a pinboard layout?
>
> I see CAPI::ADD-PINBOARD-OBJECT in the class browser but this
> generic function is not documented.

I've done this by modifying the layout description directly with

  (setf capi:layout-description)

which seems to work.  One thing to watch out for is that the children
at the end of this list are drawn on top of the others.

HTH,
Edi.


RE: Pinboard layout: dynamically adding children

Joel Reymont wrote:
> 
> Is there a way to dynamically add children to a pinboard layout?

capi:manipulate-pinboard



Re: Pinboard layout: dynamically adding children

Big thanks to everyone who replied!

After much deliberation I think I'll go native Cocoa for my poker  
game client. This would be more like going with the flow as opposed  
to swimming upstream with CAPI ;-).

     Joel

--
http://wagerlabs.com/uptick




Re: Pinboard layout: dynamically adding children

Unable to parse email body. Email id is 4351

Re: Pinboard layout: dynamically adding children

Edi Weitz <edi@agharta.de> writes:

> I've done this by modifying the layout description directly with
>
>   (setf capi:layout-description)
>
> which seems to work.  One thing to watch out for is that the children
> at the end of this list are drawn on top of the others.

This is what I usually do as well, but you can also use manipulate-
pinboard. See the pinboard-movement example!
-- 
  (espen)


Re: Pinboard layout: dynamically adding children

On Wed, 10 Aug 2005 13:36:50 +0200, Espen Vestre <ev@netfonds.no> wrote:

> This is what I usually do as well, but you can also use manipulate-
> pinboard. See the pinboard-movement example!

Yes, from the description of MANIPULATE-PINBOARD:

  "These operations can also be effected using (SETF
   LAYOUT-DESCRIPTION), but MANIPULATE-PINBOARD is much more efficient
   and produces a better display."

However, I seem to remember that in one of my apps I replaced the
(SETF LAYOUT-DESCRIPTION) calls with MANIPULATE-PINBOARD and after
that it didn't work anymore so I undid the change.  Unfortunately, I
forgot the details - have to dig it up.

Cheers,
Edi.


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