Jump to content

Remove Form Border


shawdown

Recommended Posts

19 minutes ago, shawdown said:

Okay. Now I know it's not a border.
So what is it?

How can I remove it?

procedure TfrmBorder.UniFormShow(Sender: TObject);
  function ColorToHex(Color : TColor) : string;
  begin
    Result := '#' +
    IntToHex(GetRValue(Color), 2) +
    IntToHex(GetGValue(Color), 2) +
    IntToHex(GetBValue(Color), 2) ;
  end;
var
  tmpColor: TColor;
begin
  tmpColor := Self.Color;
  if tmpColor = -1 then
    tmpColor := RGB(240,240,240);

  UniSession.AddJS(Self.WebForm.JSName + '.el.setStyle("background-color","' + ColorToHex(tmpColor) + '");');
end;

 

Link to comment
Share on other sites

14 hours ago, Sherzod said:

procedure TfrmBorder.UniFormShow(Sender: TObject);
  function ColorToHex(Color : TColor) : string;
  begin
    Result := '#' +
    IntToHex(GetRValue(Color), 2) +
    IntToHex(GetGValue(Color), 2) +
    IntToHex(GetBValue(Color), 2) ;
  end;
var
  tmpColor: TColor;
begin
  tmpColor := Self.Color;
  if tmpColor = -1 then
    tmpColor := RGB(240,240,240);

  UniSession.AddJS(Self.WebForm.JSName + '.el.setStyle("background-color","' + ColorToHex(tmpColor) + '");');
end;

 

Using the given code decreases the size of the border / shadow but I still do not have the expected result see image below.

borda_resultado.jpg.008281d9ae20cbd393e4028d5bba5733.jpg

 

Using a "nonexistent class" in beforeInit I have a result that solves my problem.
But I'm afraid I'll have future trouble.

function window.beforeInit(sender, config)
{
    config.baseCls = 'class_nonexistent';
}

borda_com_beforeinit.jpg.3592ad1955709287c404476f1f305419.jpg

 

 

Link to comment
Share on other sites

I currently use a TUniFrame to display my Menu.
For this frame to be over all items it is necessary to use the "z-index" but Farshad Mohajeri warned me about possible conflicts with ext.js architecture.


For this reason I'm abandoning using the z-index and putting my menu in a TUniForm.

Since then, thank you very much for your attention.

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