I'm using TabView
as my base for an image analysis GUI for a collaborator to use.
I'd like to restrict moving onto the next tab until the preceding tab has been finished, in order to propagate the appropriate elements of each tab. But I want to be able to move backwards.
For instance as a toy example (and this is easily catchable):
DynamicModule[{tab = 1, fileName, ff},
Column[{TabView[{
1 -> PopupMenu[Dynamic[ff], {ColorNegate, Blur, EdgeDetect}],
2 -> FileNameSetter[Dynamic@fileName, "Open", {"Image" -> {"*.png", "*.jpg"}}],
3 -> Dynamic@ff[Import[fileName]]},
Dynamic[tab]]}]]
I want to be able to control whether each tab is enabled, in the same way that e.g. Button
can take an Enabled
option. The option Enabled
only applies to the entire TabView
, so that doesn't work. I have 8 tabs at the moment in my actual app.