Focus behavior of components

Hi, I started studying juce and now trying to understand how the focus behavior works. The understanding disappeared when I tried to redefine void focusGained in my slider. This function is just not called. Adding SetFocusContainerType(focus Container) to the PluginEditors constructor didn’t help.
Also I can’t understand why FocusOutline is not drawn (when I call setHasFocusOutline(true)) for any components other than buttons (they work fine).