Reputation: 1004
When I add a TDBNavigator to my project, and mark the option FLAT = TRUE, immediately the background colour of my TDBNavigator changes to black, totally losing its characteristic.
When I run the application, TDBNavigator is as shown in the picture, black.
How to solve this problem?
I am using the c++ builder 10.3.3
Upvotes: 2
Views: 543
Reputation: 11
With 10.4.1 and clang compile a runtime TDBNavigator icon background is black. I opened an issue https://quality.embarcadero.com/browse/RSP-31245
Upvotes: 1
Reputation: 1004
I got an alternative. It seems to me a problem with the transparency of these components.
When I insert a TPanel in the toolbar, the same problem occurs. But in TPanel, I have a ParentBackGround property. When I mark it as false, the background of the TPanel becomes transparent again.
So I used the following alternative.
1 - Insert a TPanel into the toolbar
2 - Place the ParentBackground TPanel property = false
3 - Move TDBNavigator into the TPanel
4 - Change the TPanel properties:
a) BevelEdger = false (all) b) Autosize = true c) BorderStyle = bsNONE d) BevelInner = bsNONE e) BevelKInd = bsNONE f) BevelOuter = bsNONE g) Delete CAPTION from panel
5 - Change FLAT property of TDBNavigator to TRUE;
That's how it worked.
Upvotes: 2