Free Controls: Switch/Color Selector/Font Selector

  1. ‹ Older
  2. 8 months ago

    Markus W

    19 Jan 2019 Pre-Release Testers #JeSuisHuman New Zealand, Auc...

    Change the code from NewPicture to New Picture

    NewPicture was deprecated

  3. I've navigated the project as much as I can but I've failed to locate the "NewPicture" word in the code! Can can you please, help me further. I highly appreciate your support. I'm new in using Xojo.

    Thanks

  4. Markus W

    19 Jan 2019 Pre-Release Testers #JeSuisHuman New Zealand, Auc...

    It says right in your picture where the offending code is.

  5. Markus W

    19 Jan 2019 Pre-Release Testers #JeSuisHuman New Zealand, Auc...

    You can also simply search for NewPicture.

    If you don‘t know how to search then PLEASE read the free introduction book and do the tutorials. People here are VERY willing to help, but you need to put some effort in and learn the basics (like how to use the IDE).

  6. Ivan T

    19 Jan 2019 Pre-Release Testers

    @Markus W You can also simply search for NewPicture.

    Are you shure?

    @Stefan W i keep the source encrypted.

  7. Markus W

    19 Jan 2019 Pre-Release Testers #JeSuisHuman New Zealand, Auc...

    Then he has to change it. That's why I don't use non-commercial encrypted plug-ins - too much hassle in the long run …

  8. Markus W

    19 Jan 2019 Pre-Release Testers #JeSuisHuman New Zealand, Auc...

    Seems he last posted in March 2016 so it is unlikely he is still around.

  9. Markus W

    19 Jan 2019 Pre-Release Testers #JeSuisHuman New Zealand, Auc...

    I send him a pm

  10. Dave S

    19 Jan 2019 San Diego, California USA

    If the only issue is the use of deprecated NEWPICTURE, it is easy to fix

    • create a MODULE
    • add a Method Called NEWPICTURE
    Function NewPicture(w as integer,h as integer,depth as integer) as picture
    return new picture(w,h,d)
    End Function

    The encrypted class should now call this instead... at least it has worked for me in the past

  11. Markus W

    19 Jan 2019 Pre-Release Testers #JeSuisHuman New Zealand, Auc...
    Edited 8 months ago

    @Dave S If the only issue is the use of deprecated NEWPICTURE, it is easy to fix

    Nice one, Dave. Have to remember that.

    But as it’s encrypted it is just a matter of time before something else breaks so you have to decide wether it’s worth the risk …

  12. Wayne G

    19 Jan 2019 Pre-Release Testers, Xojo Pro New Zealand axisdirect.nz

    Good one Dave.

    Alas for coding here. Depth & d aren't the same.

    Function NewPicture(w as integer,h as integer,d as integer) as picture
    return new picture(w,h,d)
    End Function
  13. I've done as Dave Sisemore advised me but I don't know what I've done wrong. Please, help me. I'm not a newbie in programming but I'm new in Xojo. Plaese, check the image below and advise me appropriately.

    https://drive.google.com/file/d/1mwpkU3yGFB7Gzv1g7f5eiFJIrTGSsCNU/view?usp=sharing

    Thanks in advance

  14. Dave S

    20 Jan 2019 San Diego, California USA

    Xojo adds the first and last lines for you... look at the pane to right of the editor

  15. What do you mean Dave?

  16. Dave S

    20 Jan 2019 San Diego, California USA

    look at your screenshot

    • delete the last line
    • move the parameters from the first line to the box to the right (UNDER where you have NEWPICTURE)
    • delete the first line
  17. Sascha S

    20 Jan 2019 Pre-Release Testers, Xojo Pro Germany, Lower Saxonary

    Copy only the

    Function NewPicture(w as integer,h as integer,d as integer) as picture
    return new picture(w,h,d)
    End Function

    from this Thread and Paste it into the Xojo IDE Navigator while you have marked a Module :)

  18. Dave, I've done what you've told me but still I get an error! I need your help more.

    https://drive.google.com/open?id=1qzGgN7b2OzV4BwD4ROIXBI030_mfeD7h

    Thanks

  19. Dave S

    20 Jan 2019 San Diego, California USA

    you did not follow the directions properly

    • NOT w,h,d
    • but w as integer,h as integer,d as integer
  20. Thanks Dave. Finally it has worked perfectly. It required also a return type and I typed in "Picture"

    Thank you very much.

  21. Alberto D

    21 Jan 2019 Pre-Release Testers

    @SaschaSchneppmueller Copy only the

    Function NewPicture(w as integer,h as integer,d as integer) as picture
    return new picture(w,h,d)
    End Function

    from this Thread and Paste it into the Xojo IDE Navigator while you have marked a Module :)

    Thank you, didn't know that.

    For illustration:
    -image-
    -image-
    -image-

or Sign Up to reply!