rotation on GridFieldManager problem

Hello world

I'm having a hard time trying to manage the rotation for GridFieldManager.

I put the properties of column as GridFieldManager.FIXED_SIZE. I add the data to the grid. Then I add the grid to an absolute layout manager. And in the case of rotation, change the properties of the column in the sublayout of the absolute layout manager. Nothing changes.

Could you please suggest a better approach to this problem?

Kind regards

I do not see GridFieldManager code in there, I assume that it is this code that is changing things.

There is a round floating GridFieldManager that initially seemed to come from the code provided by Anthony Rizk in his book "Beginning BlackBerry Development".  I looked at this code, but to do this kind of layout, I prefer TableLayoutManager, which is a bit of code provided to the RIM.  You will find it here:

http://supportforums.BlackBerry.com/T5/Java-development/create-a-rich-UI-layout-with-TableLayoutMana...

Tags: BlackBerry Developers

Similar Questions

  • Firefox on Windows. When I click on a link, Firefox hangs up with a rotating cursor. Problem goes away by moving the mouse. This does not happen with IE.

    Using Firefox 27.0, when I click on a link, a rotating cursor appears and continues to run. Move the cursor will solve the problem. I had this problem for several versions of Firefox, and I use automatic updates.

    Please update Firefox, troubleshoot Add - ons and if this does not help, then do a clean reinstall.

    Thank you!

  • GridFieldManager problem they zoom automatically when return

    Hi all

    I have attached a sample application which I extract below the problem.

    GridFieldManager page zoom automatically when come back to another page or dialog box.

    Scenario according to the directives of the sample application: -.

    (1) launch of the application

    2) click the button 1 or 7

    3) click on the text field of the Find dialog box
    (4) close the "back" button keyboard
    (5) do same process 2 or 3 times after that you realize page zoom automatically (I have attached the screenshot).

    Note - this problem in touch device (9500,9550,9800) extraction.

    Hello

    Thanks for the reply.

    Yes, I know GridFieldManager.AUTO_SIZE work very well. But I can't zoom in GridFieldManager.FIXED_SIZE problem.

  • Focus with GridFieldManager problem

    I'm having a problem of development/unfocus.  A label should draw a border of red around him when it gets the focus and a black border when he loses it.  But when I add/remove a label for a GridFieldManager (see below the code and the screenshot), I find that the update will temporarily to the field at (0,0) and 'loses' never the focus - in other words, he draws a red border, but never black.  So, I end up having 2 fields with the red border - something that should never happen!

    I'm under 5.0 SDK on Eclipse.  I reproduced the problem in the simplest possible form: If you import the following code, you'll see for yourself.  Please help me!

    Import net.rim.device.api.ui.XYEdges;
    Import net.rim.device.api.ui.component.LabelField;
    Import net.rim.device.api.ui.container.GridFieldManager;
    Import net.rim.device.api.ui.container.MainScreen;
    Import net.rim.device.api.ui.decor.Border;
    Import net.rim.device.api.ui.decor.BorderFactory;

    / public final class screen extends MyScreen
    {
    private GridFieldManager MDT;
       
    public MyScreen()
    {
    Set the displayed title of the screen
    setTitle ("MyTitle");
    int size = 3;
    GFM = new GridFieldManager (size, size, GridFieldManager.FIELD_HCENTER |) GridFieldManager.FOCUSABLE);
    for (int y = 0; y)< size;="" y++)="">
    for (int x = 0; x)< size;="" x++)="">
    LabelField nf = new LabelField ("H", LabelField.FOCUSABLE) {}
    protected boolean navigationClick (int time, int status) {}
    swap (this);
    this.setFocus ();
    Returns true;
    }

    Protected Sub onFocus (int direction) {}
    this.setBorder (BorderFactory.createSimpleBorder (new XYEdges (1,1,1,1), new XYEdges(0xFF0000,0xFF0000,0xFF0000,0xFF0000), Border.STYLE_DASHED));
    }
                       
    protected void onUnfocus () {}
    this.setBorder (BorderFactory.createSimpleBorder (XYEdges (1,1,1,1))) of new;
    }

    };
    nf.setBorder (BorderFactory.createSimpleBorder (XYEdges (1,1,1,1))) of new;
                   
    GFM. Add (NF);
    }
    }
    Add (GFM);
    }
       
    private void swap (LabelField lf) {}
    GFM. Delete (LF);
    GFM. Add (LF);
    }
    }

    Thus, even if I clicked on the intermediate element, an area of development is established around the item to (0,0)

    Why is this?

    Sorry to get to this post, this late - I could have saved a lot of traffic if I noticed it earlier...

    In any case - onUnfocus has a very strange behavior. In some cases (I don't know which) it is not called at all when the field loses focus. So, rather than using onFocus/onUnfocus pair, use FocusChangeListener. This listener will turn on the eventType and onFocus on FOCUS_GAINED work and the work of onUnfocus on FOCUS_LOST.

    Overall, it will look like this:

    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.container.GridFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public final class MyScreen extends MainScreen
    {
        private GridFieldManager gfm;
    
        public MyScreen()
        {
            // Set the displayed title of the screen
            setTitle("MyTitle");
            int size = 3;
            FocusChangeListener fcl = new FocusChangeListener() {
              public void focusChanged(Field field, int eventType) {
                switch (eventType) {
                case FOCUS_GAINED:
                  field.setBorder(BorderFactory.createSimpleBorder(new XYEdges(1,1,1,1), new XYEdges(0xFF0000,0xFF0000,0xFF0000,0xFF0000), Border.STYLE_DASHED), false);
                  break;
                case FOCUS_LOST:
                  field.setBorder(BorderFactory.createSimpleBorder(new XYEdges(1,1,1,1)), false);
                  break;
                case FOCUS_CHANGED:
                  break;
                default:
                  break;
                }
              }
            };
            gfm = new GridFieldManager(size,size,GridFieldManager.FIELD_HCENTER|GridFieldManager.FOCUSABLE);
            for (int y = 0; y < size; y++) {
                for (int x = 0; x < size; x++) {
                    LabelField nf = new LabelField("H", LabelField.FOCUSABLE) {
                        protected boolean navigationClick(int time, int status) {
                            swap(this) ;
                            this.setFocus();
                            return true;
                        }
    
                    };
                    nf.setBorder(BorderFactory.createSimpleBorder(new XYEdges(1,1,1,1)));
                    nf.setFocusListener(fcl);
    
                    gfm.add(nf);
                }
            }
            add(gfm);
        }
    
        private void swap(LabelField lf){
            gfm.delete(lf);
            gfm.add(lf);
        }
    }
    

    You will notice that I have created a FocusChangeListener to listen each LabelField and changed calls setBorder on focus has changed not update in page layout (as does not change the size of the border), which will make it much more effective and does not cause the entire screen redraw

    You can do even better if you setBorder on the ground as it is created, but use the long form - viewable one following first parameter. Define borders forVISUAL_STATE_FOCU andVISUAL_STATE_NORMA at least. Again, take a long look at prototypes withupdateLayou indicator. This way you won't have to worry about changes in development at all - the system will do it for you

  • Rotation of the problems since upgrade using Wacom Intuos 5 in canvas

    I upgraded my copy CC of Photoshop this morning and seems to have lost the ability to rotate the drawing area using the ring on my Wacom Intuos 5.  The zoom features, scroll & brush size still function perfectly.

    It makes comfortable concept sketch hurt and I find the feature.  Is this likely to be a software error? Or is there a setting that prevents any rotation of the canvas?

    I hope someone can help!

    Thank you

    Hello Akash,

    Thanks for the information.  Although it does not directly address it lead me to discover the true nature of the problem.  For some reason any Photoshop stopped grateful OpenGL.  I've updated the graphics card driver and set the parameters of Performance within Photoshop.  After a restart of Photoshop, everything returns to normal. Thanks a lot for your help!

  • Rotation of photo problems: I can't save a photo rotated; How can I save with success?

    Having spent a picture received for read only (so I can run), when I try to save, it can not and the computer goes into a loop to try at the same time to save and close at the same time, which can only be stopped by ending the program, which prevents the computer from saving the rotation. How can I save such a photo tour with success?

    ALSO; It's a huge hole need to spend each photo to read only. Is there a method to make the pictures all entrants read-only?

    Read-only is a fairly accurate description of why we can't do anything, but look at the files.

    How to open a file if I get an access denied message?

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-open-a-file-if-I-get-an-access-denied-message

    What to know before applying permissions to a file or folder

    http://Windows.Microsoft.com/en-us/Windows7/what-to-know-before-applying-permissions-to-a-file-or-folder

  • Bad rotation with Newport PR50PP Platinum rotation controlled by SMC100PP motor controller - is that a communication or a hardware problem?

    Hello world

    It is a long shot, but I can explain my problem and I hope that someone has seen this problem before.

    PROBLEM:

    I use a rotation of Newport PR50PP turntable that is controlled by a motorcontroller SMC100PP through LabVIEW. In my experience, I shoot the scene 180 degrees to the right in increments of 36 and then turn to "zero" counterclockwise. This "zero" point must be the same 'zero', I started to leave before the rotation. The problem is that it is off by nearly a whole degree. I need to always start in the same place.

    The big problem - computer / Platinum rotation it's originally 'zero '. I record the unit of internal rotation of the scene after each movement and he tells me it's the same 0.00 that began.

    Q: is this a problem of communication between LabVIEW and the PR50PP or a mechanical problem?

    OTHER NOTES:

    • The change of rotation is repetitive and linear. I repeated more than 15 times and got about the same offset.
    • How I discovered this problem - I have a half plate on the rotation stage and looked between cross polarizers. I recorded the Cos ^ 2 model of intensity of each scan. Each pattern is rotated to the front even if the computer reports that they should be at the same position.
    • I'm under LabVIEW 2011 and by using the controls provided by Newport SMC. They communicate via USB of series.
    • Joined a technical description of the problem that my labmate written upward.

    Any idea is appreciated.

    ~ Liz Cloos

    Hello world

    After running additional tests, I discovered that it is NOT a problem of LabVIEW. The plate wave inside the rotation of PR50PP plate was a little loose and gave the appearance that the zero is changing. The ribbed plate kept turning slightly after each change of direction.

    Thanks for trying to help.

  • Portege M200: Graphics need Win 7 driver for Hibernate/sleep, rotation

    Hello

    I recently bught use M200. I installed Windows 7 above. It works really nice.
    I use it with ' Toshiba Portege M200 Tecra M4 Multi Dock 2 PA3315E-3PRP ' and a second screen with a resolution of 1680 x 1050.
    Now I am looking for a witch of recent driver has the following features:

    Work screens, Hibernate / sleep, rotation.

    * Problems with 97.52: *.
    Does toshiba drivers wrong with screens, if the outside is connected inside stops working, is not more recognized in windows and you can't put it back to work... (see the nvidia Panel but you can not activate it)

    At the same time the internal screen stops working, the external screen in rotation.
    So right now, I don't have a working screen.
    The same problem I have with all the drivers from the 97,29 version.
    With the version of the driver 101,70 graphic glitches extra one there the second screen of rotatet.

    With the version of the driver 156.55 both screens are gray after installation of the driver...

    The pilot previus to the working version of the version 97,19 to 96.33 without hibernation / sleep (glitch)

    The works of 95,62 driver with Hibernate but external resolution is only 1600 x 1024(can be modded), but if you turn the knob to another landscape all black rest until you rotate to the natural landscape...

    The pilot 88.61 has without hibernation / sleep (gray)
    ----------------------------------------------------------------------

    If anyone has any advice for me what can I do to get Hibernate working with old drivers or the second screen with latest drivers?
    Do not install XP, its installed but not used because windows 7 RC came out and made for tablets... I can't miss more...

    * [PC-information] *.
    Modellname Portege M200
    TEILENUMMER PPM20U - 004CD 4
    Serial number 44053610HU
    BS-Version Microsoft Windows 7 Ultimate 6.1.7100
    Version of the BIOS Version 1.80
    Processor Intel (r) Pentium (r) M processor 1.60GHz
    2048MB RAM Arbeitsspeicher
    Festplattenkapazitaet 116,512,714,240 [bytes] 108.511 [GB]
    Kapazitaet of the freien Festplattenspeichers7, 886, 950, 400 [bytes] 7.345 [GB]
    Video NVIDIA GeForce FX Go 5200 32 / 64 M Version = 9.6.8.5
    Bildschirmaufloesung 1050 x 1400 Pixel
    Farbqualitat True Color (32 bit)
    Ohne sound
    Netzwerk Atheros AR5008-Drahtlosnetzwerkadapter Version = 2.0.0.70 MAC address = 00:1: 0F:B2:97:60
    Intel(r) PRO/100 VE-Netzwerkverbindung Version = 8.0.47.1 MAC address = 00:08:0 D: 8B: FE:FA
    Modem TOSHIBA Software Modem Version = 2.2.89.3
    Internet Explorer 8.0.7100.0
    IDE-Gerät ST9160821A ATA Device
    Edit/Delete Message

    Akuma is right. For the time being, you can use Windows 7 for testing purposes. Official Windows 7 will be support begins when Microsoft, it offers for sale. So far, Toshiba or any other manufacturer offer some Windows 7 compatible drivers.

    I installed Windows 7 on my Satellite Pro P300 and use it without a driver.

  • cq893a: printing problem

    When printing autocad hollow, it is automatically reversing the artwork of both roll and cut sheets (A4 / A3) not only this cannot be able to center the plot in sizes A4 & A3. I want to check that the problem was printer, PC, drivers and software or autocad.

    Hello

    Sorry, I did not understand what you mean with "reverse the work of art."

    You have a rotation or media problem, problem switching?

    to find out what the problem is you need to start insulating

    printing from another application, that is to say printer another file, print from another computer, print an internal page

  • control individual rotation of several objects with also individual wiggles

    Hello

    I'm trying to animated 2D the leaves on a tree to create the illusion of a wind blowing leaves. To get the effect I want to have each off slowly and uniquely wriggling on the rotation parameter, but if a big gust is imagined, then create a rotation together with a controller that also adds a uniform rotation in line with each leaf on top of each individual wiggle. So, indeed, that each leaf is slowly randomly turning (as with a wiggle (1.5) applied to rotation), but then I can push each leaf simultaneously with an expression such as thisComp.layer("Adjustment_Layer_1").transform.rotation

    The problem is I want both of what is happening at the same time, and right now one cancels the other.

    I am a newbie to using expressions

    You just add the values.

    mGust = this.comp.Layer ("XYZ").transform.rotation;

    mWig = wiggle (3,2);

    mGust + mWig

    Mylenium

  • extra frame created in the upper left corner of the scene when exporting .mov only when the 3D rotation tool

    Hi, I really need help because my deadline is imminent, and I looked all over for an answer but have found nothing... I use Flash Professional CS6 on a Mac and have not had any problems to export before .mov until I tried to use the 3D animation tool. A copy of the first image in the upper left corner of the scene - but it shows not in the timeline panel, or when you test the movie. It appears in the preview by choosing export options and stays there during export. I did about 5 different tests and they all have the same problem - it will only go away if I do not use the 3d rotation tool. Problem is that I really want to use this tool to get the effect I want!

    Thank you very much in advance!

    I could easily create the same problem, even in the current version of Animate. The only solution I could understand was to put a keyframe of Tween non - 3D before where the 3D Tween starts. Just frame 1 look exactly as it does now, only to do tweening 3D pieces start from frame 2. It then exports frameless glitch.

  • Irregular contours after rotating an image of contours

    I have this problem a lot, but I guess I'm just now move ask about it.

    When I have a picture in cs2-cs3-cs4 etc and I rotate by an angle I get fine holes all along the sides. It is becomes very pronounced in an image outlines even when I I caress the picture after rotation. The problem is most obvious when the image is not angled as 45 or 90 degrees but more visible in between the angles.

    Any suggestions?

    ryanroy. Roy wrote:

    I have this problem a lot, but I guess I'm just now move ask about it.

    When I have a picture in cs2-cs3-cs4 etc and I rotate by an angle I get fine holes all along the sides. It is becomes very pronounced in an image outlines even when I I caress the picture after rotation. The problem is most obvious when the image is not angled as 45 or 90 degrees but more visible in between the angles.

    Any suggestions?

    What you see is alaising and it is inherent in raster charts when the line to appear is not parallel to columns or lines of the image. It can be mitigated to some extent by antialaising, which softens the edges of diagonal lines. When you select all of a picture and STROKE for a border, antialaising is used. With the polygonal lasso tool, you can turn antialaising or off. Alaising is less apparent to very high resolution, but it cannot be elilminated.

    Here are a few triangular selections with antialaising enabled or disabled:

  • information on the screen is vertical instead of horizontal

    Information on the screen are all vertical, make me lean to the left to read anything on the screen.  I need to change the display so that it is horizontal.  I don't know how it go vertical!  Help me to guide the screen so that it is readable by any law.

    The following may work: CTRL + ALT + up arrow
    or a key similar to the keyboard combination for some, but not all video cards.

    Some graphics cards also come a utility or an option to rotate your screen.
    More likely to be found in the display option / advanced.
    You can also disable screen rotation so the problem does not recur.

    Click on Start/Control Panel/display/configuration tab, Advanced button, or it could be a
    Icon in the Control Panel specifically for the video card you have.

    J W Stuart: http://www.pagestart.com

  • Imported JPGs are backwards

    2 15 CC

    I took hundreds of photos for a client. I used my camera and he was standing. I copied the photos from the card and they import upside in Premiere Pro. (see I read the forums first) they ae side straight up in every single app except PP.

    Anyway if I change the photo in Photoshop it publishes the right upwards. When I go back to the first, they are backwards (or downside up if you live in the southern hemisphere). PSD files are to come correct. IT seems that just the pictures in this folder are backwards but point out that they were taken different evening and were executed through ambient light (they look good here).

    I know I can rotate photos of problem or can edit them in PS and save it as a psd. but have we seen this before?

    No apple product used is all Windows Basic. (Camera, Samsung)

    Rick

    Another assumption:

    Too large photos?

    I know it's for the elements (old topic, before HD), but:

    Re: Images in reverse?

  • Dell Studio XPS 435mt does not - light light orange card mother

    I had my Studio XPS 435mt for recent years and love it! Normally I leave my machine on almost every day all day so I can access it remotely. Well, today my power went out (the product is connected to a good surge protector) and now it won't turn back on.

    When I plug it in there is a green light to the rear of the machine and internally, there is a orange light, which lights up. When I press the power button nothing happens, not even try to power on. I read a few forums that suggest all of a new power supply, a new motherboard and even a job to 'put your motherboard in the oven' random.

    So my question is can I do anything to check what the problem is? Also, if it of a motherboard problem and needs to be replaced, where is the best place to get a motherboard? Reference Dell sells to them directly or I have to go to a 3rd party to track down?

    Thank you in advance for your help!

    A type of power surge Strip does nothing to protect the PC during a power failure.  You need a 'UPS' unit to protect the PC during short power outages (most).

    As he ran, anything could have happened to the power supply to the motherboard to a component on the motherboard.

    As you have the power to 'keep' alive on the card mother, indicated by orange LED, power supply works somewhat.  Unplug the power connector 24 pins on the motherboard.  Then the rider GREEN wire to a BLACK wire and see if the power turns on (fan running).  If it does, it does not say the PSU is good (only replace it with a known good power is the only true test for a power supply), but it does not say the rotation of the problem is not in the power.  If it does not start, food is the likely problem.

    If the power supply lights the other most likely problem is the motherboard.  Reinstall (unplug and plug back in) the prior panel connector on the motherboard and then give it a try. If it still does not respond, the motherboard is suspect.  The power switch, itself, would be a very remote problem.

    Dell is a source for a replacement motherboard.  There are sites that sell Dell used/given to nine motherboards and ends up with a google search.  Only another mother of exact replacement fit and work.

    Finally, regardless of the tests do or anything that seems as it isolates a certain part, unfortunately only to replace the part really tell you if it's bad.  To avoid buying something you don't need you can make to a PC repair center renamed to what is really wrong.

Maybe you are looking for