Hello Daniel,
it works perfect now.
With a second Vtitle, I can paint a Border ( like with my old Solution ).
The Screenshot shows the Reason, because using a vertical Gradient.
Creating vertical Buttonbars, it looks much better.
Maybe still Tooltips for the Buttons ( next FWH-Release ) ?
Border-Drawing with a second VTitle :
Vtitle-Border :
- Code: Select all Expand view
nSCR0 := GetSysMetrics(0) // Screen-Width
nSCR17 := GetSysMetrics(17) // Screen-Hight - Title-Height
//Title 4 Vertical ( Right )
// Top, Left - Width / Height
@ 0, nSCR0 - 80 TITLE oTitle4 size 80, nSCR17 of oWnd SHADOW NONE SHADOWSIZE 10 TOPRIGHT
// Border
@ 0, nSCR0 - 95 TITLE oTitle3 size 15, nSCR17 of oWnd SHADOW NONE SHADOWSIZE 10 TOPRIGHT
...
...
oTitle4:lRound := .F.
oTitle4:aGrdBack = { { 0.5, 15851661, 16708826 },{ 0.5, 16708826, 15851661 } }
// Border
oTitle3:lRound := .F.
oTitle3:aGrdBack = { { 0.5, 15851661, 128 },{ 0.5, 128, 15851661 } }
I noticed with :
@ 0, nSCR0 - 80 TITLE oTitle4 size 80, nSCR17 of oWnd SHADOW
NONE SHADOWSIZE 10 TOPRIGHT
The Function : GradientBrush( hDC, nTop, nLeft, nWidth, nHeight, aColors ) is not used.
To get a Vertical Gradient, I used :
@ 0, nSCR0 - 80 TITLE oTitle4 size 80, nSCR17 of oWnd SHADOW BOTTOMLEFT SHADOWSIZE
1 TOPRIGHT
to set : GradientFill( hDC, nTop, nLeft, nHeight, nWidth, aColors,
.F. )
Best Regards
Uwe