AS2 component sizing problem

I experiencing a problem with the AS2 (V2) components named
Datagrid and List. Is there a way to resize the using actionscript
just to display more datas instead of scaling or stretching to the
new size but still displaying the same amount of visible data.
See? when change their size in action script, they scale or
stretch, but I want to them to keep their aspect and offer to view
more items at once.
Any help will be appreciated

Don't use _width or _height to change the size if that's what
you're doing.
myGrid.setSize(width, height);
as an example if your Datagrid is called myGrid.

Similar Messages

  • Q10 Screen Sizing Problem in Blackberry 10.3

    Has anyone else noticed that there seems to be a screen sizing problem in Blackberry 10.3.
    When you wake the screeen with a gesture or pull the handset from the Q10 pocket, the screen that it "wakes" up to is enlarged, requiring the user to use the finger gestures to shrink it down to regular size.
    Or have I just not mastered 10.3 yet?
    Rgds
    E.T.
    Solved!
    Go to Solution.

    Hi Folks,
    I've sussed this one out!
    It is not a problem with the screen resolution or the software update, I had within the accessibility settings the "Magnify Mode" enabled.
    Disable this and the screen behaves perfectly..........
    False Alarm. Sorry!
    Revert to Defcon 5...........   :-)

  • Component paint problem:

    Hi everybody,
    I have just started playing with the Swing library
    recently, and I am experimenting with writing my
    own little customized component--a mini shape
    editor. There is one problem I am encountering.
    The circles that get re-drawn after a re-sizing
    of the window are crooked! However, when the
    circles were initially drawn to the compnent,
    they looked quite smooth. The only difference
    was that the circles were initially rendered
    via the graphics object that was obtained using
    the getGraphics() of the JComponent. I tried
    to force the paint method to use the graphics
    object returned from getGraphics(), but it
    does not rendered! Does anybody know what is
    the difference between these two graphics objects
    --the one returned from getGraphics() and the
    one passed into paint() by the system?
    Why am I getting the crooked line when the
    rendering is done via the paint graphics object?
    Thank you for your time in answering my question.
    --Chris

    Hi Richard,
    Thanks for your comments. As you suggested, I am
    posting some of my experimental code for discussion.
    Here is my derived class from JComponent:
    package SymbolEditorStuffs;
    import javax.swing.JComponent;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Graphics;
    public class SymbolEditorWidget extends JComponent {
    * Constructor for SymbolEditorWidget.
    public SymbolEditorWidget() {
    super();
    canvas = new Canvas(this);     
    // Register mouse listeners to detect mouse
    // events.
    addMouseMotionListener(
    new SymbolEditorMouseMotionAdopter());
    addMouseListener(
    new SymbolEditorMouseAdopter());
    public void toolChanged(String toolName) {
    canvas.toolChanged(toolName);
    public Graphics getWidgetGraphics() {
    // Return this component's graphics object.
    return super.getGraphics();
    protected void paintComponent(Graphics graphics) {
    // Let the base class paints the component first.
    super.paintComponent(graphics);
    // Then the canvas handles the customized
    // component painting.
    canvas.paintCanvas(graphics);
    protected class SymbolEditorMouseMotionAdopter
    extends MouseMotionAdapter {
    public SymbolEditorMouseMotionAdopter() {
    super();
    public void mouseDragged(
    MouseEvent mouseEvent) {
    // Canvas handles mouse drag event.
    canvas.mouseDragged(mouseEvent);
    protected class SymbolEditorMouseAdopter
    extends MouseAdapter {
    public SymbolEditorMouseAdopter() {
    super();
    public void mousePressed(
    MousEvent mouseEvent) {
    // Canvas handles mouse presse events.
    canvas.mousePressed(mouseEvent);     
    public void mouseReleased(
    MouseEvent mouseEvent) {
    // Canvas handles mouse released events.
    canvas.mouseReleased(mouseEvent);     
    public void mouseClicked(
    MouseEvent mouseEvent) {
    // Canvas handles mouse clicked events.
    canvas.mouseClicked(mouseEvent);
    private Canvas canvas;
    As you correctly pointed out, the code for my repaint
    should be situated in the paintComponent(..., which
    I have overriden with my version. I suspect the base
    class' version of this function does something significant;
    therefore, I made a call to the base class version as
    well.
    The mouse events are what I use to manipulate the
    shapes with. Therefore, a shape that has been manipulated via the mouse must re-draw itself.
    Since the MouseEvent class comes with a function
    to access the component that received the mouse
    events, I am able to get hold of the graphics object
    of that component via the getGraphics(... It is
    with this graphics object that I use to redraw the
    manipulated shape.
    However, it is not true that I have two sets of code
    that redraw a shape. All shapes inherit from an
    interface that has a draw(...:
    interface Shape {
    public void draw(Graphics graphics);
    public void undraw(Graphics graphics);
    etc.
    class CircleShape implements Shape {
    public void draw(Graphics graphics) {
    // Draws the circle at the right location.
    etc.
    etc.
    Utimately, all draws for a shape are funnelled into
    this function. The only difference is where the
    graphics object came from. In the paint case,
    the graphics object was handed to me via the
    system. In all other cases, I have gotten hold of
    the graphics object via the getGraphics(,,,
    What struck me as odd was that when I manipalated
    a circle with the mouse, which caused a redraw of
    the circle via the graphics that I obtained through the getGraphcs(..., and then I resided the window, the
    same circle was NOT rendered as around as before
    the resize of the window. Since I called the
    drawOval(... at precisely the same location in both
    times, I expect the circle to be rendered with exactly
    the same roundness. This should be true because
    the drawOval(... is applying the same algorithm to
    render the circle in both cases. The fact that they are
    not the same roundness is the mystery that I cannot
    explain! What I expected was that both rendering
    should have produced the exact same circle! But
    they did not--one is of lower roundness quality than
    the other!!
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Seeburger AS2 comm channel problem (B2B) - "perhaps AS2ID missing"

    Hi guys!
    We try to configure B2B scenario using Seeburger AS2, but communication channel monitor returns error:
    Error type: COMPONENT_ERROR,NOT_TRANSMITTED >> Error date: 9/25/07 10:05 AM >> Description: AS2 Adapter failure Outbound configuration error: Sender configuration incomplete - perhaps AS2ID missing.. com.seeburger.as2.AS2Plugin.execute(AS2Plugin.java:321) [9/25/07 10:05 AM]
    We're not sure about the scenario configuration and using identifiers (cos' this is probably the problem).
    Did someone of u already configured Seeburger AS2?
    We have configured in receiver party alternative identifier Seeburger - AS2ID, however, the message sent to target has always agency XI and scheme XIParty. It should be probably Seeburger and AS2ID (the alternative one).
    <SAP:Receiver>
      <SAP:Party agency="http://sap.com/xi/XI" scheme="XIParty">XXXX</SAP:Party>
      <SAP:Service>BS_3RD_XXXXX</SAP:Service>
      <SAP:Interface
    How to achieve it?
    Thanx a lot!
    Peter

    Hi Anoop!
    Yes, we use it on receiver side.
    ModuleProcessorExitbean exists, so it should be ok.
    What I'm not sure about is the thing with identifiers..
    In Party (let's call it X) - Identifiers, we have default agency http://sap.com/xi/XI, scheme XIParty and name X.
    What values should be there for Seeburger?
    We have Agency: Seeburger, Scheme: AS2ID; Name: X.
    Is it correct?
    We also received some 9 char long number - probably some ID to adapter(?). Any idea, if it is necessary and where to use it?
    Is it necessary to configure identifier seeburger also in Identifiers tab of Receiver communication channel? Or we can leave it empty (both- sender, receiver)?
    We use this in B2B scenario, of course: Target system is party, but we use our R/3 as Business System w/o party. Is it ok, or do we laso have to "be" as Party in our configuration scenario?
    A lot of questions, but points will be awarded 4 sure
    Thanx!
    Peter

  • Could not resolve x to a component implementation problem

    Hi,
    I have run an example. The code is listed below:
    [CODE]
    package com.mydomain.components
    import mx.controls.Label;
    public class CircleLabel extends Label {
    public var circleColor:uint = 0x000000;
    public function CircleLabel(){
    super();
    override protected function
    updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
    super.updateDisplayList(unscaledWidth, unscaledHeight);
    // Draw a circle around the label text
    graphics.lineStyle(1, this.circleColor, 1.0);
    graphics.drawEllipse(-5,-5,this.width+10,this.height+10);
    [/CODE]
    [CODE]
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:comps="com.mydomain.components.*"
    backgroundColor="#FFFFFF" >
    <mx:Panel title="CircleLabel Component" width="500"
    height="90"
    paddingTop="10" paddingLeft="10" paddingRight="10"
    paddingBottom="10"
    layout="horizontal">
    <comps:CircleLabel text="Black Circle Label"
    circleColor="0x000000" />
    <mx:Spacer width="20" />
    <comps:CircleLabel text="Red Circle Label"
    circleColor="0xFF0000" />
    </mx:Panel>
    </mx:Application>
    [/CODE]
    I am using Flex Builder 2.0.1. These file are put in the same
    Flex project and in the same folder. When I compilled them, there
    was an error: Could not resolve <comps:CircleLabel> to a
    component implementation.
    Please help me to solve this problem.
    Thank in advance,
    Duc

    to be more clear CircleLabel component should be under
    com/mydomain/components cirectory

  • Tree component display problem when text too long???

    hi all
    whenever i use a tree component to display some sort of text, i run into problems when the width of the text being display for a node is larger than the width of the tree component.
    Given: Tree tree1 with Node node1 and Child Node child1
    When the text of either node1 or child1 is longer than the width of tree1, the text is displayed on its own single line UNDERNEATH the node images. this makes the text look like it does not belong to the group of children of a given node.
    is there anyway to add maybe a text area or some sort of scrolling region to allow for any length of text for any node??
    thanks everyone!

    Yes, you can change the size of the tree node text field. Please see the "Tree Node Component Properties Window" section in the Help Contents within the IDE. Look at the info under the "Appearance" section.

  • Line Sizing Problem

    I am running several reports to produce PDFs that have an interesting behavior. When I publish a report out to our reports server, text in a text box is showing up at or near the top of the box that contains it. This report output does not look very good. On my desktop environment, when I run the report it produces a PDF with no sizing issues.
    I have read in several places that this might be a postscipt printer issue. So, I switched the printer on the report server machine to a postscript printer but it did not fix the problem. The font that I am using is Arial as that is the standard font that the client uses. The report server is 6. Any recommendations are appreciated.
    Thanks,
    Greg

    Greg,
    This is probably that server is not using the printer fonts for formatting and uses the system fonts.
    Please ensure you use the same printer / similar driver for both the desktop and server to see the effect.
    Also, the server if you run as service, by default it runs in the system login and the defaukt printer wouldn't be accessible. Please go to the services properties and ensure the login account has admin privilages to access the printer
    Thanks
    The Oracle Reports Team

  • FLVPlayback component skinAutoHide problem

    Hi guys!
    I have a problem with FLVPlayback component's skinAutohide
    property which works poorly when FLVPlayback component is the same
    size as your stage. The skin only hides when I move my mouse very
    slowly outside the FLVPlayback component.
    Also making the FLVPlayback component smaller isn't an option
    so what more options are there left?
    Is there anyway to hide the skin by yourself?
    I allready tried the following code, but I think this is very
    unreliable (I get some errors when I move my mouse very quickly
    over and outside the FLVPlayback component):
    video.addEventListener(Event.MOUSE_LEAVE, mouseLeaveHandler);
    video.addEventListener(MouseEvent.MOUSE_MOVE,
    mouseMoveHandler);
    function mouseLeaveHandler(event:Event):void {
    video.skin = "";
    function mouseMoveHandler(event:Event):void {
    video.skin = "SkinOverPlayStopSeekFullVol.swf";

    I am having the exact same problem. Thanks for info that this
    is caused by movie being the same size as the stage. I am also
    working on a solution and will let you know if I find one.

  • Problem identified jsf component and problem of checkboxs

    hello,
    i have 2 questions:
    - 1
    I have a js function that show/don't show a tab when we chose yes/no on a SelectOneRadio:
    function display(fieldRadio,tabtohide)
    div = document.getElementById(tabtohide);
    if(fieldradio.value=='false')
    div.className='hide';
    else div.className='';
    I call this function in the radio component, like this:
    onclick="display(this,'tabid');" and it works very well.
    The problem is that i would like to replace 'this' by the id of the component (to call this function at another place).
    I'v tried the document.getElementById(JsfTagId); but it doesn't work with jsf tag.
    - 2
    I use a selectmanycheckbox like this:
    <h:selectManyCheckbox value="#{BeanDemandeur.type}" required="false">
    <f:selectItem itemValue="Nouvelleinstallation" itemLabel="Nouvelle installation"/>
    <f:selectItem itemValue="Mise�jour" itemLabel="Mise � jour"/>
    <f:attribute name="fieldRef" value="Type de demande"/>
    </h:selectManyCheckbox>
    In the bean, i use the variable type like this:
    private String[] type = new String[2];
    public String[] getType(){return type;}
    public void setType(String[] rr){type[0]=rr[0];type[1]=rr[1];}
    And finally, in th faces-config.xml:
    <managed-property>
    <property-name>type</property-name>
    <property-class>java.lang.String[]</property-class>
    <value/>
    </managed-property>
    But an error occured: Can't set managed bean property:'type';
    thx u for your help

    r u getting any connversion error !
    what is the error ru getting when u run the code

  • Component cable problem

    Hi!
    I'm trying to connect my ipod touch 1st gen to my Samsung TV (LED series 5) using a Mac component cable. So far, I've only been able to watch and listen to videos, but unable to play any music.
    Any suggestions?
    Thanks in advance!

    Hi Roberto!
    Your best bet if you don't want voice over is to plug your iPod in to your computer and de-select voice over. However, If it got wet, there may be other problems. Try posting this as a new question, and be specific about what's happening. No doubt that lots of people will be interested and willing to help! Best of luck to you!
    Sandygirl

  • Component Configuration Problem

    Hi!
    When trying to create a new Component Configuration, I receive the following error:
    The following error text was processed in the system TS3 : Screen output without connection to user.
    The error occurred on the application server PSD1P02_TS3_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    SYSTEM-EXIT of program SAPLSKEY
    Function: TADIR_OBJECT_CHECK of program SAPLSKEY
    Function: CHECK_ACCESS_KEYS of program SAPLSKEY
    Method: CHECK_TROBJ_BEFORE_EDIT of program CL_WD_CONFIGURATION_MODEL=====CP
    Method: FILL_PERS_DATA of program CL_WD_CONFIGURATION_MODEL=====CP
    Method: EDIT_COMPONENT of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Method: IF_COMPONENTCONTROLLER~EDIT_COMPONENT of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Method: ONACTIONACTION of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Method: ONACTIONACTION of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Has anybody got an idea what the problem could be?
    Regards,
    Thomas

    Hi Thomas,
    I have come accross such a error when i am trying to save the Component Configuration. I have saved the component in the $tmp/local objects and later when the object entry comes below the WebDynpro component then I changed the Object directoty entry and changed the package.
    Best regards,
    Suresh

  • Component Interface problem

    Hi,
    I am creating a new component interface based on the component LANGUAGES_CMP using the application designer. It comes up with a red X on the PROPERTIES.
    On the bottom of the screen, it says "Found Error, please review Component Interface structure.
    How do I fix this problem ?
    Many thanks
    Ivy

    Anand,
    I think I used to have a similar problem in 8.3. My data source was a staging table. The process would run for a while and blow up on an employee. I would back out all of the updates and run the process again and it would blow up on a different employee (sometimes before the employee in the last run and sometimes after). I tried a couple of different things. I put an additional step in my application engine that called an operating system Sleep command that would cause a break between employees. I theorized that memory wasn't getting cleaned up between employees and pausing between employees would give the system (probably in PeopleSoft) a moment to get memory cleared before the next employee. I also tried setting some flags so that I would ignore an employee that failed then attempt to process them again. I don't think the second technique was terribly successful.
    In later releases of PeopleTools the problem seemed to have cleared itself up (at least in 8.3).
    Paul

  • Component Font Problem

    Hi all,
    I have a problem with displaying fonts in a component which
    has been masked, namely, list, dropdown and scroll pane. It all
    seems to work fine, but when I load the first swf into the second
    using a Loader object the fonts do not display.
    I have tried putting the components in the parent swf as well
    as the child.
    I have also tried this:
    StyleManager.setStyle( "textFormat", new
    TextFormat("Verdana") );
    StyleManager.setStyle( "embedFonts", true );
    in both and
    I set the ApplicationDomain to be
    ApplicationDomain.currentDomain
    Anyone got any ideas? Hope to hear from someone soon.
    Thanks in advance

    >
    Javier Jimenez wrote:
    > I was able to reproduce the issue, however I found it to be highly dependent on canvas size and the size of the Slideshow component.
    >
    > Have you tried changing canvas size?  Perhaps try that and see if it changes any of the truncations.
    > You might also try change the size of the parent slideshow. 
    >
    > Changing both of these, I've been able to change the truncation of titles in the child swf.
    Javier,
    Thanks for the response.  When I first noticed the problem, the parent XLF had canvas dimensions that were about five pixels greater than the respective widths and heights of the Slide Show component.  There was a visible space between the edges of the Slide Show component and the edges of the canvas.  Likewise, the child XLF had about five to ten pixels between the edges of the canvas and the edges of the main background.
    I have now resized the parent canvas to be about ten pixels greater on both sides, increasing even further the distance between the canvas edges and the Slide Show component edges, and saw no change.
    I am reluctant to experiment further without knowing more about what you were seeing on your end.  Can you be more specific about your test results?  Thanks.

  • Component Link problem

    I know this isn't strictly a flash problem but the component
    I am using is not giving any support so I am hoping someone has an
    idea of what my problem
    I am using a page tuning component "Flip book"
    When I put the book onlne it works if I reference the swf
    file but if I embed it in HTML the compnent doesn't pick up the
    pages (it will turn blank pages)
    SWF
    http://www.whitesgraphics.com/clients/bms/events/events.swf
    HTML
    http://www.whitesgraphics.com/clients/bms/events.html
    The config.xml file I have made has absolute page references
    http:// etc)
    Thanks
    Brian

    Thanks
    When I went back to change it, I realized I had a typo in the
    absolute (
    http://) address which didn't help either!
    It now works
    Brian

  • Component resizing problem in Vbox

    Hi.. I am facing a peculiar problem.. I have a vbox which contains 5 components, each of which has a line graph and a legend.. But all of them need not be visible at a time.. It depends on the number of parameters returned from a webservice call... so at a time 1-5 of such components maybe visible... i do this by setting includeInLayout and visible to false..
    Each of the components have height and width set to 100%. So I expect all the components which have includeinlayout and visible set to true to be equal in size... But if initially only one of the component is visible and then i want to show 2 components by setting these properties, the component which was visible initially is not resizing.. It is staying the same size as before making the second component visible... second component is getting correct size (half of the size of the VBox)..... Am i doing something wrong here? Can some component not reduce in size if another child added/included in layout of its parent?
    Thanks in advance for your help!

    Hi Philip,
    This is my vbox declaration. Trendline has a linechart and a legend
    <mx:VBox id="chartsContainer" width="100%" height="100%" verticalScrollPolicy="auto">
       <chart:TrendLine id="defaultTrendLineChart" width="100%" height="100%" includeInLayout="true" visible="true"/>
       <chart:TrendLine id="trendChart1" width="100%" height="100%" includeInLayout="false" visible="false"/>
       <chart:TrendLine id="trendChart2" width="100%" height="100%" includeInLayout="false" visible="false"/>
    </mx:VBox>
    And here is the code where i selectively include various charts in the display
    var count:int = 0;
    for (var parameterType:String in parameterTable)
       var trendLineChart:TrendLine = trendChartArray[count++];                                                       
       trendLineChart.includeInLayout = true;
       trendLineChart.visible = true;
       trendLineChart.Initialize();
       trendLineChart.SetView(bIsChartView);                       
       trendLineChart.LoadChart(dataProvider, parameterType, parameterTable[parameterType]);
    I have stored all the children of the vbox in an array for easy fetching
    var trendChartArray:Array = [defaultTrendLineChart, trendChart1, trendChart2];
    parameterTable is a Dictionary in which number of parametertypes can vary from 1 to 3 depending on the result of a webservice call. The problem is that if initially i am showing only one chart and then i have to show 2 charts, the first chart's size is not getting reduced. But the second chart added is getting correct size.
    Thanks a lot for your response.

Maybe you are looking for

  • How to use VO attribute in a page region in valueset of flex segment

    I have a seeded oracle page - having 2 regiions The first region shows basic employee information like job, position etc The second region shows a flexfield having 4 segments. My requirement is to restrict the value in first segment based on the empl

  • How to design a simple binary one-shot

    I need a simple binary one-shot that when a signal becomes true, a new value goes True for one evaluation and does not get re-triggered until the original signal becomes false and then true again. I have tried many ways and either the wait for the si

  • Add a horizontal and a vertical scroll bar to a screen

    Hi, How to add a hotizontal scroll bar and a vertical scroll bar to a screen? Thanks a lot. Best Regards, Stephanie

  • Oracle's efforts to secure the database

    Hello, Today morning I was reading this page : http://www.businessinsider.in/Google-is-going-to-pay-hackers-infinity-million-dollars-to-find-security-holes-in-Google-C- and since I always thinks all good things for Oracle, so the same question poped-

  • MobileMe album doesnt show in iPhoto

    I uploaded two albums last night and i left the computer alone and when i returned i saw that iPhoto had crashed. When i reopened iPhoto i saw that the two albums i uploaded showed up in the mobileme dropdown but when i clicked on them to see the pho