Jump to content

  •  

Photo

Hide header or menu when on iOS?


  • Please log in to reply
9 replies to this topic

#1 jamesjames  novice

jamesjames
  • Members
  • 34 posts
  • FM Application:11
  • Platform:Mac OS X Snow Leopard
  • Skill Level:Novice
  • Time Online: 23h 42m 40s

Posted 08 February 2012 - 10:09 AM

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.
  • 0

#2 artvault  apprentice

artvault
  • Members
  • 248 posts
  • LocationSwitzerland
  • FM Application:11 Advance
  • Platform:Cross Platform
  • Skill Level:Intermediate
  • Certification:8, 10
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 6h 22m 54s

Posted 11 February 2012 - 01:55 AM

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.
  • 0

#3 dansmith65  veteran

dansmith65
  • Members
  • 857 posts
  • LocationB.C. Canada
  • Certification:8, 11, 12, 13
  • Membership:TechNet
  • Time Online: 14d 22h 36m 38s

Posted 11 February 2012 - 08:31 AM

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.
  • 0

#4 artvault  apprentice

artvault
  • Members
  • 248 posts
  • LocationSwitzerland
  • FM Application:11 Advance
  • Platform:Cross Platform
  • Skill Level:Intermediate
  • Certification:8, 10
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 6h 22m 54s

Posted 11 February 2012 - 11:11 AM

For example:

If[ Get (SystemPlatform) = 3)]
    GoToLayout [XX]
  Else If [ Get (SystemPlatform) = 4)]
    GoToLayout [YY]
  Else
    GoToLayout [ZZ]
End If

  • 0

#5 jamesjames  novice

jamesjames
  • Members
  • 34 posts
  • FM Application:11
  • Platform:Mac OS X Snow Leopard
  • Skill Level:Novice
  • Time Online: 23h 42m 40s

Posted 13 February 2012 - 01:32 AM

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...

Attached Thumbnails

  • Screen Shot 2012-02-13 at 10.27.49 AM.png

  • 0

#6 artvault  apprentice

artvault
  • Members
  • 248 posts
  • LocationSwitzerland
  • FM Application:11 Advance
  • Platform:Cross Platform
  • Skill Level:Intermediate
  • Certification:8, 10
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 6h 22m 54s

Posted 13 February 2012 - 05:42 AM

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.
  • 0

#7 jamesjames  novice

jamesjames
  • Members
  • 34 posts
  • FM Application:11
  • Platform:Mac OS X Snow Leopard
  • Skill Level:Novice
  • Time Online: 23h 42m 40s

Posted 13 February 2012 - 06:17 AM

Ok. Then I know. Thanks for all the answers. Ill solve it some other way. We usually don't use iPads for this layouts, but its nice to be able to.
  • 0

#8 Lee Smith  Like v13 layout tools

Lee Smith
  • Staff
  • 10,083 posts
  • FM Application:13 Advance
  • FMGo:iPhone / iPod Touch
  • Platform:Mac OS X Mavericks
  • Skill Level:Expert
  • Membership:TechNet
  • Time Online: 223d 13h 50m 37s

Posted 13 February 2012 - 08:57 AM

Hi James, and welcome to the Forums,

There are video and files available on how-to design your files for iPad, iPhone, and iPod. I would start with this site http://rcconsulting.com/videos.html by Richard Carlon.

Lee
  • 0

#9 dansmith65  veteran

dansmith65
  • Members
  • 857 posts
  • LocationB.C. Canada
  • Certification:8, 11, 12, 13
  • Membership:TechNet
  • Time Online: 14d 22h 36m 38s

Posted 13 February 2012 - 09:18 AM

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.
  • 0

#10 jamesjames  novice

jamesjames
  • Members
  • 34 posts
  • FM Application:11
  • Platform:Mac OS X Snow Leopard
  • Skill Level:Novice
  • Time Online: 23h 42m 40s

Posted 13 February 2012 - 10:07 AM

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: .
  • 0




FMForum Advertisers