This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

TElToolBar: show actions' shortcuts in buttons' hints?

edited April 2013 in LMD ElPack

Hello!

TToolBar does show actions' shortcuts in its buttons' hints, TElToolBar does not?

 

-Dmitry

Comments

  • Thank you for this report. The issue is fixed now.
  • edited April 2013

    Thanks, Viktor! How can I get the update?

    -Dmitry

  • If you are SVN user with valid subscription: From SVN. If not - next service pack (which we release in almost monthly schedule).
  • I have an ElPack 2012 license and don't have SVN access, is it possible to get bugfixes or I must upgrade?
  • We can not issue out source files from later to earlier releases, because too much has changed.
    However you change issue yourself:

    Unit ElPopBtn.pas,
    search for
    procedure TCustomElGraphicButton.ActionChange(Sender : TObject; CheckDefaults : Boolean);
    and there the line
            Hint := TAction(Sender).Hint;

    Add below this line:
          if TAction(Sender).ShortCut > 0 then
            Hint := Hint + ' ('+ShortCutToText(TAction(Sender).ShortCut)+')';



  • It doesn't works properly in 2012.09, I get, for instance, a ' (F2)' hint instead of 'Create (F2)'.
  • This can only happen when Action does not define Hint. However - you have source - change it in any way you like.
  • Nice. Have you tested it in case Action has empty hint in desingtime and the hint is assigned in runtime?
  • Have you reproduced the issue?
  • Yes. The fix will be available shortly.
Sign In or Register to comment.