Results 1 to 7 of 7

Thread: Blinking button (is it possible?)

  1. #1
    Sencha User mihaip007's Avatar
    Join Date
    Feb 2008
    Location
    Pretoria, South Africa
    Posts
    194

    Default Blinking button (is it possible?)

    Hey guys...!

    Is there a way to make a simple button (which is dragged-and-dropped on a toolbar) blink? I am trying to attract attention to the button. I need this feature to show people that there is "new" stuff happening on the framework...!

    Thank you in advance...
    Mihai

  2. #2

    Default

    Hello Mihai,

    i guess this is not a question that has do do with the designer. But i would try one of the following things:

    Posibility 1: Use setInterval() to switch the className (set the AutoRef in Designer to get the Button). Advantage you can also make it stop blinking by deleting the Interval

    Posibility 2: Not my Favorite ;-) Use a animatet Gif ;-)

    greetings from Cologne

    Marcus
    -------------------------------
    http://www.androidfaq.net

  3. #3
    Sencha User mihaip007's Avatar
    Join Date
    Feb 2008
    Location
    Pretoria, South Africa
    Posts
    194

    Default

    Hi...! I know that it is not related to the designer, but I have tried everything to get the button to blink. I created an autoref name in the designer "myButton", and I have tried to do things like this.myButton.highlight() but it says that thisis not a method or something like that!

    I am not sure how to code and where to put the code to make it highlight...!
    thanks for the reply though...

  4. #4
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    That would be this.myButton.getEl().highlight(), but it still won't work, because a button is mostly build from background images.
    The only way to "blink" a cursor is by adding/removing a class and creating associated css rules to change the background-image (like @marcusboos already mentioned).

  5. #5
    Sencha User mihaip007's Avatar
    Join Date
    Feb 2008
    Location
    Pretoria, South Africa
    Posts
    194

    Default

    Hi...!

    Thanks guys... My biggest problem is the fact that I am struggeling to get any of the methods or properties accessed. I mean the following "this.myBtn.setInterval()" returns : "this.myBtn.setInterval() is not a function"...!

    I am using the designer and I am simply creating a toolnbar and a button on it. I gave it a refname and I simply want to access the methods. Am I right to use it under the initComponent function??? Because it just returns errors.

    What am I doing wrong?

    Mihai

  6. #6
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    setInterval is a javascript method (not Ext related - window.setInterval), but I would recommend using Ext.TaskMgr.run.

  7. #7
    Sencha User mihaip007's Avatar
    Join Date
    Feb 2008
    Location
    Pretoria, South Africa
    Posts
    194

    Default

    sounds too complicated coming from someone who simply wants to use the Ext Designer and simply wants one button to blink...! But thank you guys - appreciate your inputs...!

Similar Threads

  1. Grid Cell blinking
    By blutarsky in forum Ext 2.x: Help & Discussion
    Replies: 21
    Last Post: 14 Jul 2010, 4:28 AM
  2. Cursor blinking in IE7
    By oameninormali in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 29 Apr 2009, 12:50 AM
  3. Error icon is blinking.
    By soniya in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 19 Feb 2009, 11:57 AM
  4. Blinking Window, How ???
    By chalu in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 13 Sep 2008, 8:48 AM

Posting Permissions

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