Coder Social home page Coder Social logo

Add image on button about lwjgui HOT 4 CLOSED

orange451 avatar orange451 commented on July 18, 2024
Add image on button

from lwjgui.

Comments (4)

orange451 avatar orange451 commented on July 18, 2024

from lwjgui.

YEVGENIY1989 avatar YEVGENIY1989 commented on July 18, 2024

Hey! Do you have a picture example of what you’re looking to achieve? And can I see the code you tried so I can see what the problem is?

On Feb 4, 2021, at 2:17 AM, YEVGENIY1989 @.***> wrote:  Hi all. Can you tell me how i can add image on button?When i add image on button, image dont stay on center button, and when i turn on image, don't event button. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

I take you example ImageExample, and set image on button. Image don't stay on center, and button no action when i click on image.
button
code

from lwjgui.

orange451 avatar orange451 commented on July 18, 2024

I just pushed a fix for the alignment issue in the Button class (in Labeled parent class).

As for click-through, please use Node#setMouseTransparent() method! Set to true for your graphic node, so it will not capture mouse input.

from lwjgui.

YEVGENIY1989 avatar YEVGENIY1989 commented on July 18, 2024

I just pushed a fix for the alignment issue in the Button class (in Labeled parent class).

As for click-through, please use Node#setMouseTransparent() method! Set to true for your graphic node, so it will not capture mouse input.

Hello. This solved my problem. Thanks for finding a solution quickly.

from lwjgui.

Related Issues (18)

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.