Freeman35 Posted July 4, 2017 Share Posted July 4, 2017 hello, This is my css. .EDT_login { border-style: none none groove none; border-width: 1px; border-color: 3EC4ED; } I added UniEdit's UniEvents: function beforeInit(sender, config) { sender.inputCls='EDT_login'; } On screenshot, you can see borders hided, without bottoms. And I wrote OnEnter and OnExit Event for change background color. procedure TFRM_Login.EDTs_Enter(Sender: TObject); begin TUniEdit(Sender).Color:= clInfoBk; end; procedure TFRM_Login.EDTs_Exit(Sender: TObject); begin TUniEdit(Sender).Color:= clWindow; end; All of them okey. Problem is: First and last Edits are focused and unfocused. I mean OnEnter and OnExit event triggred. 2. and 3. not You can see top shadows border on 2. and 3. edits. after enter and/or exit thats remove. MY css is work clearly. but on first show, top shadows border painting. Is this bug? or what is problem? Regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 4, 2017 Share Posted July 4, 2017 Hi, Can you make a testcase for this please ?! Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted July 4, 2017 Author Share Posted July 4, 2017 I added. Thank you. Project1.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 6, 2017 Share Posted July 6, 2017 Hi, Maybe like this ?!: .EDT_login { border-style: none none groove none; border-width: 1px; border-color: #3EC4ED; box-shadow: 0px 1px 3px #BEE2F9; background-image: none; } Best regards, Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted July 6, 2017 Author Share Posted July 6, 2017 Not maybe, exactly .EDT_login { border-style: none none groove none; border-width: 1px; border-color: #3EC4ED; #box-shadow: 0px 1px 3px #BEE2F9; background-image: none; } If add box-shadow style ofcourse paint box. I don't want it so remark it, so, now just bottom-border painting. thank you 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.