blog
HOME · CREATIVE · WEB · TECH · BLOG

Friday, October 10th, 2008

Menu Management in 4D v11

[These are notes from 4D Summit 2008]

Presenter: Achim Peschke, 4D Germany

Compatibility Issues

The "old edit menu" / "v6.8 compatibility" option is gone. 4D will automatically insert an Edit menu if you haven't already created one. There will be an alert telling you that it was created. If you're using menu numbers it changes the numbering and you can have problems (the new edit menu becomes #2 and all higher ones are incremented by one).

If you have old "mode" menus going to "user" takes you to design with data windows in front, going to "design" goes to design with data window in back and design in front. When running compiling, design mode is like the old user mode.

Don't think in terms of "linked menus" any more. Menu bars and menus are independent and you include any menu in as many menu bars (or other menus) that you choose.

You can reference a menu bar by number (old way), name, or reference ID - SET MENU BAR(1) or SET MENU BAR("My Menu Bar") or SET MENU BAR($MenBarRef) where $MenBarRef is a string reference ID. You can reference menus by numbers (old way), or reference ID.

There are now new commands Get selected menu item reference and SET MENU ITEM REFERENCE.

Recommends forgetting everything you know about menus and assign menus programmatically. Then think of menus as list of items arranged vertically and a menu bar as a list of items arranged horizontally. The menu bar can be a menu - it has the same status... This means you can have data driven menus...

v11.2 hf3 lets you change your menu bar in the starup method.

You don't have to assign the menu in the form editor if the menu is completely created with programming, but you do if it's created in the menu editor or mixed.

The new dynamic popup menu uses menus created completely by programming.

Tags: ,
Categories: 4D

Next Post: Unicode and 4D v11 »

Leave a Reply

HOME · CREATIVE · WEB · TECH · BLOG