The integrated cross-platform development tool for ANSI Common Lisp LispWorks logo

Lisp Knowledgebase



Title: Setting font and colors used by CAPI:PINBOARD-OBJECT

ID: 16018


Product: All
Version: All
OS: All

Description:
The documentation in LW4.1 for capi:item-pinboard-object incorrectly states that you can pass the :font and :foreground initargs to control these aspects of the drawing. The correct way to do this is to use the :graphics-args initarg, which takes a list of GP drawing options (see section 10.3 Graphics state in the CAPI User Guide). There is an accessor capi::pinboard-object-graphics-args which can be used to read or change the values in an existing pinboard object. This applies to all subclasses of capi:pinboard-object.

In LW4.2 the documentation for capi:item-pinboard-object has been corrected and capi:pinboard-object-graphics-args is exported.

Example:
(capi:contain
 (make-instance 'capi:pinboard-layout
                :description
                (list (make-instance
                       'capi:item-pinboard-object
                       :data "foo bar"
                       :graphics-args '(:foreground :red)))
                :min-width 200
                :min-height 100))


Note: capi:item-pinboard-object and other subclasses of capi:pinboard-object can only be used in a capi:pinboard-layout.

See Also:
Workaround:
Patch:

Hardware:N/A
Summary:
Bug#:
Patch Enhancement#:
Reported:

Top | Back