Lisp HUG Maillist Archive

CAPI: Disable/enable all controls in layout

Hi all,

I'm trying to find a way to disable/enable all controls in layout at
once.
By some reason
(setf (capi:simple-pane-enabled my-layout) enabled)
doesn't work.
Is where any ways how to do it without enumerating through all controls placed
on layout and calling appropriate (setf (...-enabled control) enable) function?

-- 
Br,
/Alexey

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: CAPI: Disable/enable all controls in layout

Alexey Veretennikov wrote on Sun, 15 May 2016 19:44:08 +0200 20:44:

| I'm trying to find a way to disable/enable all controls in layout at
| once.
| By some reason
| (setf (capi:simple-pane-enabled my-layout) enabled)
| doesn't work.
| Is where any ways how to do it without enumerating through all controls
| placed on layout and calling appropriate (setf (...-enabled control)
| enable) function?

I do not think so. 
For solution, please take a look at 
  (defgeneric (setf enabled) (value object))
in ywi-basics.lisp within the Ystok-Widgets bundle.
--
Sincerely,
Dmitry Ivanov
lisp.ystok.ru

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: CAPI: Disable/enable all controls in layout

Hi,

Thanks, this is interesting. So basically you switch/case by type
calling an appropriate -enable method, correct ?
Strange what it was not done in CAPI in the first place.
Also, are you planning to publish your library in quicklisp? 

"Dmitry" <dmitry502@list.ru> writes:

> Alexey Veretennikov wrote on Sun, 15 May 2016 19:44:08 +0200 20:44:
>
> | I'm trying to find a way to disable/enable all controls in layout at
> | once.
> | By some reason
> | (setf (capi:simple-pane-enabled my-layout) enabled)
> | doesn't work.
> | Is where any ways how to do it without enumerating through all controls
> | placed on layout and calling appropriate (setf (...-enabled control)
> | enable) function?
>
> I do not think so. 
> For solution, please take a look at 
>   (defgeneric (setf enabled) (value object))
> in ywi-basics.lisp within the Ystok-Widgets bundle.
> --
> Sincerely,
> Dmitry Ivanov
> lisp.ystok.ru

-- 
Br,
/Alexey

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


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