Introduction
PhixFlow makes it easy to set up menus and navigation buttons. In this chapter, we will look at creating a simple top menu that we can add navigation buttons to for our application.
Menu
Menus are created in the same way as a screen, as they are essentially the same as a screen. We just set some of their properties a little differently.
- From the
Insert excerpt |
---|
| _screen_toolbar |
---|
| _screen_toolbar |
---|
nopanel | true |
---|
|
home page create a new screen, select Insert excerpt |
---|
| _createMenu |
---|
| _createMenu |
---|
nopanel | true |
---|
|
.- Name,
Main Menu
.Open Maximised, untick
. - Add to startup action, toggle off
Insert excerpt |
---|
| _toggle_off |
---|
| _toggle_off |
---|
nopanel | true |
---|
|
. - All Users can View Data, toggle on
Insert excerpt |
---|
| _toggle_on |
---|
| _toggle_on |
---|
nopanel | true |
---|
|
. - Position, Pinned to Top.
- Height, 50px.
- Description,
Application main menu
. - Template, Top Menu.
- Click Create Application Menu
- When the screen opens, click the
Insert excerpt |
---|
| _property_settings |
---|
| _property_settings |
---|
nopanel | true |
---|
|
button in the toolbar.Tick
, Always On Top.- This ensures the menu always appears and is not covered by another screen.
- Click the Styles tab.
- Position,
Pinned to Top
. Height, 50px
., toggle onsavesave your changes.
Close and reopen the screen for the changes to be shown- This ensures the menu always appears and is not covered by another screen.
Home Button- From the screens toolbar click
Insert excerpt |
---|
| _screen |
---|
| _screen |
---|
nopanel | true |
---|
|
. - From the list that opens, drag the Home screen onto the Home button.
Companies Button- Click on the label containing Screen Name.
- Change the Display Text to be,
Companies Data
. - From the screens toolbar click
Insert excerpt |
---|
| _screen |
---|
| _screen |
---|
nopanel | true |
---|
|
. - From the list that opens, drag the Companies List onto this button.
Orders Button- We need to add a new button that will allow us to access the orders.
- From the Palette → Navigation Menus section, drag a Button - Custom.
- Name,
Orders
. - Use the Layers pane to place the button to the right of the Companies Data button.
- From the screens toolbar click
Insert excerpt |
---|
| _screen |
---|
| _screen |
---|
nopanel | true |
---|
|
. - From the list that opens, drag the Invoicing screen onto this button.
Check Point
Your menu should look like this:
Additional Task
We can change the icons on the menu buttons using the techniques learnt in 15. Editing Content on Screen - Part 2