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

      0  

    Question Add Ext.draw.Stripe to Ext.draw.Component dynamicaly

    Add Ext.draw.Stripe to Ext.draw.Component dynamicaly


    Hello

    I need to create and add new Stripes to Ext.draw.Component dynamically. Is any options to do that?

    Thank you.

  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


    could you explain that more detailed please?
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

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

      0  

    Default


    I have one Ext.draw.Component that has one image Stripe inside. I want to create more stripes dynamically. Like this:
    Code:
    Ext.create('Ext.draw.Component', {
    	id: 'draw-component',
    	viewBox: false,
    	width: 800,
    	height: 1000,
    	items: {
    		type: 'image',
    		id: 'draw-component-stripe',
    		x: 0,
    		y: 0,
    		width: 800,
    		height: 1000,
    		src: '2.PNG',			
    	}
    });
    Code:
    var drawCmp = Ext.getCmp('draw-component');
    
    var highlighter = new Ext.draw.Sprite({
    	type: 'rect',
    	surface: drawCmp.surface,
    	opacity: .5,
    	x: 50,
    	y: 50,
    	width: 110,
    	height: 200,
    	stroke: "yellow",
    	fill : 'yellow'
    }).show(true);

  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


    So where is the problem? You already did it correct - create a sprite and configure the surface.
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

Similar Threads

  1. Ext.draw.Component image
    By vega109 in forum Ext: Discussion
    Replies: 5
    Last Post: 4 Oct 2012, 3:49 AM
  2. Draw component and svg data
    By steffenk in forum Ext: Discussion
    Replies: 7
    Last Post: 28 Nov 2011, 7:07 AM
  3. Replies: 4
    Last Post: 10 Apr 2011, 7:33 AM
  4. Replies: 1
    Last Post: 18 Mar 2011, 9:35 AM
  5. Draggin an ext.draw.Component in a Window
    By johanhaest in forum Ext: Discussion
    Replies: 7
    Last Post: 11 Mar 2011, 2:00 AM

Thread Participants: 1

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