Re: [CAPI] enabling / disabling layouts

"Martin Půda (as mapuda at seznam dot cz)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <5wF.1Rfyd.5BgP68D2gZO.1eR0}[email protected]>
Hi,
to disable contents of layout, use (mapcar (lambda (pane) (setf (capi:simple
-pane-enabled pane) nil)) (capi:layout-description your-layout)). To enable 
them again, replace that nil with t.

I didn't find anything for disabling tabs... option-pane has capi:option-
pane-enabled-positions and there is some internal function capi-library:
update-choice-enabled-positions ((documentation 'capi-library:update-choice-
enabled-positions 'function) => "Update the positions of the items that are 
enabled in the choice (currently only applicable to OPTION-PANE). If enabled
-positions is not a list then all items are enabled.").

There are some workarounds: If your tab-layout has selection-callback, you 
could just "do nothing" for tabs that should be disabled. Or you can 
dynamically add/remove tabs in your tab-layout:
(capi:apply-in-pane-process your-tab-layout #'(setf capi:collection-items) 
list-of-new-tab-layout-items your-tab-layout).

---------- Původní e-mail ----------
Od: Didier Verna (as didier at didierverna dot net) <[email protected]>
Komu: [email protected]
Datum: 7. 7. 2025 15:14:04
Předmět: [CAPI] enabling / disabling layouts
" 
Hello, 

although layouts are simple-panes, it doesn't look like calling 
SIMPLE-PANE-ENABLED has any effect on them (at least, not what I was 
expecting, which is to act on its contents). Is there a way to enable / 
disable everything that's in a layout automatically ? 

Also, I can't seem to find a way to enable / disable the tab selection 
buttons in a tab-layout. 

Thanks ! 

-- 
Resistance is futile. You will be jazzimilated. 

Lisp, Jazz, Aïkido: http://www.didierverna.info 

_______________________________________________ 
Lisp Hug - the mailing list for LispWorks users 
[email protected] 
http://www.lispworks.com/support/lisp-hug.html 
"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.