Image buttons / Custom built buttons

  1. #1

    Image buttons / Custom built buttons

    Hi there,

    I am wondering if anyone has implemented a custom built button. I have been playing around with a number of methods, from extending the existing Ext.Button class in the toolkit, to creating my own from scratch. Neither have been what I am looking for.

    Essentially, I am looking for a Ext.Button type object with the additional ability to render itself as a custom image instead of the usual button; while keeping the existing functionality as the Ext.Button control. This would include ability to have icons on the button, have different images (or use of a sprite) display for different states - i.e. normal, hover, click.

    If this has not been implemented; then I would be interested in what the best practice methodology is for extending the toolkit and how best would one override the rendering of the control without losing core functionality.

    thanks,
    Conor




  2. #2

    RE: Image buttons / Custom built buttons

    Hi Conor,

    Could you post (or link to) a sample image(?) demonstrating the type of button you would like to build?
    Geoffrey McGill
    Founder
  3. #3

    RE: Image buttons / Custom built buttons


    I was thinking of any image really, such as the ones attached to this reply. In quite a few scinarios the designers provide me with images which are to be used as buttons. I am working real hard to find all different possibilities and usages for Coolite controls and this is being a key one at the moment.

    Apart from the ones attached withhave no icons, we may get a standrd button which will have icons in them depending on their usage. Pretty much like the current button object allows, but in this instace the background would be totally different. Can always change the css directly; but would not want to do that I may only want to have a specific change for a once off.

    Any help in pointing me in the right direction will help immensely.

    thanks,
    Conor

Similar Threads

  1. [CLOSED] TreePanel with Image Buttons
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 03, 2011, 4:11 PM
  2. [1.0] Adding custom buttons to HtmlEditor
    By olakara in forum 1.x Help
    Replies: 2
    Last Post: Apr 19, 2010, 7:11 AM
  3. How to create image buttons?
    By dbassett74 in forum 1.x Help
    Replies: 3
    Last Post: May 29, 2009, 9:05 PM
  4. using image with radio buttons
    By pearl in forum 1.x Help
    Replies: 0
    Last Post: May 23, 2009, 5:09 AM
  5. Custom Paging - Simple Next/Prev buttons
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: May 22, 2009, 3:10 PM

Posting Permissions