All Manuals > CAPI User Guide > 7 Laying Out CAPI Panes > 7.4 Constraining the size of layouts


7.4.4 Changing the constraints

If you need to alter the constraints on an existing element, use the function set-hint-table . See how the interface in Character constraints resizes after this call:

(apply-in-pane-process editor2
 'set-hint-table editor2 '(:visible-min-width (:character 100)))

If you define your own pinboard-object class, ensure that its hint table matches the visible geometry and is kept synchronised after any movement of the object, otherwise redrawing may be incorrect.

Similarly if you draw pinboard objects under a transform, call set-hint-table with the transformed geometry to ensure correct redrawing. Initial constraints

CAPI User Guide (Windows version) - 30 Aug 2011