Thank you for your post.
I am unable to replicate the issue. This is what I have done:
1. I created a table with one Number field "ID".
2. I created a layout and created two squares of equal size. One has a fill of green, and the other has a fill of red.
3. For the red square, I set the "Hide object when" formula to: ID = 1
4. For the green square, I set the "Hide object when" formula to: ID ≠ 1
5. I placed the red square on top of the green square.
6. I went to browse, and entered 1 into ID. The red square displays.
7. I changed the value of ID to 2, tabbed out of ID, and the green square displays.
Let me know what I'm doing differently than you so I can replicate the issue.
Apologize. I'm using FMP German version. Registerelement => Tab Control
I'm confident that you can replicate this when doing same procedure with Tab Control (Tab Elements?) instead of table and fields.
For this category (Tab Control AND Slide Control) we had to learn that rendering behaviour might be different then that of simple fields or graphic objects.
Attd. Screenshot of workaround with 2 pixel offset for upper layered Tab Element
Screenshot with lower layer activated
Screenshot with upper layer activated with workaround 2 pixel offset
I am still unable to replicate the issue.
I created the first tab control with tabs "A" and "B". I duplicated the tab control, but renamed the tabs "1" and "2". The first tab control (AB) has "Hide object when" formula set to: ID = 1. The second tab control (12) has "Hide object when" formula set to: ID ≠ 1.
I then set the position of the second tab control (12) to the same coordinates of the first tab control (AB). With ID=1, I see the first tab control. When I change ID to 2, the second tab control (12) then appears.
Is it possible you placed the second tab control inside the first tab control panel?
I downloaded the file. Thank you.
On the layout, the first thing I noticed was the position of the bottom tab controls. Specifically, the top value was 368.457 points. Since you had a partial point value, I changed it to 368 points. I then noticed that the topmost tab control did not have a "Hide object when" formula, so I moved the tab control up 10 points using the arrow key.
I was then able to select the back portal, and I was able to see the calculation for the Hide object when. Specifically, if the Person or Patient radio button is not selected, it will hide. Is there a reason why you didn't apply the opposite to the top tab control (Adressen::Auswahl = "Patient" or Adressen::Auswahl = "Person")?
I then switched to Position, and I noticed it also had the top value of 368.457 points, so I removed the fraction of a point down to 368. I also noticed the bottom left Position is 71 points, while the original was 72 points. I made these the same, even though you appearance differences between the two.
So that the tab doesn't become part of the other tab, I click on the upper tab and change the top value from 358 to 368.
I now go to Browse, and I click on "Person", and I see two extra tab panels. I click on "Spital", and the two tab panels disappear leaving me with only five tab panels.
I then moved the top panel by pressing the up arrow key once followed by the down arrow key once, as this places the upper tab control in the lower tab control. Now, when I go to Browse, I see both panels disappear when I click on Spital. Perhaps this is what you did?
If I then move the panel upwards again and move it into position using the Inspector (368 points), it then works as expected.
Let me know if you need additional clarification.
Specifically, the top value was 368.457 points.
I did a quick copy/paste from my 400MB solution and didn't pay much attention for that FMP fraction issue.
Is there a reason why you didn't apply the opposite to the top tab control (Adressen::Auswahl = "Patient" or Adressen::Auswahl = "Person")?
I actually did. But the top Tab Control must be grouped for proper positioning. I also ungrouped the Top Control, deleted HideObject formula in every Tab, grouped it again and set the HideObject formula for the entire Group
If I then move the panel upwards again (with arrow key's) and move it into position using the Inspector (368 points), it then works as expected.
Didn't do the trick for me.Actually, it did after applying vertically AND horizontally! I think for the next such FM challenge, I'll need a dead chicken and the fresh blood of a leprechaun :-)
many thanks and kind regards