hi, that seems to work if im on the tab, but the conditional formating doesnt work if im browsing the other tabs...
is there a way for it to work if not on the tab?
Instead of using a zero width tab, try placing the conditionally formatted text directly on the tab.
hi, the text field just disappears when im not on the tab... is there a way it can always be viewable?
OK, it's been a while since I've played with conditional formatting and tab controls. It'd be nice if we could set conditional format expressions directly on the tab label, but we can't and thus have to do a work around. I just experimented with a sample file to make sure what I am recommending will work.
The method that I linked you to in my first post should do exactly what you need. If it doesn't there's some detail that's not set up correctly.
- Don't label the tabs
- Specify a fixed width of zero pixels.
- Create a button that will take the place of the tab label. Size the button so that it has at least one pixel outside the boundaries of the tab control once you have positioned it where you want it. That keeps the buttons from disappearing on you when you select different tabs.
- Click on each tab (still in layout mode) and use the Object Info tab to assign a unique object name to each.
- Set up your buttons to use this one line step: Go To Object ("tab object name")
I created two tabs in my tab control and labeled each tab "tab one" and "tab two" respectively.
I then entered the following conditional format text for the button for tab one:
not GetLayoutObjectAttribute("tab one" ; "isFrontTabPanel" )
and selected a grey text color.
With that format expression, the button's text turns grey unless tab one has been selected. That's probably not the format you want, but it should show you how to set up the format you want.
thanks Phil... good workaround...