Git Product home page Git Product logo

Comments (7)

lainz avatar lainz commented on July 22, 2024 1

Working well, thankyou!
Now we have another working demo =)

from bgracontrols.

circular17 avatar circular17 commented on July 22, 2024

Hi Lainz. I am not sure it is possible because TBGRAThemeSurface accesses the Canvas property of the control and TWinControl doesn't have this property.

If I understand, TCheckListBox has "owner drawn" events where you would like to use TBGRAThemeSurface? Maybe, if at this point there is a canvas provided, it is possible to make an alternate constructor that takes the Canvas as well as a parameter.

from bgracontrols.

lainz avatar lainz commented on July 22, 2024

Hi yes it has a canvas. Sure an alternative constructor can do.

from bgracontrols.

circular17 avatar circular17 commented on July 22, 2024

Ok, Lainz. Go ahead and give it a shot with the alternate constructor idea. I think it's a promising approach. If you need further discussions or face any hurdles, I'm here to help and listen.

from bgracontrols.

lainz avatar lainz commented on July 22, 2024

Thank you I will try.

from bgracontrols.

lainz avatar lainz commented on July 22, 2024

Done. Seems that works fine.
But I don't have macOS retina to test, can you give a try, the demo is in bgracontrols\test\test_checklistbox

from bgracontrols.

circular17 avatar circular17 commented on July 22, 2024

Cool! I've checked it out and it works well.

I've made some adjustments by adding a scale factor and some margin. On MacOS, there's a frame rectangle that inverts the color and it was masking the square of the checkbox. With these changes, it looks good now.

Could you pull the latest and check on your end as well? Let me know if you have any further concerns.

from bgracontrols.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.