Serg Posted August 24, 2018 Share Posted August 24, 2018 Не получается сменить цвет фона выбранной кнопки в UniToolBar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 24, 2018 Share Posted August 24, 2018 Вы имеете в виду цвет фона при наведении на кнопку ? Quote Link to comment Share on other sites More sharing options...
Serg Posted August 24, 2018 Author Share Posted August 24, 2018 да Quote Link to comment Share on other sites More sharing options...
Serg Posted August 24, 2018 Author Share Posted August 24, 2018 в UniToolBar Quote Link to comment Share on other sites More sharing options...
Serg Posted August 24, 2018 Author Share Posted August 24, 2018 Допустим вместо голубого прямоугольника просто оранжевое подчеркивание. Спасибо! Quote Link to comment Share on other sites More sharing options...
Serg Posted August 24, 2018 Author Share Posted August 24, 2018 Если это вас не затруднит) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 24, 2018 Share Posted August 24, 2018 К примеру, можете попробовать эту конфигурацию: 1. MainForm -> OnReady event: procedure TMainForm.UniFormReady(Sender: TObject); begin UniToolButton1.JSInterface.JSConfig('overCls', ['customOverCls']); end; 2. UniServerModule -> CustomCSS: .customOverCls { border-bottom: orange solid 2px; } Quote Link to comment Share on other sites More sharing options...
Serg Posted August 24, 2018 Author Share Posted August 24, 2018 Большое спасибо! После этого и другой способ заработал) Quote Link to comment Share on other sites More sharing options...
Serg Posted August 24, 2018 Author Share Posted August 24, 2018 Но http://forums.unigui.com/index.php?/topic/9608-how-to-create-such-a-button/?hl=overcls&do=findComment&comment=49875 UniToolButton1.JSInterface.JSConfig('focusCls', ['customFocusCls']); UniToolButton1.JSInterface.JSConfig('pressedCls', ['customPressedCls']); .customFocusCls { border-bottom: blue solid 2px; background-color: white; } .customPressedCls { border-bottom: green solid 2px; background-color: white; } Не работают. В чем моя ошибка? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.