G grafsoft Well-Known Member Licensed User Longtime User Oct 30, 2022 #1 The designer says the header color should be white, but it is dark gray. Being as it is, the user only sees the light gray symbols in the header, which have no function here, and not the dark gray ones, unless he/she looks very closely. How can I change that?
The designer says the header color should be white, but it is dark gray. Being as it is, the user only sees the light gray symbols in the header, which have no function here, and not the dark gray ones, unless he/she looks very closely. How can I change that?
Solution M M Mahares Oct 30, 2022 grafsoft said: Where should I put this code? Click to expand... Put these 2 lines after you load the layout that has the B4XTable. That is the only place you need it.it would work: B4X: Sleep(0) 'Very important for this line to be here below loadlayout. B4XTable1.pnlHeader.Color = xui.Color_Red
grafsoft said: Where should I put this code? Click to expand... Put these 2 lines after you load the layout that has the B4XTable. That is the only place you need it.it would work: B4X: Sleep(0) 'Very important for this line to be here below loadlayout. B4XTable1.pnlHeader.Color = xui.Color_Red
Erel B4X founder Staff member Licensed User Longtime User Oct 30, 2022 #2 The designer header color sets the background of the column headers. You can change the color of the top panel with: B4X: Sleep(0) 'this is required to let B4XTable load its layout. B4XTable1.pnlHeader.Color = B4XTable1.HeaderColor 'or any other value /code] Upvote 0
The designer header color sets the background of the column headers. You can change the color of the top panel with: B4X: Sleep(0) 'this is required to let B4XTable load its layout. B4XTable1.pnlHeader.Color = B4XTable1.HeaderColor 'or any other value /code]
G grafsoft Well-Known Member Licensed User Longtime User Oct 30, 2022 #3 Erel said: Sleep(0) 'this is required to let B4XTable load its layout. B4XTable1.pnlHeader.Color = B4XTable1.HeaderColor 'or any other value Click to expand... Where should I put this code? I tried directly after LoadLayout and after SetData, with a Refresh afterwards. No result. Upvote 0
Erel said: Sleep(0) 'this is required to let B4XTable load its layout. B4XTable1.pnlHeader.Color = B4XTable1.HeaderColor 'or any other value Click to expand... Where should I put this code? I tried directly after LoadLayout and after SetData, with a Refresh afterwards. No result.
M Mahares Expert Licensed User Longtime User Oct 30, 2022 #4 grafsoft said: Where should I put this code? Click to expand... Put these 2 lines after you load the layout that has the B4XTable. That is the only place you need it.it would work: B4X: Sleep(0) 'Very important for this line to be here below loadlayout. B4XTable1.pnlHeader.Color = xui.Color_Red Upvote 0 Solution
grafsoft said: Where should I put this code? Click to expand... Put these 2 lines after you load the layout that has the B4XTable. That is the only place you need it.it would work: B4X: Sleep(0) 'Very important for this line to be here below loadlayout. B4XTable1.pnlHeader.Color = xui.Color_Red
G grafsoft Well-Known Member Licensed User Longtime User Oct 30, 2022 #5 Thank you!Erel was right from the start, I made a stupid mistake ... Last edited: Oct 30, 2022 Upvote 0