Border around a tpanel appearing out of the blue lazarus / 31-LCL ---------------------------------------------------------------------- phoenix27 · 2023-08-25 04:45 I have a video player controls(let's call it playerCtrls) which is just a TPanel with a seek bar on it(another TPanel) and a bunch of buttons. When i go full screen i just change the parent of playerCtrls to the new form and all works well. The problem arises when i switch back to the inline player and i change back the parent of playerCtrls to its original parent. White borders appear around the panel(see the image). I tried this code Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   playerCtrls.BorderStyle:=bsNone;  playerCtrls.BorderWidth:=0;  playerCtrls.BevelOuter := bvNone;  playerCtrls.BevelInner := bvNone;  but it doesn't work at all. It's really frustrating. What could be the problem? ---------------------------------------------------------------------- KodeZwerg · 2023-08-25 07:11 Can you attach a minimalistic demo that show this behaviour? ---------------------------------------------------------------------- Dzandaa · 2023-08-25 07:51 Hi, Do you use anchors on the tpanel? B-> ---------------------------------------------------------------------- phoenix27 · 2023-08-25 11:27 Dzandaa I create the TPanel at runtime. I tried to set the anchors to an empty set but the problem is still there. KodeZwerg  i was trying to do just that, I created a little project(attached), not exactly the same but similar and the problem is not there. It only happens in my app. ---------------------------------------------------------------------- phoenix27 · 2023-08-25 11:34 In order to understand what's going on i did this, when switching back from fullscreen i hided the playerCtrls and see the image!!! Only the borders appear!! At this point i do not know if it's the borders of the controls or some other control's borders. If it was the player controls borders it would disappear, right? Instead it doesn't! The other 2 panels are the video display, where i attach the vlc player and the outer panel that contains both the display and the player controls. Mahh. You know, i have this problem since months ago and i ignored for a while but i cannot stand to see those lines! ---------------------------------------------------------------------- phoenix27 · 2023-08-25 11:52 OMG i succeeededddd!!!!!! As i said in another post, talking to you people, posting the problems i have helps me to better understand the issues i have( i hope i don't bother you so much)!! What did i say in the previous post? That maybe it's not the players controls and that i have 2 other panels. So i just discovered it's the outer panel!!! I set its BevelOuter property to bvNone and voilaaaaaaa, les jeux son faits!! This forum is my teddy bear ))