Jump to content

Recommended Posts

Posted

unimEditborder.jpg

my css code: 

.EDT_login{
  border-style: none none groove none;
  border-width: 1px;
  border-color: #3EC4ED;  
  #box-shadow: 0px 1px 3px #BEE2F9;
  background-image: none;  
}

Posted

set EDT_login to unimEdit1.LayoutConfig.Cls property

put your css code in file program.exe\files\css\custommob.css

and then load css-file in mainmodule:

 

procedure TUniMainModule.LoadScriptCSS;
begin
  if upMobile in UniMainModule.UniPlatforms then
    UniSession.AddJS('Ext.Loader.loadScript("/files/css/custommob.css")');


//if upDesktop in UniMainModule.UniPlatforms then
//    UniSession.AddJS('Ext.Loader.loadScript("/files/css/custom.css")');
end;


// BeforeLogin or in MainModuleCreate
procedure TUniMainModule.UniGUIMainModuleBeforeLogin(Sender: TObject; var Handled: Boolean);
begin
  LoadScriptCSS;
...
...
end;

 

Posted
On 10/13/2020 at 4:14 PM, x11 said:

set EDT_login to unimEdit1.LayoutConfig.Cls property

put your css code in file program.exe\files\css\custommob.css

and then load css-file in mainmodule:

 


procedure TUniMainModule.LoadScriptCSS;
begin
  if upMobile in UniMainModule.UniPlatforms then
    UniSession.AddJS('Ext.Loader.loadScript("/files/css/custommob.css")');


//if upDesktop in UniMainModule.UniPlatforms then
//    UniSession.AddJS('Ext.Loader.loadScript("/files/css/custom.css")');
end;


// BeforeLogin or in MainModuleCreate
procedure TUniMainModule.UniGUIMainModuleBeforeLogin(Sender: TObject; var Handled: Boolean);
begin
  LoadScriptCSS;
...
...
end;

 

My code is error;

The unimEdit's border is still exist;

Could you tell me How to Remove the Left、Top and Right border?

 

×
×
  • Create New...