CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12
  1. #1
    Join Date
    Feb 2005
    Posts
    568

    Button with text and icon

    Is it possible a button with icon and text... the default size is too small for me to draw an icon and add the text... anyway can change the size of the icon??

  2. #2
    Join Date
    Aug 2002
    Location
    Cluj-Napoca,Romania
    Posts
    3,496

    Re: Button with text and icon

    You need an owner drawn button. There are lots of free & commercial buttons. Here you will find several examples: CodeGuru - Buttons
    Har Har

  3. #3
    Join Date
    Feb 2005
    Posts
    568

    Re: Button with text and icon

    Quote Originally Posted by PadexArt
    You need an owner drawn button. There are lots of free & commercial buttons. Here you will find several examples: CodeGuru - Buttons
    did there have any more easy way?? as a icon button is just few line of code...

  4. #4
    Join Date
    Aug 2002
    Location
    Cluj-Napoca,Romania
    Posts
    3,496

    Re: Button with text and icon

    Quote Originally Posted by lsy
    did there have any more easy way?? as a icon button is just few line of code...
    If you want the esy way out I suggest VB or .NET.
    Har Har

  5. #5
    Join Date
    Feb 2005
    Posts
    568

    Re: Button with text and icon

    Quote Originally Posted by PadexArt
    If you want the esy way out I suggest VB or .NET.
    i also know in VB which is more easy to control... but i need to use VC

  6. #6
    Join Date
    Aug 2002
    Location
    Cluj-Napoca,Romania
    Posts
    3,496

    Re: Button with text and icon

    Why don't you use a ready made Image Button Control from the list I've provided. Or look on Codeproject. They also have an extensive list of ready made free button controls. Most of them are also really easy to use.
    Har Har

  7. #7

    Re: Button with text and icon

    CButtonST maybe a good choice for you,you can found it here:
    http://www.codeproject.com/buttonctrl/cbuttonst.asp

    Andy

    ---------------------------------------------------------------------------------
    XD++ MFC/C++ Flow/Diagram Library (Full Visio 2003 Like,100% Source Code Kit) -- http://www.********.net

  8. #8
    Join Date
    Jul 2001
    Location
    NY, USA
    Posts
    60

    Re: Button with text and icon

    I suggest using a bitmap button and setting it with a bitmap that contains the image you want and the text.

  9. #9
    Join Date
    Feb 2005
    Posts
    568

    Re: Button with text and icon

    Thanks all.... i done it!!!
    just another small question.... do there have any website which can download nice and free icon :P

  10. #10
    Join Date
    Feb 2005
    Posts
    568

    Re: Button with text and icon

    Quote Originally Posted by andytim
    CButtonST maybe a good choice for you,you can found it here:
    http://www.codeproject.com/buttonctrl/cbuttonst.asp

    Andy

    ---------------------------------------------------------------------------------
    XD++ MFC/C++ Flow/Diagram Library (Full Visio 2003 Like,100% Source Code Kit) -- http://www.********.net
    How can i add this icon to a tab control title??

  11. #11

    Re: Button with text and icon

    You can customize the exist CTabCtrl (Maybe you can search it on codeguru or codeproject) to add small icon to the titlebar,if you want other professional look tab control with icon and sourcecode,the following maybe useful to you:
    http://www.********.net/Products/TFC/Screens.htm

    For other tab control,you can use google to search it.

    Andy

  12. #12

    Re: Button with text and icon

    ad: I suggest using a bitmap button and setting it with a bitmap that contains the image you want and the text.
    -> if possible do not mix it (making any international version you will find why)

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