Current Position:Home > Creating a custom component

Creating a custom component

Update:11-30Source: network consolidation
Advertisement
I am creating a custom component that is based on Canvas.
I am trying to add this component as a child of another
component like that:
myCanvas.addChild(myCustomComponent)
addChild function expect ObjectDisplay in its argument and
not a Class. I am little confused. If I am creating a component
that base on Canvas isnt it inherited from ObjectDisplay?
please help.

The Best Answer

Advertisement
I actually figure it out. Thank you!!!
here is what I am trying to do.
1. creating component_A based on Canvas
2 in my Application I have Canvas_B
I wanted to add component_A as a child to Canvas_B
solution:
Canvas_B.addChild(new component_A ())
  • Creating a custom component in multisim using *.lib and *.olb files Update:10-11

    i have  *.lib and *.olb files for a pspice model. which file i have to you while creating a custom component in multisim.Hello, Thanks for your question. In order to create simulatable custom components in Multisim you need a SPICE model (Multisim ca

  • Creating a custom component Update:11-30

    I am creating a custom component that is based on Canvas. I am trying to add this component as a child of another component like that: myCanvas.addChild(myCustomComponent) addChild function expect ObjectDisplay in its argument and not a Class. I am l

  • Create complex custom component Update:11-30

    Hi everyone! I'm trying to create my own custom component in JSF. However I have several questions : - It is not mandatory to create a renderer class, right ? the component can draw itself ? - How can I create a custom component which would have seve

  • Help,Help me!   I want to create  a custom component Update:11-30

    The first, I'm a chinese,my English is very poor.Maybe I make so many mistakes.so I say sorry for you. I want to create a custom component so I research the Java.awt.Component .but I don't understand that the class has a method-------dispatchEvent(AW

  • Is  Creating a Custom Component and Custom UIComponent are same in Flex ?? Update:11-30

    Hi , I am getting confusion in the terminology of words  with respect to Custom  Components . Please let me know whether  Creating a Custom Component and Custom UIComponent are same in Flex ?? Because i have created some  Custom Components based on F

  • Help with creating a custom component. Update:10-11

    Hi. I have created a really simple custom component called myComp. It is a simple Canvas 100 pixels x 100 pixels with an Image control component. <mx:Canvas> <mx:Image id="image1"> </mx:Canvas> After instantiating the component

  • Creating a custom component is causing a strange scoping issue Update:11-30

    I am a fairly new user to Flash and Actionscript, but I have a fair amount of experience working with C and Java. I'm currently working with Actionscript 2 in Macromedia Studio 8. I was trying to create a new component for a project I am working on,

  • How to create a custom component in Integrator Update:11-30

    Hi everybody, I'm trying to develop a custom componente for Endeca Integrator, following this guide: http://www.cloveretl.com/blog/creating-your-own-component-in-cloveretl-step-by-step/ but, even if I installed Plug-in Development Environment (PDE),

  • How do you create a Custom Component? Update:10-11

    I've made use of a few custom components available on the web (IE. a custom fire component from gskinner.com) which made me realize I haven't come across any way to make my own components. I don't have anything particular in mind at this time, but I

  • Huge pain Creating a Custom Component with lots of pins Update:11-30

    hello I am trying to create an ATmega 128 MCU in multisim that I plan on using to layout a pcb in utiliboard with. SInce this is just for pcb layout purposes I can care less about adding a spice model. I did the "component wizard" and selected &