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 hint for Actions

Hi.

I change 'Hint' property of my Actions in runtime (localize my application) but hints of toolbar's buttons are stil the same (English) language. 
TActionToolbar works fine.


image  image

Comments

  • You don't provide any hint how (and especially when) localization is done.
    I tried a simple test app (change hint of an action after click on a button) and everything works fine - so please send most simple test project to support mail address (rename zip files, so that they get not blocked).

  • Hi.

    I use i18n package for localization: http://www.delphiarea.com/products/delphi-packages/i18n/ . 
    I think the problem is in TElToolButton because any other controls works fine. To demonstrate it I place TElPopupButton on the TElToolbar - it translated fine: http://take.ms/tyyGB
  • Hi.

    Some another video: http://take.ms/oMJ3e
  • Hi.

    OK. I just get round it:

    for i := 0 to frmMain.ComponentCount - 1 do
        begin
          if (frmMain.Components[i] is TElToolButton) and Assigned((frmMain.Components[i] as TElToolButton).Action)
          then
            (frmMain.Components[i] as TElToolButton).Hint :=
              ((frmMain.Components[i] as TElToolButton).Action as TAction).Hint;
        end;
  • Thanks for feedback!
Sign In or Register to comment.