Switching between classic and breadcrumbs path field

hi,
i want to create button to swith between classic and Breadcrumbs Path Field.
if i clic button and classic path displayed, then change to breadcrumbs.
if i clic button and breadcrumbs displayed, then change to classic.
now, i create 2 toolbars, one with classic path field (toolbar1), second with breadcrumbs path field (toolbar2), and 1 three button (left hide toolbar1 and display toolbar2, right hide toolbar2 and display toolbar1.
it's possible to replace path field by another ?
it's possible to do that in one clic button ?

thanks for advance

I would create two toolbars, each with a path field and a button.

Left-clicking the button would close the toolbar that the button is on and open the other toolbar.

There's no need for right-click actions on the button, if you think about it. Instead have different left-click actions for the buttons on the two different toolbars.