As the title says. My current workaround is to manually add the missing click-listeners as follows:
Given a layout like
(defpanel
(notebook :name :notebook
(tab :label "Hello"
(label :text "Hi"))
(tab :label "World"
(label :text "everyone"))))
I add
(defmethod bodge-ui-window:on-ui-ready ((this main-window))
(let* ((main-panel (first (bodge-ui::%panels-of (bodge-ui-window:ui-window-context this))))
(notebook (bodge-ui:find-element :notebook main-panel)))
(loop for tab-btn in (bodge-util:children-of (slot-value notebook 'bodge-ui::tabbar))
for idx from 0 do
(setf (slot-value tab-btn 'bodge-ui::click-listener) (funcall (lambda (idx) (lambda (panel) (bodge-ui::select-tab notebook idx))) idx)))))
(using bodge-ui-window to take care of the boilerplate, not shown).
As the title says. My current workaround is to manually add the missing click-listeners as follows:
Given a layout like
I add
(using
bodge-ui-windowto take care of the boilerplate, not shown).