Skip to Content

Image in Button

Hi!

How shall I get the image to be displayed? I try to set the Image property in the button object but nothing happens. I have tried both absolute and relative paths and different image formats but it will not be displayed.

How to do it?

What image formats are supported?

My goal is to create the "Back" button that is used in some system forms (blue circle with an left arrow in). Is there an easier way the achieve that?

Regards

Lars

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Feb 27, 2009 at 10:57 AM

    Hi!

    No, the UID is not 1 or 2.

    The button is bigger than the image.

    I've tried JPG, GIF, PNG and BMP formats.

    I've tried absolute path.

    I've tried realtive path to the addon executable.

    Nothing works.

    No, I'm not using ScreenPainter.

    Regards

    Lars

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      HI

      check that you have to set button type to Image. by default it is caption.

      so if not set the type then set it.

      or if you do the same and still getting error then please post your code. because at my side its running perfectly.

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 11:20 AM

    Hi,

    The best format would be .png image.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 10:48 AM

    Hi

    Make sure that your image ID is not 1 or 2.

    it is reserved for OK and Cancel.

    and also check size of your image. or increase size of your button.

    If you are using screen painter then you will see that in Preview Mode.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2009 at 01:00 PM

    I must have been blind, I missed the Type = bt_Image...

    Yes now it works!

    Thanks!

    Regards

    Lars

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.