VFP Visual FoxPro and Images, graphics, GdiPlus, GdiPlusX, FoxCharts, FoxPaint, charting, tips and tricks, code samples, VFPX, FoxyPreviewer etc...
2007-06-28
New version of GradObjects
I've just posted a new version of the GradObjects class.
Nhanks to Nigel for reporting a bug that occured when using graphical OptionGroups.
Here's the updated version.
Nice stuff. The caption in the font MS Sans Serif with fontcharset being 1=Thai cannot show on buttons. Hi !
Can you provide me some screenshots showing the problems that are occurring ? This seems to be a problem with the codepage, but I think that this can be fixed, but for this I'll need many screenshots, showing me how the Gradobjects class is showing wrongly the text, and how it should be appearing correctly.
It would be great if you could provide me also the unicode codes from the text from the sample that you'll provide
Hi, Cesar! An excellent work. I found the one bug: when I set the width and the hieght of the command buttons - all works as expected, but if I set the AutoSize property to .T. - the something is going wrong.
http://kodu.neti.ee/~juri4/for_cesar.jpg Thanks very much for the feedback and the pictures, I hope to get on this as soon as possible, and update the class. Regards Cesar
Just dloaded and played with it and found two bugs in the base classes:
First Error: Class GradBackGround method EvaluateColors
Line IF LcExprColor2 = "=" changed to IF LEFT(lcExprColor2,1) = "="
Otherwise the ='s does not get removed. same code as the lcExprColor1 in the lines above it.
Second Error: Class GradObjects did not have a property Enabled. Added property - samples work ok. Set to .f. as default.
Hope this helps, Mike Hi Mike, The 1st fix was already aplied, thanks ! About the 2nd... Sorry, but it's not clear for me... Are you suggesting that I could add the "Enabled" property to the main class? But it depends on the objects, if they're enabled or disabled, the GradObjects class automatically will update the control... Or is there something else that I didn't catch ! Thanks for your valuable feedback ! Regards Cesar
Nice stuff.
ReplyDeleteThe caption in the font MS Sans Serif with fontcharset being 1=Thai cannot show on buttons.
Hi !
Can you provide me some screenshots showing the problems that are occurring ?
This seems to be a problem with the codepage, but I think that this can be fixed, but for this I'll need many screenshots, showing me how the Gradobjects class is showing wrongly the text, and how it should be appearing correctly.
It would be great if you could provide me also the unicode codes from the text from the sample that you'll provide
Regards
Cesar
Versión en Español de este artículo en / Spanish version at
ReplyDeletehttp://www.portalfox.com/article.php?sid=2477
Nueva versión de GradObjects
Hi, Cesar!
ReplyDeleteAn excellent work. I found the one bug:
when I set the width and the hieght of the command buttons - all works as expected, but if I set the AutoSize property to .T. - the something is going wrong.
http://kodu.neti.ee/~juri4/for_cesar.jpg
Thanks very much for the feedback and the pictures, I hope to get on this as soon as possible, and update the class.
Regards
Cesar
Just dloaded and played with it and found two bugs in the base classes:
ReplyDeleteFirst Error:
Class GradBackGround method EvaluateColors
Line
IF LcExprColor2 = "="
changed to
IF LEFT(lcExprColor2,1) = "="
Otherwise the ='s does not get removed. same code as
the lcExprColor1 in the lines above it.
Second Error:
Class GradObjects did not have a property Enabled.
Added property - samples work ok. Set to .f. as
default.
Hope this helps,
Mike
Hi Mike,
The 1st fix was already aplied, thanks !
About the 2nd... Sorry, but it's not clear for me...
Are you suggesting that I could add the "Enabled" property to the main class? But it depends on the objects, if they're enabled or disabled, the GradObjects class automatically will update the control... Or is there something else that I didn't catch !
Thanks for your valuable feedback !
Regards
Cesar
Hi Nilson,
ReplyDeleteI think this problem with "fontcharset being 1=Thai" was fixed.
As I don't have your language installed, can you test it and tell me how it works ?
Thanks in advance and for your valuable feedback !
http://weblogs.foxite.com/files/cesarchalom/gradobjects/gradobjects.zip
Regards
Cesar
Hi Juri,
ReplyDeleteThe problem with "Autosize" seems to have been fixed.
It would be very nice if you could test the new version in your environment, the truth is that I'm afraid this fix could bring other issues...
http://weblogs.foxite.com/files/cesarchalom/gradobjects/gradobjects.zip
Thanks in advance !
Regards
Cesar
Hi, I sometimes get this error when putting Gradbackround on a form or containter:
ReplyDelete"Missing expression"
Can anyoane know where is the problem ?