CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2000
    Posts
    7

    Huston we have a problem!!! (with putting an image on a button...)

    I´m not allowed to use the Swing stuff, and I have a problem with putting an Image on a Button ...

    Can anyone, please, tell me how I can put an Image on a Button!

    Thank you,

    agir


  2. #2
    Join Date
    Mar 2000
    Location
    Dublin, Ireland
    Posts
    124

    Re: Huston we have a problem!!! (with putting an image on a button...)

    Agir,

    If you aren't allowed to use Swing, are you then allowed to use Symantec's library?
    Symatec has ImageButton classes that allows easy loading of an image for a button and rest is taken care of.
    If you want, I can send the source to you via email.

    Otherwise, you can create an ImageButton class yourself by using a canvas as your base class, and overriding the paint(), repaint(), and update() methods. This might take a while but it's definitely possible.

    Regards,

    dogBear

    PS Please Rate this Response!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured