Menu

#69 Components To Code Skips TPopUpMenu.Hint Property

Closed
closed-fixed
nobody
None
5
2018-03-10
2018-03-09
Erik Berry
No

In BDS 2006 GExperts 1.37 the expert "Components To Code" with a TPopUpMenu does not export the hint properties.

Bug Details:
The bug is reproducible 100% of the time

Steps:
1. Start Borland Developer Studio 2006 from the start menu
2. The default (empty) project is open
3. in the designe mark a tPopUpMenu component
4. in the gexpert menu select "Component to code"
5. insert the clipboar to an empty editor
6. search for "hint"

Configuration:
OS: Windows XP 5.1 (Build 2600: Service Pack 3)
GExperts: GExpertsBDS2006.dll 1.3.7.0 from 13.04.2014 17:00:44
IDE: ideBDS2006
ComCtl32: 5.82.2900.6028

Note from Erik: This is an older GExperts version and I did not try to repliacate the issue with the most recent release in BDS 2006.

Discussion

  • Achim Kalwa

    Achim Kalwa - 2018-03-10

    I've tried to reproduce with current GExperts code (v1.3.9.51) on both Delphi 2007 (oldest version available here) and Delphi 10.2.2: Works as expected; the "Hint" properties of popup menu items are copied to the clipboard:

      PopupMenu1 := TPopupMenu.Create(Self);
      mi1 := TMenuItem.Create(Self);
      mi2 := TMenuItem.Create(Self);
      mi3 := TMenuItem.Create(Self);
    
      PopupMenu1.Name := 'PopupMenu1';
      mi1.Name := 'mi1';
      mi1.Caption := '1';
      mi1.Hint := 'One';
    
      mi2.Name := 'mi2';
      mi2.Caption := '2';
      mi2.Hint := 'Two';
    
      mi3.Name := 'mi3';
      mi3.Caption := '3';
      mi3.Hint := 'Three';
    
     
  • Erik Berry

    Erik Berry - 2018-03-10
    • status: open --> closed-fixed
    • Group: New --> Closed
     
  • Erik Berry

    Erik Berry - 2018-03-10

    Marking fixed, since Achim verified this works in the latest code. I have a vague memory we added code to handle menu items better a few years ago.

     

Log in to post a comment.