Announcement

Collapse
No announcement yet.

Problem beim Programmstart vom ActionManager

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

  • Problem beim Programmstart vom ActionManager

    Hallo,

    ich habe meine Anwendung auf den ActionManager und TActionMainMenuBar sowie TActionToolBar umgestellt. Wenn ich nun zur Laufzeit mittels TCustomizeDlg die Bars verändere und das Programm schließe, kommt beim nächsten Neustart des Programms eine Exception, dass die Datei, wo die Settings gespeichert sind, fehlerhaft sei.
    Nach zig Exceptions ist dann mein Menü leer und alle Buttons verschwunden.

    Kennt jemand das Problem? Ist das ein Bug von meiner Seite oder von Borland? Schließlich treten alle Exceptions in der ActnMan.pas auf ...

    Die erste Exception hat die komische Meldung "Klasse TAction nicht gefunden!", alle weiteren sind Zugriffsverletzung, wahrscheinlich als Folge der ersten ...

    Vielen Dank!!

    Ciao

    Benjamin Heil

  • #2
    Hallo,

    welche der "inoffiziellen" Patches für den ActionManager wurden bereits eingespielt? Es sollte mindestens <b>19151_delphi_7.0_actionbands_patch_all_language s_.zip</b> (siehe Code Central) auf dem Rechner sein.

    Patch-Beschreibung:

    <pre>

    ID: 19151 Title: Delphi 7.0 ActionBands Patch (all languages)
    Terms: No Special Terms
    Name: Steve Trefethen email: Anonymous
    URL: http://www.geocities.com/delphihelp
    Summary: Unofficial (read unsupported) update of ActionBands feature of Delphi 7.0.
    Effects both end user applications and the Delphi IDE since it uses ActionBand menus.

    Description: This is an unofficial (read unsupported) update of the ActionBands feature of Delphi 7.0 that addresses the items listed below.
    This patch will effect both end user applications that use ActionBands as well as the Delphi IDE itself since the menus in the IDE are ActionBand menus.

    This update also includes a ActionBand popup menu component not release with the shipping version of Delphi 7.0.

    - Standard menu color scheme now correctly handles the flat menu style (see SPI_GETFLATMENU in MSDN).

    - Fixed an issue regarding auto hotkey calculation.

    - Fixed transparent painting problem for actionbands with background bitmaps.

    - Fix an issue where the application hint wasn't being updated correctly.

    - Fixed issues with TActionMainMenuBar not functioning correctly in MDI applications.

    - Fixed issue with setting ActionBand popup menu colors correctly.

    - Fixed F1 help on ActionBand menus.

    - Fixed issue regarding ActionBand menus no longer respond to Ctrl-key combinations.

    - Fixed problems related to positioning menus with Ctrl-arrow key combinations.

    - Fixed menu items so they can be selected with the right mouse button.

    - Fix to allow arrow keys to function within a menu even if the Alt key held down pressed.

    - Fixed popup menu shadows not appearing on Windows 2000.

    - Fixed Customize dialog to show actions from linked ActionLists correctly.

    - Fixed TActionManager.AddSeparator method so separators get added correctly.

    - Fixed a bug so that a submenus parent item is reselected if the mouse leaves the parent item but passes over the submenu before it closes.

    - Improved the drawing of the XP style menu buttons.

    - Fixed bug in Standard style menu button paint logic.

    - Fixed problems with TCustomizeActionBars action so that it will work even when it is not in a TActionManager but it's ActionManager property is assigned.

    - Fixed drawing problems with dropdown buttons on TActionToolbar for both XP and Standard styles

    - Fixed AV dragging a category over a menu item and then over a TActionToolBar


    Product: Delphi (7-7) Fixes
    Contest: None
    Uploaded: 01-Nov-02 10:03:59 AM last updated 09-Jan-03 6:33:42 PM
    Tools CD: No
    Copyright: All rights reserved
    Size: 657.6K List Files (1091 downloads)

    Comments: 2

    BUGS:

    TActionMainMenuBar
    ------------------
    # Shortcuts do not work (any of them)!!
    # PersistentHotkeys true|false is the same... they are (somehow) reseting to false (!)
    # (In unofficial Patch [http://homepages.borland.com/strefethen] the TCustomMDIMenuButton are not updating correctly (and are esthetically awful)
    # In unofficial Patch [http://homepages.borland.com/strefethen] the TCustomMDIMenuButton minimize button closes the MDI Child form

    </pre&gt

    Comment


    • #3
      Genau diesen Patch hab ich drauf, und er hat auch schon etliche kleinere Bugs entfernt. Bis auf diesen Bug mit der Customize-Funktionalität läuft das alles perfekt

      Comment


      • #4
        Ich hab das Problem endlich lösen können. In einer FAQ von Borland bzw. einem Mitarbeiter (http://homepages.borland.com/strefethen/info/ABFAQ.htm) steht, dass man Actions aus dem CustomizeDlg ausblenden kann, wenn man das ActionList-Property der entsprechenden Action im OnShow/OnClose des CustimizeDlg auf Nil bzw. wieder zurücksetzt.
        Dies funktioniert auch wunderbar, aber als Folge tritt dann oben beschriebener Bug auf

        Comment

        Working...
        X