B4J Question Probem customizing MainForm Style

Guenter Becker

Active Member
Licensed User
Longtime User
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
Please close post. I found my mistake.
 
Upvote 0

Guenter Becker

Active Member
Licensed User
Longtime User
The solution is this
Put this after MainForm.Show:
'# set Mainform rounded corners and backcolor
    MainForm.RootPane.As(B4XView).Color = xui.Color_Transparent
    MainForm.BackColor = fx.Colors.Transparent
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…