Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3619726
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:54:54+00:00 2026-05-18T22:54:54+00:00

I set background image for a button by: bg_pixmap[NORMAL] = img.png but most of

  • 0

I set background image for a button by:

bg_pixmap[NORMAL] = "img.png"

but most of the times the image is offset with certain x, y when:

  • there is padding around
  • there is adjacent widgets at left/top
  • align the button 0.5, 0.5 of an alignment container of larger size
  • …

how can I specify the background image to alway start from 0, 0 of the button?


EDIT

it seems bg_pixmap is always tiling start from 0, 0 of the window ( but shown only in the button area )….

but when I use bg_pixmap on widgets not has state changes (only NORMAL image is shown), the image is aligned correctly… (e.g. drawing area, event box, etc…)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T22:54:54+00:00Added an answer on May 18, 2026 at 10:54 pm

    WORKAROUND

    I worked around this and make an “image button” works with rc style file:

    add GtkButton inside an EventBox
    EventBox -> Visible Window = Yes ( No won’t make it work )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there away to set a background image on a webpage when the webpage
I have a button connected to an action. When I set the background image
I want to be able to set the background of an image button in
How can I set a button background image on iPhone under Monotouch? It will
i tried to set image to the button tag in asp.net but it gave
I have an image button with a background image .png of a circle. I
In Android, when I set a background image to a button, I can not
I have UIButton that I set the background image for three states, normal, highlighted,
In my Android project, I've a image button whose background is set to some
I want to set background image to right and top of my span because

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.