Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Overview
PhixFlow allows you to create navigation menus that always appear. This allows for a single menu to be setup set up that can be accessed from any point in an your application. It is also possible to setup set up a menu that only displays when called, for example if you create a configuration menu for your application that is only shown when the user clicks a button.An application menu, in version 9.0+ of PhixFlow, is configured as a screen and as such can be positioned in different places on the screen. Template menus are provided within the Template Packages that are styled to fit with the look and feel of the rest of the items in the template package. See Installing Template Packages if you need to install one. Template navigation menus are provided with the Serene Grey Template Pakage.
Create a Custom Menu
- From the Screens home page click Add New
.Insert excerpt _createMenu _createMenu nopanel true - Complete the details:
- Name, indicative of the menu being created.
- Open Maximised, Untick. We will specify the size of our menu later. Menu section
- Add to startup action, leave ticked if you want the menu to open with the application.
- Position, Where you would like the menu to appear. Defaults to
Pinned to Top
. - Height/Width, If using Pinned to Top the Serene Navigation menu is designed to be 50px.
- Description, for example,
Main navigation menu for application
. - Template section, scroll through the templates and click on the desired navigation menu.
- Click Create Screen.
- The screen opens
- Click Properties from the toolbar.
- Untick Allow Manual Resizing
- Set Position to Pinned to... the position of your menu. For example Pinned to Top.
Set the Height and Width for your menu item. We suggest:
for top menus: height of 45px
- for side menus: width of 250px
- Save your changes.
- Close and reopen the menu to see the updates.
Note |
---|
For a horizontal menu a drop-down button will not work. To create menu with drop-downs; see Startup Actions. |
Adding Menu Options
To add buttons to your navigation menu that open a screen:
- Find the screen in the repository.
- Drag the screen onto the menu bar.
- Provide a display Application Menu. Give this time to generate the menu.
Adding Navigation Menu Buttons
- Open your navigation menu and ensure it is unlocked.
- Drag, Palette → Buttons - Navigation → Button Custom onto the Navigation Menu.
- From the Screens context toolbar click
Insert excerpt _screen _screen nopanel true - A list of available screens will open on the right.
- Drag the screen you wish to open onto the button.
- Provide a name for the button and continue.
- PhixFlow adds the menu button and automatically creates the an actionflow that will open this screen.
When an application user clicks the menu button, the screen opens automatically.
Automatically Display a Menu
To automatically show a navigation menu when an application starts up we use, Startup Actions, which are set to run when an application opens:
- In the repository navigate to the startup section and add a new startup action using the
- Tick Default Desktop Action, if you want this to be for desktop devices.
- Tick Default Mobile Action, if you want this to be for mobile devices.
- Action Method, select the actionflow that opens your navigation menu screen. If you hae not yet created one use the
Insert excerpt _add _add button to do so. Help on this topic can be found innopanel true - To edit the actionflow, right-click the button and select Display Actionflow; see
- .Save your changes and now when you open your application the avigation bar will appear
- .