Lisp HUG Maillist Archive

Set focus on a pane not visible inside a tab-layout

Hi everyone,

I have this configuration interface where i have several tabs with different parameters that should be stored together.. Before i added the tabs (there were fewer items) i had this function that captured validation errors, displayed a message and set focus to the pane originating the validation error, but now with the tabs it doesn't work as expected because the pane originating the error is not always in the visible child of the tab-layout. Is there some way of getting the layout containing a given pane? or checking if a tab-layout contains a given pane?

Cheers, 

Alex Paes

Re: Set focus on a pane not visible inside a tab-layout

Unable to parse email body. Email id is 10162

Re: Set focus on a pane not visible inside a tab-layout

Cool, I spent so much time looking at the capi reference guide and browsing classes on the class browser but still couldn't find anything.

Thank you so much for the fast help,

Alex Paes

On Wed, Apr 7, 2010 at 11:03 PM, Paul Tarvydas <tarvydas@visualframeworksinc.com> wrote:
> Is there some way of getting the layout containing a given pane? or checking
> if a tab-layout contains a given pane?

- capi:tab-layout-panes

- the "description" slot of a layout contains its panes, you could loop / map through it

- if you have the pane in hand, call capi:element-parent to find its parent layout and force it to the front (I don't recall which function does that for a tabbed layout).

pt

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