Jump to content

цвет фона выбранной кнопки в UniToolBar


Serg

Recommended Posts

К примеру, можете попробовать эту конфигурацию:

 

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;
}
Link to comment
Share on other sites

Но 

 

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;
}
 
Не работают. В чем моя ошибка?
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...