change tab colour if 'not null'
Hi, using FM10 on XP.
i have various tabs representing different tables on a form.
Is there a way i can change the colour of the tab if an entry has been made?
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.
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.
See this thread for a description of a trick for getting this affect:
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?
thanks Phil... good workaround...
Retrieving data ...