Customize Menubar

Is it possible, with Servoy, to customize the menubar of our solutions? I want to be able to create a totally new menubar with menu items that can activate any method in my solution.

I don’t want to use the current menubar in servoy and and some menu items inactive.

Is also possible to control a window’s widget, such as close, minimize, sizing, etc? So if I wanted to disable the close box on a certain window or form.

What kind of things would you change?
Youre methods can be added now to the menu (showInMenu)
And in the select menu you can override almost all the calls there with youre own methods.

What kind of menu’s would you remove? For example also the edit menu? (that wouldn’t be really wise…)

it is on the planning to support changing the menu bar (adding youre own menu or removing some onces)

the close box of the servoy screen can’t be disabled..
But what do you want? If a current form is showing you can’t exit?
That you should be able to do with the on solution close method (solution settings dialog) There you can test i am showing this form so the solution can’t be closed

jcompagner:
What kind of things would you change?

I would like to be able to add or take menu items to or from your menus or add or get ride or one of the menus.

jcompagner:
Youre methods can be added now to the menu (showInMenu)
And in the select menu you can override almost all the calls there with youre own methods.

This is good if I want to use one of your existing menus and use a custom method but this does not help on added new menus or menu items that you don’t have.

jcompagner:
What kind of menu’s would you remove?
For example also the edit menu? (that wouldn’t be really wise…)

For example:
I would like to use different menu bars for different forms, an order or customer form. Depending on the users access level the menu bar would change also.
Lets take the the file menu for an order form.

File
New Order...
-
Omit Record
Omit Multiple...
-
Void Order...
-
Find...
Show All
Sort by >
  Company
  ID
  Status
  Date
-
Page Setup...
Print...
Depending on the OS an exit or quit would be added to end of the file menu.

The edit menu is one of those menus I would keep but if I needed to add to it would be nice.

jcompagner:
it is on the planning to support changing the menu bar (adding youre own menu or removing some onces)

Nice to hear. Do you have a time frame? What priority does this type of feature have?

There is a great plug-in for Filemaker that I use called MenuControl. It allows me do anything to the Filemaker menubar. Maybe you can look at it to get a better understanding of what I am talking about. Here is the address link

Features like this just allow us developers to make our solutions more professional. We can cleanup our forms or layouts, not as many buttons on the screen, and move them to the menu bar.

jcompagner:
the close box of the servoy screen can’t be disabled..
But what do you want? If a current form is showing you can’t exit?
That you should be able to do with the on solution close method (solution settings dialog) There you can test i am showing this form so the solution can’t be closed

I will look in to this, but some times I would like to remove or disable the the close, minimize, or maximize buttons for certain forms.

Thanks

I would like to be able to add or take menu items to or from your menus or add or get ride or one of the menus.

This feature is on the planning

jcompagner:
the close box of the servoy screen can’t be disabled..
But what do you want? If a current form is showing you can’t exit?
That you should be able to do with the on solution close method (solution settings dialog) There you can test i am showing this form so the solution can’t be closed

I will look in to this, but some times I would like to remove or disable the the close, minimize, or maximize buttons for certain forms.

Thanks[/quote]

I have a real problem with the close box on the Servoy screen. Naively I assumed I could close a solution by using that box and stay within Servoy. Instead it quit Servoy. That’s the kind of action end users can take.

I’d like the ability to control the user’s experience as much as possible. In FileMaker Pro I disable every command possible so as to keep users out of trouble. In Servoy I’d much prefer to add or remove menus and commands within menus according to the context of the current form. AND prevent a user from naively shutting down by simply closing a window. The idea is to keep end users from getting into trouble.

in all applications that button means close window.
So why should that suddenly change?? It is expected behaviour.

buf after 2.0RC12 you can do this in a closeMethod of a solution:

application.closeSolution();
return false;

this way you close the solution but you are disabling the close of the servoy app itself. You can’t do this in RC12!!

This “feature” has one disadvantage, now if you doe application.closeSolution() the closeMethod of a solution will NOT be called.

Hello,

To follow up on this thread, I wanted to check my understanding of which client menu items are controllable via Methods at this point (R2 2.1.2). Please let me know if I’ve missed anything.

Menu Items controlable via Methods:

File

  • Open Solution (solution onClose)
  • Close (solution onClose, form onHide)

Select

  • Find (form onFind)
  • Show All (form onShowAllRecordsCmd)
  • Save Record (form onSaveRecord)
  • New Record (form onNewRecordCmd)
  • Delete Record (form onDeleteRecordCmd)
  • Delete All (form onDeleteAllRecordsCmd)
  • Omit Record (form onOmitRecordCmd)
  • Show Omitted Records (form onShowOmitted)
  • Sort (form onSort)

Client Menu Items NOT controlable via Methods

Servoy Client

  • Preferences

File

  • Page Setup
  • Print
  • Import
  • Export
  • Logout
  • Exit

Edit

  • Undo
  • Redo
  • Cut
  • Copy
  • Paste
  • Select All
  • Preferences

View

  • View as Record
  • View as List
  • Toolbars

Select

  • Search
  • Reduce Search
  • Extend Search
  • Duplicate Record
  • Invert Records
  • Previous Record
  • Next Record
  • Relookup

The ability to control (add, remove, attach method) to all menu items would be a great feature!

Thank you

in 2.2 you can also control next/prev record actions.

I’m about to release a plugin that will allow you full control over the MenuBar and all it’s menus.

Planning is to release this week (or early next week latest) an Rc.

Paul

Great news, thank you for the update

Check out: http://forum.servoy.com/viewtopic.php?t=3680&highlight=

for the plugin to customize your menus

Paul

Just wondering if the custom menubar is still in the pipeline and if there is is a known timeframe.
FYI even FMP ‘announced’ this feature for there new release.
I just had a look at RealBasic : click icon in navigator, custom menubar shows up, change the properties: menu’s and methods.
Would be very nice to have this in Servoy!
BTW, I know you can buy a plugin, but I realy think this should be part of Servoy itself.

Regards,

Ron

Any update on this?

You can have a look here Servoy Components – Plugins, Beans, Web Components, Angular Services & Servoy Developer Consulting

Gives you everything you would want (I guess) and a little more…