1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Orange County, CA
    Posts
    31
    Vote Rating
    0
    vega109 is on a distinguished road

      0  

    Default Ext.draw.Sprite text: can't create dynamically

    Ext.draw.Sprite text: can't create dynamically


    Hello

    I need to put a text sprite dynamically on a surface. I was able to put a path and a rectangle sprites but no luck with a text one. Thank you!

    Code:
    var drawCmp = Ext.getCmp('draw-component');
    var surface = drawCmp.surface;
    
    new Ext.draw.Sprite({
            id : 'draw-sprite-3',
    	type : 'text',
    	surface: surface,
    	text : 'Simple text',
    	font : '12px Arial',
    	x : x,
    	y : y,
    	width : 100,
    	height : 100				        						
    }).show();

  2. #2
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,649
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    true, i also get
    "Uncaught TypeError: Cannot read property 'customAttributes' of undefined"
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    2
    tryanDLS is on a distinguished road

      0  

    Default


    Please don't post the same thing in multiple places.

  4. #4
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,649
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    in this case it's ok as it's now a bug report, before it was a question if it's a bug. This is not obvious as the posts are the same.

    @vega109
    could you please add to the bugpost:
    - error is given (if any)
    - ensure that you add the sprite after surface is rendered completely, so please change the code and change it to a complete test case.
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

Similar Threads

  1. Replies: 3
    Last Post: 12 Apr 2011, 12:12 AM
  2. Est.draw.Sprite scaling
    By vega109 in forum Ext: Discussion
    Replies: 2
    Last Post: 11 Apr 2011, 2:30 PM
  3. Ext.draw.Sprite as a line?
    By vega109 in forum Ext: Discussion
    Replies: 2
    Last Post: 11 Apr 2011, 10:55 AM
  4. Replies: 5
    Last Post: 18 Mar 2011, 9:38 AM
  5. create dynamic text boxese on dynamically for itemselector - is it possible
    By barbara1712 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 14 Jan 2010, 12:44 AM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar