Jump to content
Server Maintenance This Week. ×

Hide header or menu when on iOS?


This topic is 4456 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi.

Is there any way of scripting so that the header, or title header don't display on iOS units?

I have a menu in the header, and it is not needed on the iPad version because the built in navigation is so good. Kind of wish they would make a bigger and nicer menu in the normal osx fm pro as well. Any how how do you guys solve it with unit dependent graphics?

Thanks.

Link to comment
Share on other sites

I'm not sure if I follow... what do you mean by "menu in the header"? Can you attach a screenshot?

"unit dependent graphics". Do you mean that certain pictures or graphics on a layout should only be visible when running on the desktop, iPad or iPhone? You can use Get (SystemPlatform). It will retune a "3" when it's an iPad and a "4" when it's an iPhone. You can use this information in scripts, or set a global variable with it and use it in calculations, triggers, etc.

Link to comment
Share on other sites

Any how how do you guys solve it with unit dependent graphics?

It's common to create a different group of layouts for each interface: iPad, iPhone/iPod, Desktop, IWP. Then, in the start-up script, test the application version, and go to the appropriate starting layout for the current interface.

Link to comment
Share on other sites

Hi. Thanks for the replays, I will try to be more specific.

Ive got a layout that works on both iPad and iMacs (since I think its to much work building individual layouts for every system in this project). But the only thing I could not manage, or figure out, is how to do the question above. I can clarify.

A FM layout is divided in different parts, like body, head, footer and so on. On my layout I have a series of icons that leads to different layouts, like a menu. They are all in the header tab. But the fm GO on iPad has a very good build in popup for choosing layouts, so I don't really need my menu on that system and it takes a lot of space from the rest of the system. The normal FM has it as well, but not as big and nice, and since the iMac screen is so huge its better to have a large idiot-safe menu.

The ide I had was if I could do something like this

If[ Get (SystemPlatform) = 3)]

Hide Header part

End if

Or can i put the menu in a script based Tab control box and then if system =3 then hight=0px? Its a hard nut to crack. but it would be good.

any solutions are appreciated...

post-105162-0-53049600-1329125294_thumb.

Link to comment
Share on other sites

In don't know of a function (or even a plug-in for that matter), which allows you to hide parts of a FileMaker layout as a whole.

Dan's suggestion is the only way I know if, which is to have separate layouts for different devices. This also makes sense because you don't want to be limited to designing your layout to the smallest device your solution runs on.

A (less common) alternative would be to create a tab-panel which spans the entire layout and hide them by making them 0px in size. You'd have to get rid of the header section and work in body only. Then script, as suggested above, but instead of going to specific layouts, go to specific tabs. In my opinion this creates a bag of hurt though, because you end up having the same objects on the same layout more than once. You'd have to come up with a concept for object names, tab order etc. which ensures that the information on the alternate tab is not revealed when it's not supposed to. I really recommend Dan's approach.

Link to comment
Share on other sites

What your asking cannot be done; adjust height of header part based on context.

The only other option you have is to hide the status area instead, so both that and your header part are not shown. If you do this, you need to re-create all the necessary elements from the status area; like New/Delete Record, Find, current record, found count, etc.

Link to comment
Share on other sites

The only other option you have is to hide the status area instead,

Aha, Thats a way to do it. But the toolbar is nice to have, especially on the iPad. I gave it a try and it was almost there. But thanks for the tip, might come in handy some day. The layout still works, but its a bit of scrolling sideways to get all the info. I think the next iPad will have a higher res so I assume it will fit then, but Ill probably need new glasses to se anything :laugh2: .

Link to comment
Share on other sites

This topic is 4456 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.