Lisp HUG Maillist Archive

update-toolbar

I have provided an enabled-function for several toolbar buttons. On LWW 
it appears that update-toolbar is only called automatically when the 
interface is first opened. Do I have to continually call it myself? 
What is the best way to do this?

Thanks,

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


Re: update-toolbar

Hello John,

| I have provided an enabled-function for several toolbar buttons. On LWW
| it appears that update-toolbar is only called automatically when the
| interface is first opened. Do I have to continually call it myself?
| What is the best way to do this?

You do need to call update-toolbar explicitly after altering some data that
participate in the calculation of your enabled-function.

If you do not rely on enabled-function but modify the toolbar via setf-ing
simple-pane-enabled, choice-selection, choice-selected-items or the like,
CAPI updates the toolbar automatically.
--
HTH,
Dmitriy Ivanov
lisp.ystok.ru


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