HorizontalFieldManager - paint - setBackground is painted on top of points

In Paint method below graphics.setBackgroundColor (bgColor) causes painting to occur on the best elements added to the Manager. So it can not see the elements more. What should be done to solve the problem?

public class FMHorizSingleCont extends HorizontalFieldManager {

  public FMHorizSingleCont() {
    bgColor = Color.WHITE;
    ............

  protected void paint( Graphics graphics ) {
   graphics.setBackgroundColor(bgColor);
   graphics.clear();
   super.paintBackground(graphics);
  }

Sorry my mistake, I had an image covering the bottom! Problem solved.

Tags: BlackBerry Developers

Similar Questions

  • Setting top stopping point

    I'm sorry if this has been asked before. I'm still exploring the options of Muse and hit a small snag. I start my projects with the default 1200px breakpoint. This was not too a problem before that I didn't apply for the colorful backgrounds. But I ran over a large monitors (approximately 1936px each) so now I'm getting a white space outside the header area (now works on the master page) and I want to fill the page. My question is should I create a top stopping point and adjust accordingly, or is there something in the settings I can adjust to make it stretch?

    Thank you in advance.

    Try what is called the "background color"

    If that does not match your script, make the breakpoint 3000px. I have a site that needs different blocks of color, and the only way I found to avoid the white stripes is greater than any possible display breakpoint. Not a more elegant solution, but it works!

  • Help! Poorly rendered paint brush doodles 1 point width

    I have a graphics tablet (Wacom DTU-1631), hung on my Mac and I use it in Illustrator to capture drawings and writing during presentations (the Mac screen is projected on a wall and the idea is not to use a whiteboard). I am using the Brush tool for a 100% waist of the brush by 1 point in a 8.5 x 11 paper. I put the pen on the tablet screen and I write cursively I see clearly my writing is faithfully reproduced. However once I have lift the pencil, Illustrator seems to increase the thickness of my writing, insofar as the lowercase e and o often completely fill their closed loops. I zoomed in on these incorrect characters and it certainly looks like Illustrator is a very bad job made the paths that result. I wish I could post a picture of him! I try the same in InkScape for example and it works fine. If I select a larger size of brush he forces me to write more and then quickly decreases the effect of rendering bad way, but I want / need to use a size of about 1 point and 2 point is too large. Anyone know if this is a bug or if it is at my end pilot error?

    If zigzag gives you the correct and desired result then

    1. go in the appearance Panel and dialog box

    2 deselect New Art has basic appearance

    3. create a sample letter to the size you want with the Pt 1 round brush to 100%

    4. apply the zigzag effect.

    The art of the next (the letter form) you create will zigzag applied.

    If you apply a different effect, somewhere on the road, you will have to redo the steps above.

  • UI - Custom Paint in Horizontal Field Manager after completing the setting scrolling

    Hello

    I am able to do horizontal page scrolling when you add fields in horizontalFieldManger.

    But now I want to do a custom in horizontalFieldManager, paint using the page horizontal scrolling top given adjustment.

    Thank you

    It seems that you want to have background - repeat some almost text in your example. Then move it out of the subpaint and by the paintBackground-, you will not have to invoke any Super... here.

    Now when you say that a horizontal scrolling does not work, what exactly do you see? What do you see? Do you have enough focusable fields in your handler for scroll? Have HORIZONTAL_SCROLL style bit set?

  • By using the SHIFT key to extend or paint line

    Hi all. I am using a very old version of Photoshop for the past 10 years and I'm used to use the SHIFT key to extend a line or line of paint. By that, I mean I use the paint to make a point, and then hold down the SHIFT key and make another point elsewhere and which creates a straight line. I just bought CS6 and this feature doesn't seem to be the case. Is this something that I need to enable a preference?

    Thanks much for any help.

    DOH! I had always "use pressure for opacity" checked. When I unchecked, the functionality of the SHIFT key worked fine! It would take hours of futzing all about understanding this one. But too bad I can't access the pressure/opacity feature and continue to use the post - but perhaps one cancels the other is.  You're a genius, just a nice guy to take that time with me. C very much appreciated.

  • Faced with centered Background Image

    I have the code that I found always give me a background focused on a screen image.  It is based on the ideas presented here:

    http://supportforums.BlackBerry.com/T5/Java-development/MainScreen-explained/Ta-p/606644

    However, the code does not, at least not for me.

    I tried other variations as well, as the addition of another not VFM of scrolling, then adding data scrolling to the optimization of resources, but even this indirection suffers from the same problem.  Have two screenshots to show, the 'exclamation' should be at the centre according to me!

    Code follows.

    To illustrate the problem, just space out the field change with "entry" for more complete screen.  Then the same thing to one below the Bitmap and then scroll and down using the trackpad.  I suspect that you will see the problem.

    I saw this on OS 6.0 and 7.0 OS simulators.  Not tested on OS 5.0 and tested only on touchscreen devices.  I'll do some more tests later.

    Someone at - it suggestions on the subject of how we get the "centered" background Bitmap actually stay in the Center will still let me add lines to my editfields and scroll using the trackpad?

    Net.rim.device.api.system import. *;
    Net.rim.device.api.ui import. *;
    Net.rim.device.api.ui.component import. *;
    Net.rim.device.api.ui.container import. *;

    /**
    * A screen class to test background bitmap images.
    */
    SerializableAttribute public class BackgroundImageScreen extends screen
    {
    private int backgroundColor = 0x00FF0000;
    private bitmap _backgroundBitmap = Bitmap.getPredefinedBitmap (Bitmap.EXCLAMATION);
       
    Constructor
    public BackgroundImageScreen()
    {
    Super(Manager.USE_ALL_WIDTH |) Manager.USE_ALL_HEIGHT | Manager.NO_VERTICAL_SCROLL | Manager.NO_VERTICAL_SCROLLBAR);
    setTitle (new LabelField ("Background Image Demo"));
    VerticalFieldManager backgoundManager = VerticalFieldManager(Manager.USE_ALL_WIDTH | nouveau Manager.USE_ALL_HEIGHT |) Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR) {}
    {} public void paintBackground (Graphics g)
    int currentVackgroundColor = g.getBackgroundColor ();
    try {}
    g.setBackgroundColor (backgroundColor);
    g.Clear ();
    } {Finally
    g.setBackgroundColor (currentVackgroundColor);
    }
    int managerWidth = this.getWidth ();
    int managerHeight = this.getHeight ();
    centerX = int (this.getWidth () - _backgroundBitmap.getWidth (()) 2.
    centerY = int (managerHeight - _backgroundBitmap.getHeight ()) 2.
    System.out.println ("current position:" + Integer.toString (centerX) + ":" + Integer.toString (centerY) +)
    ", Far manager:" + Integer.toString (managerWidth) + ":" + Integer.toString (managerHeight) + "."
    ", Manager virtual:" + Integer.toString (this.getVirtualWidth () + ":" + Integer.toString (this.getVirtualHeight () + "."
    ", ManagerScroll:" + Integer.toString (this.getHorizontalScroll () + ":" + Integer.toString (this.getVerticalScroll ())); "."
    g.drawBitmap (this.getHorizontalScroll () + centerX, this.getVerticalScroll () + centerY, _backgroundBitmap.getWidth (), _backgroundBitmap.getHeight (), _backgroundBitmap, 0, 0);
                       
    }
    };
    backgoundManager.add (new EditField ("scrolling test:", "Enter the text here to scroll"));
    backgoundManager.add (new SeparatorField());
    backgoundManager.add (new BitmapField (Bitmap.getPredefinedBitmap (Bitmap.QUESTION)));
    backgoundManager.add (new SeparatorField());
    backgoundManager.add (new EditField ("test an another parchment:", "Enter the text here to scroll"));
    This.Add (backgoundManager);

    }
    }

    Ahh, touch screens...

    I remember I had to invalidate the Manager paint extra stuff (vertical scroll bar in my case) in scrollChanged() specifically for touchscreen devices. So one thing to try is to implement ScrollChangeListener in your main screen or your added VFM and invalidate the VFM in scrollChanged. This should fix the problem, even if it will be a drop in performance.

    I suspect that the touchscreen devices have certain graphic hardware acceleration, which makes them more effective when scrolling but it lacks what BlackBerry stuff framework is not aware (for example your paintBackground according to the positions of scrolling).

    I'm curious to know what happens if you use setBackground on a scroll, no Manager and add the scroll with no bottom paint on top of it. setBackground, being a built-in could make better use of their hardware acceleration.

  • Get problem

    Hello

    I added a get to hold a container in which a selection of buttons will be added dynamically depending on how many times the method is called.
    Everything works fine until the number of buttons exceeds the size of the viewport get. So instead of scrolling in the scrollpane the scroll buttons to the top on top of the surrounding elements.
    I have tried everything and can't see what I'm doing wrong. Any help would be appreciated.

    -The class of ModelFrame shown first is an action event called getArcGrid(); who initilises the container to go in the get
    -The FileMenu class makes the creation of buttons and adding them to the container

    Code for the creation of the framework and the majority of the components - products with netbeans
    package modelgui;
    
    import javax.swing.*;
    import javax.swing.tree.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    
    
    public class ModelFrame extends javax.swing.JFrame {
        
        private String wDir = null;
        private boolean isWorkspace = false;
        CurrentFileStore fileStore = new CurrentFileStore();
        FileMenu gridDisplay;
        Events events = new Events();
        private Component[] compA;
        private Container gridNameContainer;
        
        /** Creates new form ModelFrame */
        public ModelFrame() {
            
            initComponents();
            java.awt.EventQueue.invokeLater(new Runnable() {            
                public void run() {  
                    
                }
            });
        }
        
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
         */
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
    
            jPanel1 = new javax.swing.JPanel();
            sideTabs = new javax.swing.JTabbedPane();
            tabOnePanel = new javax.swing.JPanel();
            jScrollPane1 = new javax.swing.JScrollPane();
            tabTwoPanel = new javax.swing.JPanel();
            jMenuBar1 = new javax.swing.JMenuBar();
            FileMenu = new javax.swing.JMenu();
            setWorkspace = new javax.swing.JMenuItem();
            importItem = new javax.swing.JMenu();
            importArc = new javax.swing.JMenuItem();
            Save = new javax.swing.JMenu();
            saveProj = new javax.swing.JMenuItem();
            saveGrid = new javax.swing.JMenuItem();
            EditMenu = new javax.swing.JMenu();
    
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    
            jPanel1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));
    
            javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 511, Short.MAX_VALUE)
            );
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 388, Short.MAX_VALUE)
            );
    
            sideTabs.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));
    
            javax.swing.GroupLayout tabOnePanelLayout = new javax.swing.GroupLayout(tabOnePanel);
            tabOnePanel.setLayout(tabOnePanelLayout);
            tabOnePanelLayout.setHorizontalGroup(
                tabOnePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 186, Short.MAX_VALUE)
            );
            tabOnePanelLayout.setVerticalGroup(
                tabOnePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(tabOnePanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 349, Short.MAX_VALUE))
            );
    
            sideTabs.addTab("tab1", tabOnePanel);
    
            javax.swing.GroupLayout tabTwoPanelLayout = new javax.swing.GroupLayout(tabTwoPanel);
            tabTwoPanel.setLayout(tabTwoPanelLayout);
            tabTwoPanelLayout.setHorizontalGroup(
                tabTwoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 186, Short.MAX_VALUE)
            );
            tabTwoPanelLayout.setVerticalGroup(
                tabTwoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 360, Short.MAX_VALUE)
            );
    
            sideTabs.addTab("tab2", tabTwoPanel);
    
            FileMenu.setText("File");
    
            setWorkspace.setText("Set Workspace");
            setWorkspace.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    workspaceLocation(evt);
                }
            });
            FileMenu.add(setWorkspace);
    
            importItem.setText("Import");
    
            importArc.setText("Arc Grid");
            importArc.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    getArcGrid(evt);
                }
            });
            importItem.add(importArc);
    
            FileMenu.add(importItem);
    
            Save.setText("Save As");
    
            saveProj.setText("Save Project");
            Save.add(saveProj);
    
            saveGrid.setText("Save Grid");
            Save.add(saveGrid);
    
            FileMenu.add(Save);
    
            jMenuBar1.add(FileMenu);
    
            EditMenu.setText("Edit");
            jMenuBar1.add(EditMenu);
    
            setJMenuBar(jMenuBar1);
    
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(sideTabs, javax.swing.GroupLayout.PREFERRED_SIZE, 193, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap())
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(sideTabs, javax.swing.GroupLayout.DEFAULT_SIZE, 390, Short.MAX_VALUE))
                    .addContainerGap())
            );
    
            pack();
        }// </editor-fold>
    
        private void workspaceLocation(java.awt.event.ActionEvent evt) {                                   
             events.setWorkspace();
             isWorkspace = events.workspace();
             if (isWorkspace == true) {
                wDir = events.getWorkspace();
             }
             
        }                                  
    
        //********************************
        //********************************
    
       //Routine countaining addition of container to jScrollPane
       //The ArcGridImporter class just imports an ArcAscii grid puts some details in an array and provides getter methods for retrieving the file and its details.
    
       //*********************************
       //*********************************
    
        private void getArcGrid(java.awt.event.ActionEvent evt) {                            
            ArcGridImporter gridGetter = new ArcGridImporter();
            gridGetter.fileGrab();
            if (gridGetter.getGridThere() == false) {
                gridGetter.importFile(); 
                fileStore.setFileOne(gridGetter.getFile());
                fileStore.setDetails(gridGetter.getDetails());
                fileStore.setFileStorage();
                gridNameContainer = new Container();
                gridNameContainer.setLayout(new FlowLayout(FlowLayout.CENTER));
                gridNameContainer.setSize(jScrollPane1.getSize());
                
                compA = gridNameContainer.getComponents();
                for(int i=0;i<compA.length;i++) {
                    gridNameContainer.remove(compA);
    }
    gridDisplay = new FileMenu(gridNameContainer, fileStore);
    jScrollPane1.setViewportView(gridNameContainer);


    }
    this.repaint();

    }

    public void addToScrollPane(JTree tree) {
    // jScrollPane1.add(tree);
    //tabOnePanel.repaint();
    System.out.println("MADE IT: panel");
    }


    // Variables declaration - do not modify
    private javax.swing.JMenu EditMenu;
    private javax.swing.JMenu FileMenu;
    private javax.swing.JMenu Save;
    private javax.swing.JMenuItem importArc;
    private javax.swing.JMenu importItem;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JMenuItem saveGrid;
    private javax.swing.JMenuItem saveProj;
    private javax.swing.JMenuItem setWorkspace;
    private javax.swing.JTabbedPane sideTabs;
    private javax.swing.JPanel tabOnePanel;
    private javax.swing.JPanel tabTwoPanel;
    // End of variables declaration


    }
    Code for the Creation of buttons and adding to the container held within the scrollpane
    package modelgui;

    import java.awt.*. *;
    java.awt.event import. *;
    Javax.swing import. *;
    Javax.swing.tree import. *;


    SerializableAttribute public class FileMenu extends JPanel {}

    Container gridNameContainer;
    CurrentFileStore fileStore;
    Dimension butDim = new size (120, 70);

    public FileMenu (gridNameContainer, fileStore CurrentFileStore container) {}
    this.gridNameContainer = gridNameContainer;
    gridNameContainer.repaint ();
    this.fileStore = fileStore;
    Object [Details] = fileStore.getDetailsStore ();
    int counter = 0;

    While (details [meter]! = null) {}
    List of strings [] = (String []) details [counter];
    String gridName = list [0];

    addButtons (gridName);
    counter ++;
    width int = gridNameContainer.getWidth ();
    int height = (int) (butDim.getHeight () + 30);
    Dimension panDim = new size (width, (height * meter));
    gridNameContainer.setPreferredSize (panDim);

    }

    }

    {} private void addButtons (String gName)

    The button but = new Button();
    but.setLabel (gName);
    but.setBackground (Color.lightGray);
    but.setForeground (Color.BLACK);
    but.setPreferredSize (butDim);
    gridNameContainer.add (purpose);

    }

    }
    Edited by: 801531 on 11-Oct-2010 08:57                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Forward Swing related questions should be posted in the forum of Swing.

    Button but = new Button();
    

    The AWT components are painted on top of Swing components. "Button" is a component AWT. The button "J" is a Swing component. "."

  • One of the 3 links on a web page works not under Firefox 9.0.1 but all three work under IE.

    Please float your mouse over the Paypal button (in the lower left) and on the envelope button and the arrow will change to a pointing finger. It float above the adjacent Blog button and the arrow is an arrow. With Internet Explorer, all three buttons links work - but not with Firefox 9.0.1. Why is this?

    I have no idea why this works in Internet Explorer. The div with id "txt_582" is painted on top of the imagemap for the button "Blog". So this div block mouse clicks. Reduction of the height of this div may fix the problem.

  • Graphical WPF children order

    I have a canvas added to the children of a WPF XAML graphic in the development of the various blocks of text and lines. Later in the code, I add RangeCursors. The RangeCursors of paint on top of the canvas, but I like the canvas on top. Is there a way to control this? I tried both adding the RangeCursors at the end of the children's collection and insertion in the 0 position, but the result is the same (RangeCursors on top).

    Set the ZIndex to the canvas with a value greater than the default value of zero:


            Panel.ZIndex="1" ... />
            
        

  • Search for toner iron oxide content

    Can someone tell me where I can find the toner iron oxide content?  I am doing a project which requires it, but before I spend money on special paper there too, I want to know that my printer is able to handle this.  I need about 60% iron oxide.  I currently have a HP Deskjet 5150 with a number of toner Black 56.

    Thank you

    Marley R

    Hello

    I just wanted to update on my little project.  I was a great success, I printed out a sheet of stickers on special paper using my HP 1200 printer.  I did not buy the MICR toner, but it worked!  The image prints in black tones and when shot with my drink, turns to the beautiful sepia, everything as promised. I found, I can even add a bit of paint on top before you trigger the opening of new avenues for me.

    Thank you very much for all the help

    Marley

  • as an icon of screen menus

    Hello

    Goal is to have menus as clickable icons on the screen can scroll through by trackball. Image attached, that's what I have to achieve. All extracts pointers/ideas/code for this? Help, please!

    I solved my problem. Since I only need to paint the top of the screen, I should invalidate just the part and not the whole screen.

    for example, rather than use invalidate() I using vTop.invalidate ().

    After solving this problem, I have a new problem. It's my abortion

    vTop = new VerticalFieldManager(Manager.VERTICAL_SCROLL{
    protected void paint(Graphics g){
        g.drawBitmap(0, 0, img.getWidth(), img.getHeight(), img, 0,0);
      }
    protected void sublayout(int width, int height){
        super.sublayout( Display.getWidth(), Display.getHeight()-50);
        setExtent(Display.getWidth(), Display.getHeight()-50);
     }
    };
    

    Bitmap img height is greater than Display.getHeight () - 50. Thus, on the painting, it covers the entire screen. Do I have to resize so that it can enter into the clouds, or is there a better way to do it?

    Help, please!

  • Hi all! Is it possible to display the text on the video in full screen?

    Hello

    My problem is that I have to present a video in full-screen and must present a dynamic text on the video.

    We succeed in BB?

    Thank you and best regards,

    Mahendra SIngh

    N ° paint on top a video is not currently supported.

  • Draw a circle in the main screen?

    Hi guys,.

    Pretty quick here.

    I'm looking to draw a circle on the main screen of a phone application I created.

    So far, on the main screen, I attracted 9 rectangles. But I don't want on a keypress event

    to paint on top of these rectangles of my circle.

    I used java before doing this operation using repaint but don't know how

    Repaint/discount so I can shoot an already drawn form coming onload.

    Darren

    you add the drawCircle in the paint method RESP. the drawBoard method, simply add a condition that you can modify.
    You can issue a repaint with invalidate().

  • Delicate issue on the field of the camera screen.

    I really like the camera of 4.6 code sample. But I come with a question:

    After I put the camera in full-screen opening: _videoControl.setDisplayFullScreen (true);

    Is it possible to draw anything on the top of the camera preview that is full screen?

    No, you can't paint on top of this preview field.

  • Project overview shows the black screen and it makes perfectly like black video, but the comp. Overview displays the entire video and effects

    Screen Shot 2016-06-18 at 12.46.32 AM.png

    I feel that I'm missing probably something obvious. I have a MP4 video I imported into After Effects and then used the tool to paint on top of for a kind of Rotoscoping. I can get a preview of the video with effects perfectly in the composition/layer window, but either the video or the effects will be never seen in small project window in the upper left corner of the screen. When I visited the composition, it comes out completely black, just like in the preview of the project. What should I do to fix this?

    Thank you!

    You set the only layer in your composition to a guide layer. If you don't know how that enable or disable him layer 'guide' in the search help field at the top right of the app and read.

Maybe you are looking for