shawdown Posted February 24, 2019 Share Posted February 24, 2019 Hello, how can I remove the border from a form. I am using the uniGUI_1.70.0.1486 version. http://192.99.198.144:8010/ FormBorder.zip Quote Link to comment Share on other sites More sharing options...
shawdown Posted February 27, 2019 Author Share Posted February 27, 2019 Any suggestion? The options I found on the forum did not work. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 27, 2019 Share Posted February 27, 2019 2 minutes ago, shawdown said: The options I found on the forum did not work. Because it is not a border Quote Link to comment Share on other sites More sharing options...
shawdown Posted February 27, 2019 Author Share Posted February 27, 2019 Okay. Now I know it's not a border. So what is it? How can I remove it? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 27, 2019 Share Posted February 27, 2019 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; Quote Link to comment Share on other sites More sharing options...
shawdown Posted February 28, 2019 Author Share Posted February 28, 2019 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. 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'; } Quote Link to comment Share on other sites More sharing options...
shawdown Posted February 28, 2019 Author Share Posted February 28, 2019 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. 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.