Menu

#109 Add a keyboard shortcut for QuickEdit

None
pending
None
5
2020-04-26
2020-04-21
No

Currently there is no keyboard shortcut for the IDE's standard Quickeedit feature (in the context menu of a component). It shouldn't be too difficult to add one in GExperts, since Embarcadero seems to view that as too unimportant to add it.

Discussion

  • Thomas Mueller

    Thomas Mueller - 2020-04-26
    • status: open --> pending
    • assigned_to: Thomas Mueller
    • Group: -->
     
  • Thomas Mueller

    Thomas Mueller - 2020-04-26

    It's not that simple after all:

    The GExperts entries for this menu get created through the OTAPI interface ISelectionEditor in GX_DesignerMenu which does not allow direct access to the native VCL class it creates so that was a dead end.

    The menu item is in two separate popup menus, one in the designer and the other in the structure panel.

    I found the menu item for the structure panel and was able to kind of create a shortcut for it (by adding my own menu item and calling the QuickEdit.Click method).

    I was unable to find the menu item for the designer. There is a popup menu in a dynamically created TFormEditorContainerForm form with no name, but apparently it is not the one that gets used in the designer: I tried to set its OnPopup and OnChange events but the corresponding event handlers never got called.

    Now I am out ideas.

    Just in case I want to revisit this: The parent of this form is EditorFormDesigner whose parent again is (through several panels) EditWindow_0. (EditorFormDesigner is not listed in Screen.Forms, only as a control on EditWindow_0). I found no PopupMenu that matched the one I see in the designer.

     

Log in to post a comment.