Jump to content

TUniEdit with css problem


Freeman35

Recommended Posts

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

post-4508-0-18027200-1499163033_thumb.png

Link to comment
Share on other sites

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

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...