Foxite.COM Community Weblog

Foxite.COM Community Weblog - free weblog service for the Visual FoxPro Community.
Welcome to Foxite.COM Community Weblog Sign in | Join | Help
in
Home Blogs Forum Photos Forum Archives

VFP IMAGING



New version of GradObjects

I've just posted a new version of the GradObjects class.

Thanks to Nigel for reporting a bug that occured when using Graphical OptionGroups.

Here's the updated version.

http://weblogs.foxite.com/files/cesarchalom/gradobjects/gradobjects.zip

More info can be obtained at the original post:

GRADIENT OBJECTS WITH GDI+

http://weblogs.foxite.com/cesarchalom/archive/2006/07/26/2076.aspx

Published Thursday, June 28, 2007 2:40 AM by cesarchalom
Filed Under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Nilson said:

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
 
Regards
 
Cesar
July 4, 2007 1:26 PM
 

Ana María Bisbé said:

Versión en Español de este artículo en / Spanish version at
http://www.portalfox.com/article.php?sid=2477
Nueva versión de GradObjects
July 24, 2007 7:41 PM
 

Juri Shutenko said:

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

August 2, 2007 9:31 AM
 

Mike Savage said:

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

September 8, 2007 4:52 AM
 

Cesar Chalom said:

Hi Nilson,

I 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
October 27, 2007 5:26 AM
 

Cesar Chalom said:

Hi Juri,

The 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
October 27, 2007 5:29 AM

What do you think?

(required) 
(optional)
(required)