VirtualBob Posted Sunday at 07:50 AM Posted Sunday at 07:50 AM (edited) When I created a Tab set in layout I expected there would be some simple option in the tab setup panel that says (on click) go to Layout. No such thing. Where do I go from here? I just want to click a tab to go to another layout. FMPro 15. Without much knowledge I created a transparent button overlay, the first tab works fine, the second one on the target layout I have to click hard or twice for it to work (no idea why) but in the rollover state it goes opaque which seems to be related to its default theme. Edited Sunday at 08:11 AM by VirtualBob
comment Posted Sunday at 09:05 AM Posted Sunday at 09:05 AM (edited) 1 hour ago, VirtualBob said: expected there would be some simple option in the tab setup panel There is no such option because it is an unusual requirement. The purpose of a tab control object is to divide an area of the layout on which it is placed into several sub-areas and the tabs are meant to switch between those, not to serve as buttons. As a user I would be very much surprised and confused by the behavior you describe. Still, you could accomplish your goal in at least 2 ways: 1. Use a slide control and make your own tabs using a button bar; 2. Use the OnPanelSwitch script trigger in conjunction with the Get(TriggerTargetPanel) function. Edited Sunday at 09:12 AM by comment
VirtualBob Posted Sunday at 10:45 AM Author Posted Sunday at 10:45 AM Thanks for that, I guess I'm going for the quick and dirty option by changing layouts. Its just a personal database, but I should learn the proper way at some stage.
LaRetta Posted Sunday at 04:50 PM Posted Sunday at 04:50 PM Hi Bob, if you click a tab and it changes layouts then you will never see anything you put ON a tab except for the first (default) tab. Button bar is the tool you seek! 😃
comment Posted Sunday at 05:07 PM Posted Sunday at 05:07 PM I thought the request was to have the tabs function normally (i.e. switch between panels) except one that would serve as a button. That's why I made the suggestions above. Upon reread, it seems @VirtualBob wants the entire tab control object to be used merely for navigation between layouts. That would certainly be the wrong tool for this purpose. This is somewhat ironic: before we had tab controls, we used to simulate them by a row of buttons that switched between layouts, giving the appearance of switching between panes. Here we have the exact opposite of that.
VirtualBob Posted Sunday at 11:38 PM Author Posted Sunday at 11:38 PM Thanks everyone - I'm showing my age, having started off in FM v1 and being savvy in FMP 4, so I don't always keep up with what's new and just fudge along until something works. Yes I think the button bar is what I should be using. Tabs just looked nice 🙂
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now