Announcement

Collapse
No announcement yet.

Probleme mit TForm.WindowMenu

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Probleme mit TForm.WindowMenu

    Hallo!
    Zur Entwurfszeit weise ich TForm.WindowMenu ein (Haupt-)Menü zu.
    Werden zur Laufzeit einige Childs geöffnet und öffnet man dann das WindowMenu (Fenster), ist dieses leer!!!
    Erst jetzt wird das WindowMenu aktualisiert.
    evtl. Wichtig:
    - Hauptfenster ist vererbt (Zuweisung bereits im Vorgänger)
    - Im WindowMenu sind bereits Einträge die teilweise über Actions
    ausgeblendet werden
    - Das WindowMenu ist nicht das letzte Hauptmenü
    - Child-Fenster werden wie folgt erzeugt:
    with TfrmTest.Create(Application.MainForm) do
    begin
    ...
    end;

  • #2
    Hallo,

    Borland hat am 06.12.99 eine Tech Alert-eMail zu diesem Thema verschickt:

    <i>
    I. Current Tech Alerts (2) <br>
    ================================================= <br>
    Product: Delphi<br>
    Version: 5.0<br>
    Description: Issue with "Window" menu in MDI app.<br>

    Problem:

    In an MDI application, the list of MDI Children which normally appears at the bottom of the 'Window' menu disappears when a ManuItem caption is changed (either a font or text change). The list reappears when another MDIChild form is created.

    Steps to Reproduce:

    Create a new MDI Application.<br>
    Add a button which changes the caption of one of the Menu Items under the Windows menu, i.e. WindowMinimizeItem.Caption := 'Bananza';<br>
    Run the app and add a child form or two.<br>
    Click on the "Window" menu and notice the child windows are listed at the bottom.<br>
    Click the button.<br>
    Now click on the "Window" menu and notice the MDI Child forms are not listed.<br>
    Add another child. Now the list is back.<br>

    Workaround:<br>
    Maintain the menu manually. In the OnClick event of the Window menu repopulate the menu with items for each MDI Child.

    Some people have also had success by setting the form's AutoHotkeys and AutoLineReduction to Manual for the main and children.
    </i&gt

    Comment


    • #3
      Komme mit dieser Info leider nicht weiter

      Comment


      • #4
        Hallo,

        Sie dürfen in dem Menü von WindowMenu keinen Trennstrich haben.

        Gruss M

        Comment

        Working...
        X