General discussion

  • Creator
    Topic
  • #2084775

    Picture Buttons

    Locked

    by jinuq ·

    I am writing a program in Assembly. I was wondering if anyone knew how to place an image on a button.

All Comments

  • Author
    Replies
    • #3780417

      Picture Buttons

      by dachev ·

      In reply to Picture Buttons

      You are asking a question, which answer would take a medium sized book 🙂

      If you are doing this under Windows, you have to know things even the Microsoft programmers do not know – how the system operates on its lowest level – addresses of functions, buffers, databases, etc.. – things the high-level compilers know how to get.

      Anyway – basically the picture is a binary data buffer, which must be copyed on its propper place (address in the memory). You should find where this is, and read thedata from a file to this place.

      If you are not doing it under windows, or any other graphics mode host environment – contact me, I will tell how to do it, else – find a book 🙂

      • #3771721

        Picture Buttons

        by jinuq ·

        In reply to Picture Buttons

        On windows from what I can get from the Windows SDK there is image control that will send the WM_CLICK commands along with the double click.

    • #3771820

      Picture Buttons

      by cswearingen ·

      In reply to Picture Buttons

      I can’t answer this for you but I can point you to someone who can. Ask Steve Gibson (at http://www.grc.com). If anyone knows Assembly it’s him.

      Good luck!

      • #3771722

        Picture Buttons

        by jinuq ·

        In reply to Picture Buttons

        I was seeing if someone less busy could give me a pointer. I know that it can be done in windows. With out too much of a problem.

Viewing 1 reply thread