Guenter Becker Active Member Licensed User Longtime User May 11, 2026 #1 Hello, In my Projekt I used a MainForm Style UNDECORATED. In B4XMainPage I load a Layout with a yellow Background and the radius set to blue 20dip width 2dip nothing else on the layout. Running the programm I allways get this corner picture: As you see there is a white area outside the corner. I tried to get this transparent using CSS -fx-background-color: transparent to MainForm.RootPane. I'm using -fx-background-radius and -fx-border-radius in the layout and on the MainForm.RootPane StyleClasses. I try to use Style TRANSPARENT. But at the end it is still there. I do not know where it comes from. Does anyone have an idea how to kill this unwanted white space?
Hello, In my Projekt I used a MainForm Style UNDECORATED. In B4XMainPage I load a Layout with a yellow Background and the radius set to blue 20dip width 2dip nothing else on the layout. Running the programm I allways get this corner picture: As you see there is a white area outside the corner. I tried to get this transparent using CSS -fx-background-color: transparent to MainForm.RootPane. I'm using -fx-background-radius and -fx-border-radius in the layout and on the MainForm.RootPane StyleClasses. I try to use Style TRANSPARENT. But at the end it is still there. I do not know where it comes from. Does anyone have an idea how to kill this unwanted white space?
Guenter Becker Active Member Licensed User Longtime User May 11, 2026 #2 Please close post. I found my mistake. Upvote 0
teddybear Well-Known Member Licensed User May 11, 2026 #3 Guenter Becker said: Please close post. I found my mistake. Click to expand... You should post the solution instead of closing the thread Upvote 0
Guenter Becker said: Please close post. I found my mistake. Click to expand... You should post the solution instead of closing the thread
Guenter Becker Active Member Licensed User Longtime User May 11, 2026 #4 The solution is this [CODE lang="b4x" title="Put this after MainForm.Show"]'# set Mainform rounded corners and backcolor MainForm.RootPane.As(B4XView).Color = xui.Color_Transparent MainForm.BackColor = fx.Colors.Transparent[/CODE] Upvote 0
The solution is this [CODE lang="b4x" title="Put this after MainForm.Show"]'# set Mainform rounded corners and backcolor MainForm.RootPane.As(B4XView).Color = xui.Color_Transparent MainForm.BackColor = fx.Colors.Transparent[/CODE]