This is strange. I get the same result with 257 and 260.It did this. The results are different:
I will need to look closer at your code to see why it is not painting the RED correctly.
This is strange. I get the same result with 257 and 260.It did this. The results are different:
It's not only that (the colors in the samples are not very good). The rounded box around (grey) is missing, everything should have rounded corners (besides lower left, basing on an error in Xbase++ up to 1.9 SL1, where rounded boxes sometimes do have a not-rounded corner at the lower left side). Seems like clipping does not work. Did you add some GraPathClip stuff somewhere?I will need to look closer at your code to see why it is not painting the RED correctly.
Code: Select all
GraPathBegin( oPS )
GraBox( oPS, {4,2}, {::CurrentSize()[1]-4,::CurrentSize()[2]-2} )
GraPathEnd( oPS )
GraPathClip( oPS, .T. )
I don't know why I did it either but I don't want to change it.I don't know why you did this.
Code: Select all
CLASS BoxWithGradientBackGroundCentered FROM DC_XbpStatic
INLINE METHOD Init(a,b,c,d,e,f,g,h)
::DC_XbpStatic:init(a,b,c,d,e,f,g,h)
::DrawMode := XBP_DRAW_OWNERADVANCED
::Draw := {|o,a|BoxWithGradientBackGroundDraw(o,a,::DC_XbpStatic,.T.)}
::ownerDrawBlock := {||nil} <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
RETURN self
ENDCLASS
Yes. As I wrote some messages earlier - I removed this code since it even effected statics using the FORMATTED option (what this code was made for, as I guess). I re-removed it in build 260, everything is fine now.I suspect that you removed it in build 257 to fix your problem.
Aye Sir.Let me know if there are any more open issues with build 260.
Like I said before, if you add 1 line of code to your custom draw method, it will fix the problem and run faster.I re-removed it in build 260, everything is fine now.
I noticed that.Like I said before, if you add 1 line of code to your custom draw method, it will fix the problem and run faster.
Code: Select all
FUNCTION Main()
LOCAL GetList := {}
TEXT INTO cInfo WRAP "\n" TRIMMED
\bWarning!\c
Your Application \bWonderfulApp\c is not correctly installed!
Remove it and call \bMicrosoft Inc.\c at +01.0900.0393030.
ENDTEXT
@ 1,1 DCSAY cInfo SIZE 60,6 FORMATTED FONT "12.Tahoma" SAYOPTIONS XBPALIGN_HCENTER+XBPALIGN_VCENTER
DCREAD GUI FIT ADDBUTTONS
RETURN nil