How to get component to scale

So I am working on a little flip book application that has a
control bar below it to control the flip book. I decided to setup
the control bar as a component which I have attached below. Got the
component done and it is working with the flip book for me. My only
issue now is when the window gets resized I can't get the component
to scale instead it will just crop it and puts scrollbars up. Is
there something I need to do different in my component to make it
scalable?

"CenturyMan1979" <[email protected]> wrote
in message
news:gpubgm$las$[email protected]..
> So I am working on a little flip book application that
has a control bar
> below
> it to control the flip book. I decided to setup the
control bar as a
> component
> which I have attached below. Got the component done and
it is working with
> the
> flip book for me. My only issue now is when the window
gets resized I
> can't get
> the component to scale instead it will just crop it and
puts scrollbars
> up. Is
> there something I need to do different in my component
to make it
> scalable?
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="802"
> height="184">
Should be
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%"
height="100%">
or whatever percentage is appropriate.

Similar Messages

  • How to get the Vertical scale of Osilloscope TDS 420A ?

    Hellow!
    Anyone can tell me how to get the Vertical scale of TDS 420A? i use "TKTDS read waveform.VI" to show the waveform in a Waveform indicator,but the Vertical scale is not the same as the osilloscope. Thanks!

    Hi happybird,
    I installed the TKTDS instrument drivers and had a look at the TKTDS Read Waveform.vi. I couldn't find any way to change the scale of the waveform graph. The data displayed should be the same that is measured by the scope. Try running the TKTDS 420 Getting Started VI that is located in:
    All functions >> Instrument I/O >> Instrument Drivers >> Tktds4xx VIs >> Application Example VI's
    I don't have access to a TKTDS 420 myself, but I hope the example VI displays the correct value. If it does then it is a matter of finding out what is different in your VI. Good luck.
    Michael Chaney
    Systems Engineer - TestStand
    National Instruments

  • How to get component from which PropertyChange is activated

    I have a PropertyChangeListener on JInternalFrames. The frames are added using same method. I need to know from which component (frame) the 'close'-property is changed. I cannot figure out how to get it.
    When a propertychange is fired, how do i know from which componen (frame) it is fired?
    Common method to create frames is as follows:
             private void createPanel(JInternalFrame myFrame) {
            myDeskTop.add(myFrame);
                myFrame.pack();
            myFrame.setClosable(true);
                try {
                    myFrame.setMaximum(true);
                } catch (PropertyVetoException e){}
            myFrame.addPropertyChangeListener(new PropertyChangeHandler());
        }Code to execute handler is as follows:
        class PropertyChangeHandler implements PropertyChangeListener {
            public void propertyChange(PropertyChangeEvent e) {
              if (((String)e.getPropertyName()).equals("closed")){
                  if (myActiveApplication.equals("myPanelTestje")){
                      myPanelTestje = null;
                  if (myActiveApplication.equals("myFrameTestje")){
                      myFrameTestje = null;
                  if (myActiveApplication.equals("myHolidays")){
                      myHolidays = null;
                  if (myActiveApplication.equals("myInsurance")){
                      myInsurance = null;
            }

    Indeed no need to cast.
    When i click 'close' in the upper right corner of the JInternalFrame, the handler is executed and e.getPropertyName results in "closed". So, the correct property is activated but the problem was, how to detect from which JInternalFrame it was originated? The only way to find out from which panel the 'close'property is activated seems to be a test on the 'instance' (as in the example). Don't know if there is any way to check the panelname itself? It would be something like: e.getSource().getComponentName()
    class PropertyChangeHandler implements PropertyChangeListener {
    public void propertyChange(PropertyChangeEvent e) {
    if (e.getPropertyName().equals("closed")){
    if ((e.getSource() instanceof testApp)){
    myPanelTestje = null;
    if ((e.getSource() instanceof testInternalFrame)){
    myFrameTestje = null;
    if ((e.getSource() instanceof HolidayMenu)){
    myHolidays = null;
    if ((e.getSource() instanceof Insurance)){
    myInsurance = null;
    }If someone has a better way, please let me know. Otherwise consider this question closed.
    Thanks for the replies.

  • How to get component item list assembly Item

    Hi,
    I am trying to get component list with assembly item.
    I have assembly item number and serial number and i want to see all components with serial number for this assembly.
    Can any one tell me query for this?
    Thanks
    Ravi

    Hello,
    You get the value as for any other Forms item:
    :value := :block.list_tem ;Francois

  • After getting the bom ,find routing,workcenter,how to get component routing

    hi experts.
              the requirement is find the find the routing details of the given materials.
    input is
    material using select-options.
      plant
    out put
    1.operator
    2.material
    3.material description
    4.workcenter
    5.vendor
    6.operation description
    7.uom
    8.qty
    9.uom
    10.setuptime
    11.processingtime
    12.deliverytime
    example.
           materials t4595959----this materials bom is give below
           3939393----
    procurement type is f
           3393939 -
    procurement type is e
           3939393------- procurement type is x
        i explanied what i tried.
       tables : marc,mapl,plpo,crhd,eord,eina,eine.
        1. using cs_com_expl_mat_v2  to get the bom explosion
       2. after got the materials with bom
       <b>MARC </b>                                  <b>MAPL</b>                  MATNR                                             MATNR               
      WERKS                1                         WERKS
    BESKZ        =======> E OR x          PLNTY
                                                             PLNNR
                2                                              3
    <b>MAPL</b> =====>  <b> PLPO</b>      =====> CRHD
                             PLNTY                                  OBJID
                            PLNNR                                   ARBPL
                           VORNR
                            ARBID
                            LTXA1
                            VGE01
                            VGW01
                             VGW02
    <b>                   1                         2                     3
    MARC</b>      ==>     <b>EORD</b> =>   <b>EINA</b> =>     EINE
    BESKZ == 'F'              MATNR             MATNR          INFNR
                                       LIFNR               LIFNR             APLFZ
                                      FLIFN = 'X'          INFNR
    followed this method to explode the bom and got the operation.
    but its only fetch the header materials operation ,not component operaion
    h we get the opeations of the component
    thanks in advance
    Regards
    ds

    hI,
           Yes i checked the debugging mode ,its only fecthed the header materials
    but not component materials,
    i here give the query for ur review ,pl give me a solution
    START-OF-SELECTION.
      CLEAR ISTPO. REFRESH ISTPO.
      LOOP AT ITAB.
      CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
          EXPORTING
            CAPID                 = 'PP01'
            MEHRS                 = 'X'
            MMAPS                 = ' '
            MDMPS                 =  ' '
         BREMS                  = 'X'
         DISMM                 = ' '
         LIFNR                 = ' '
         WEBAZ                 = ' '
            DATUV                 = SY-DATUM
            MTNRV                 = ITAB-MATNR
            WERKS                 = P_WERKS
            EMENG                 = '1'
            STKKZ                 = ' '
            FBSTP                 = ' '
            FTREL                 = ' '
          IMPORTING
            TOPMAT                = W_TOPMAT
           DSTST                 = DSTST
          TABLES
            STB                   = ISTPO
            MATCAT                = MATCAT
          EXCEPTIONS
            ALT_NOT_FOUND         = 1
            CALL_INVALID          = 2
            MATERIAL_NOT_FOUND    = 3
            MISSING_AUTHORIZATION = 4
            NO_BOM_FOUND          = 5
            NO_PLANT_DATA         = 6
            NO_SUITABLE_BOM_FOUND = 7
            OTHERS                = 8.
      WRITE: / W_TOPMAT-MATNR UNDER TEXT-H00 COLOR COL_HEADING,
               W_TOPMAT-MAKTX UNDER TEXT-H01 COLOR COL_HEADING.
        SELECT MATNR WERKS OBJID BESKZ FROM MARC INTO CORRESPONDING FIELDS OF TABLE IT_ITAB_IDEL
      WHERE MATNR = ITAB-MATNR  AND BESKZ = 'X' OR BESKZ = 'E' OR BESKZ = 'F'.
    SELECT MATNR WERKS PLNTY PLNNR LIFNR FROM MAPL INTO CORRESPONDING FIELDS OF TABLE IT_MAPL_IDEL
                                                WHERE  MATNR = ITAB-MATNR AND
                                                         WERKS = 'IN01' .
    SELECT PLNTY PLNNR ZAEHL VORNR  ARBID OBJTY LTXA1 VGE01 VGW01 VGW02 PLIFZ FROM PLPO INTO CORRESPONDING FIELDS OF TABLE IT_PLPO_IDEL
                                            FOR ALL ENTRIES IN IT_MAPL_IDEL
                                             WHERE PLNTY = IT_MAPL_IDEL-PLNTY AND
                                                  PLNNR = IT_MAPL_IDEL-PLNNR AND
                                                   WERKS = 'IN01' AND ARBID <> 0.
        SELECT OBJTY OBJID ARBPL FROM CRHD INTO CORRESPONDING FIELDS OF TABLE IT_CRHD_IDEL
                                                              FOR ALL ENTRIES IN IT_PLPO_IDEL
                                                              WHERE OBJID = IT_PLPO_IDEL-ARBID.
    LOOP AT ISTPO.
      IT_FINAL_IDEL-POSNR  = ISTPO-POSNR.
      IT_FINAL_IDEL-IDNRK  = ISTPO-IDNRK.
      IT_FINAL_IDEL-OJTXP  = ISTPO-OJTXP.
      IT_FINAL_IDEL-MENGE  = ISTPO-MENGE.
      IT_FINAL_IDEL-MEINS  = ISTPO-MEINS.
    LOOP AT IT_PLPO_IDEL.
        IT_FINAL_IDEL-VORNR = IT_PLPO_IDEL-VORNR.
        IT_FINAL_IDEL-ARBID = IT_PLPO_IDEL-ARBID.
        IT_FINAL_IDEL-OBJTY = IT_PLPO_IDEL-OBJTY.
        IT_FINAL_IDEL-LTXA1 = IT_PLPO_IDEL-LTXA1.
        IT_FINAL_IDEL-VGE01 = IT_PLPO_IDEL-VGE01.
        IT_FINAL_IDEL-VGW01 = IT_PLPO_IDEL-VGW01.
        IT_FINAL_IDEL-VGW02 = IT_PLPO_IDEL-VGW02.
        READ TABLE IT_CRHD_IDEL WITH KEY OBJID = IT_PLPO_IDEL-ARBID.
        IT_FINAL_IDEL-ARBPL = IT_CRHD_IDEL-ARBPL.
        APPEND IT_FINAL_IDEL.
        CLEAR : IT_FINAL_IDEL,IT_PLPO_IDEL,IT_CRHD_IDEL,ISTPO.
      ENDLOOP.
       ENDLOOP.

  • How to get Component Controller getter function

    I have made a mehtod in a component controller (I am trying to make a web dynpro which uses a webservice). Now I want to use it from my View but I cannot find out how.
    According to some examples I've seen there should be a function like wdThis.wdGet<comp> in the View, but I don't have such a function....:-(

    Hi Jan,
    I think that you must not have made the <b>Delta link</b> of the component Controller with the View. if you would have made the link then definately you would have got the access from the View to teh controller.
    <b>Just go to the Component -> (Select you component)-> (Right Click) -> Open data Moduler.</b>
    A Data Moduler Screen will come. Select the <b>Create Delta Link</b>. And and drag the link from the view to the component controller.
    This should definately solve your problem.
    Regards
    Pravesh
    PS: Please consider rewarding points if helpful or solved.

  • How to get the button scale/position according to background?

    Hi
    My problem is that when I scale the browser window bigger the "facebok" button scales correctly according to background, but when I make the browser window smaller the button just stays in place...
    You can see it here: www.tihemetsamoto.ee just scale the browser window
    What should I do with the button?
    Best wishes
    Kristina

    Hey Elaine
    Thanks for your response I did a facebook button myself so it would fit with background (it's an image, which I made into a button) It right on the left side of the motorcycle on the ground on the main page
    Kristina

  • How to get component path in java code

    Hi everybody,
    I have my custom component with custom folders with pictures. My custom component works with pictures. I need to know PATH to this custom component in my java code.
    Thank you
    Martin

    Check out methods in the following classes: LegacyDirectoryLocator and DirectoryLocator.
    Jonathan
    http://jonathanhult.com

  • Is it possible to get component associated with DefaultListSelectionEvent?

    Hallo,
    Is it possible to get component associated with DefaultListSelectionEvent, please?
    There are multiple tables in my window. All tables (must!) have same TableSelectionListener. Problem is that there's no information about component in default list selection model implementation. When fireing events DefaultListSelectionModel use self as event source (see DefaultListSelectionModel.fireValueChanged fragment below).
    e = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting);Any ideas how to get component in ListSelectionListener.valueChanged, please? But don't forget that as a programer, i am the lazy. Thus implementing new selection model is not an acceptable solution, but class extension is :p
    One idea is to remember models component in constructor and override DefaultListSelectionModel.fireValueChanged like this:
    class MyGreatListSelectionModel extends DefaultListSelectionModel {
       protected JComponent boss;
        public MyGreatListSelectionModel(JComponent c) {
            boss = c;
        @Override protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting)
            Object[] listeners = listenerList.getListenerList();
            ListSelectionEvent e = null;
            for (int i = listeners.length - 2; i >= 0; i -= 2) {
                if (listeners[i] == ListSelectionListener.class) {
                    if (e == null) {
                        // Only changed 'this' to 'boss'
                        e = new ListSelectionEvent(boss, firstIndex, lastIndex, isAdjusting);
                    ((ListSelectionListener)listeners[i+1]).valueChanged(e);
    }This should work, but if there already exists some mechanism, such extension is just slowing app down.

    Thanks for your help.
    However I could not get the result. I am using following code:
    public void myaction(ActionEvent event)
    FacesContext context = FacesContext.getCurrentInstance();
    UIViewRoot view = context.getViewRoot();
    UIComponent UI = view.findComponent("tab");
    if(UI == null)     
         System.out.println("UI Not Found ");
    else
         System.out.println("Get Current FecesContext");
    There is an Component having id "tab" is available on JSF page but I am getting "UI not Found" every time. Is there somthing wrong...Please suggest.

  • How do I get the Measurement scale to stay set in Adobe Acrobat IX Pro. It's easy to set the scale , but when you exit out of the commend

    How do I get the Measurement scale to stay set in Adobe Acrobat IX Pro. It's easy to set the scale , but when you exit out of the commend the scale is reset to 1 = 1.

    Thank you for checking, Tom,
    I'm confused. What do YOU get when you push the feed button? And why is it working on yours and not either of my machines?
    Today, my Mac (w/Safari 4) gets the same error message: Safari can’t open the page Safari can’t open the page “feed:http://vibrationalvoyages/vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml”. The error is: “The feed could not be loaded because the content is not in a known feed format.”
    My little ASUS (with a Linux operating system) gets a screen that says "The requested URL was not found". The URL on that page is http://vibrationalvoyages./vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml
    On both error messages, the URL I was checking was:
    http://www.vibrationalvoyages.com/DivineLight_Vibrations_Principles_and_Applications/Divine_Light_Vibrations_Principles_ andApplications.html
    The last URL was, of course, the URL generated by iWeb.
    So, my question still is:
    HOW CAN I GET MY FEEDS TO WORK PROPERLY? If the problem is there shouldn't be an http:// after feed: then, how do I get iWeb to set it up properly?
    Any ideas?
    GG

  • How to get the parent of a component in fx?

    Here is an example:
    Index.fx:
    Stage {
        title: "Online book library";
        width: 1024
        height: 768
        scene:Scene {
        fill: Color.WHITE
        content: [
           banner ,
           login = Login{translateX:715 translateY:135}
    };Login.fx:
    var logOn : Button = Button {
            translateX:25 translateY: 170
            text: "Log On"
            font: Font {size:11 name: "Verdana Bold"}
            action: function() {
                showHello();
    function showHello(){
       // add a label in index.fx whose text is "welcome!";
        }I want to show something on the index.fx but I don't know how to get the parent from the child component?
    In Flex, we use parent or parentApplication, Is there a similar function in JavaFX?

    Reusing the same Tile example, I had no problems, I suppose I was doing wrong the first time:
    def IMAGES_WIDTH = 100;
    def IMAGES_HEIGHT = 100;
    var COLUMN_NB = 3;
    var ROW_NB = 3;
    var scene: Scene;
    var previews: Container;
    Stage
      title: "Test of Tile layout"
      scene: scene = Scene
        width: 500
        height: 500
        fill: Color.LAVENDER
        content:
          previews = Tile
            hgap: 10
            vgap: 10
            layoutX: bind (scene.width - previews.width) / 2
            layoutY: bind (scene.height - previews.height) / 2
            columns: COLUMN_NB
            content: for (i in [ 1 .. COLUMN_NB * ROW_NB ])
              ImageView
                id: "IV{i}"
                image: Image
                  url: "{__DIR__}clock.gif"
                  width: IMAGES_WIDTH
                  preserveRatio: true
                onMousePressed: Hide
    function Hide(evt: MouseEvent): Void
      println("{evt.node} ({evt.node.id}) - {evt.node.parent}");
      var nm: Node = evt.node.parent.lookup("IV5"); // Middle node
      nm.visible = false;
      var ntl: Node = evt.node.parent.lookup("IV1"); //Top left node
      (ntl as ImageView).viewport = Rectangle2D { height: IMAGES_WIDTH/2, width: IMAGES_WIDTH/2 };
      (evt.node.parent as Tile).hgap = 20; // Strange effect, but works
    }

  • How to get ADF UI Component value in managed bean

    JDev version 11.1.1.1.3.0
    I have written a managed bean method and calling that method on valueChangeEvent of a Select boolean Checkbox ADF Component.
    I want to retreive the value of some other component located in the same page as the checkbox. I need the value of the component into the manged bean. I know how to get the value of the checkbox eg:
    public void selectCheckBoxListener(ValueChangeEvent evt){ 
    boolean selectedValue = (Boolean)evt.getNewValue();
    String oldvalue = (String)evt.getOldValue();
    How can I access the value of an input text component in the above managed bean ? Can someone help on this?

    Hi Sackam,
    String selectedRowId = (String)(evt.getComponent().findComponent("rowId")).getAttributes().get("value");
    The above coding will work fine
    but wht u have specified rowId???? whether the "value" field is inside a af:table????? if so i have doubt on the above code's working.....
    Regards,
    Suganth.G

  • How to get the floor plan in Webdynpro component ?

    Hi,
    How to get the floor plan in Webdynpro component ?
    Best Regards,
    Tripathi

    Hi,
    Just copy the templates from Webdynpro Component by choosing OIF or GAF or QAF template.
    Regards,
    Bansidahr

  • How to get the local file system path of an image that loaded into the image component in cq5?

    Hi,
    I'm having hard time uploading image from filesystem where as drag and drop works.
    I'm not getting a path of image selected from filesystem.
    here is my code..
    private String populateImage() throws Exception {
                        if (currentNode != null && currentNode.isNode()) {
                                       Node ImageNode = JcrResourceUtil.createPath(currentNode, "image",
                                                                          null, "nt:unstructured", true);
                                       imageUrl = ImageNode.hasProperty("fileReference") ? ImageNode.getProperty("fileReference").getValue().getString() : "";
           imageUrl = imageUrl.trim();
            log.info("MANAGE PROFILE BEAN IMAGE URL INSIDE IF IS: " + imageUrl);
                        } else {
                                            imageUrl = properties.get("fileReference", "");
                                            imageUrl = imageUrl.trim();
                                            log.info("MANAGE PROFILE BEAN IMAGE URL INSIDE ELSE IS: " + imageUrl);
                        return imageUrl;
    So if I drag and drop..
    ImageNode.hasProperty("fileReference") is returning a valid path
    but if I upload an image  it is returning Null.
    So how to get the path? any suggestions around would be appreciated...

    When you say path you mean you want the path to print out in your HTML? Is that accurate? If so you generally need to constructe that path based on the path to the current component. So if you component is located at /content/mysite/en/about/mypage/jcr:content/parsys/image then the path to the image would generally be something like /content/mysite/en/about/mypage/jcr:content/parsys/image.img.jpg/1283829292873.jpg. The .img. selector triggers the servlet associated with the foundation parbase - /libs/foundation/components/parbase/img.GET.java. The reason you reference it this way is that there is no filesystem path to the image - it is stored in the repository not on the file system, and it requires a servlet or script to ge the binary from the repository and steam it.
    Normally the way you'd construct this is to use the out of the box Image class - so look at /libs/foundation/components/image/image.jsp. Now this example assumes that your component where you loaded the image extends /libs/foundation/components/parbase. If it doesn't then you either have to change your sling:superResourceType to /libs/foundation/components/parbase or some other component that does exten /libs/foundation/components/parbase.

  • Urgent !please help!! how to get children component in encodeBegin()?

    hello all
    how can get children component in encodeBegin()?because when encodebegin the tree is not constituted so i can't get children component,how to solve?
    please help!

    You aren't providing enough information to know for sure what is going on, but a likely problem is that you're rendering a JSP page with a new component tree for the first time, so the components are getting built as the page executes.
    In the EA3 release, this caused a problem, because encodeBegin() was called from the doStartTag() method of the JSP tag (i.e. before the child components have been created). However, in EA4 the call to encodeBegin() was moved to doEndTag(), so the child components should now be getting created already.
    In order to debug this any further, we'll need a specific example of what you're doing, and what version of JavaServer Faces you're trying it with.
    Craig

Maybe you are looking for

  • How to resync Apple TV

    How can I resync my Apple TV with my Mac?  It appears to have synced well initially but my iTunes and iPhoto library has changed considerable since then and I would like the Apple TV updated.

  • Itunes sync without backing up iphone

    How do you synch certain playlists from your itunes on your PC to your iphone, without backing up the phone. I have checked in the "preferences" box to not synch automatically, but then when I go to sync the music it starts backing up anyway.

  • Export HTML to PDF file

    It would be nice if Ajax developers could export or save the content of the htmlcontrol or an iframe to a pdf document. I also beleive that AIR should have the ability to render PDF documents without having to install the PDF reader software. See wha

  • Jagged images on xml gallery

    http://codadesign.net/newsite/design.html The images on both the thumbs and the final seem jagged. Any idea why?

  • Bridge for entire network

    Here is my problem. I am taking a back up drive full of client images. There are many folders/subfolders within this drive. Ultimately, I want each computer within the network to be able to do keyword searches for images. There are so many, I want th