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.

GradObjects Download - Release 2020




More info can be obtained at the original post:
GradObjects Revisited - 2020

7 comments:

  1. 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

    ReplyDelete
  2. 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

    ReplyDelete
  3. 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

    ReplyDelete
  4. 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

    ReplyDelete
  5. 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

    ReplyDelete
  6. 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

    ReplyDelete
  7. Hi, I sometimes  get this error when putting Gradbackround on a form or containter:

    "Missing expression"

    Can anyoane know where is the problem ?

    ReplyDelete