Layer to a bitmap on another bitmap field field

Is it possible to layer an image bitmap bitmap field control?

Attached image shows what im trying to achieve, image number 2 is superimposed on the picture number 1. Also image number 2 appears higher than the number of image 1. I use JDE 5.0

Thank you

As usual, for a custom navigation you will override some methods of the API. Check

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800508/...

I never specifically rode two BitmapFields, but to accomplish what you're trying to do, I think you must first create a custom presentation Manager. Override the navigationMovement() method to handle changes in focus with trackpad events. Look at the setChildPosition() of the method in the handler class that handles how the fields are positioned in the layout. I don't know what happens when you ride the x coordinates of two fields with setChildPosition().

If the overlap BitmapFields does not work, you can always implement style bitmap buttons that overlap by substituting object and methods of navigation of your custom layout manager.

Scott

Tags: BlackBerry Developers

Similar Questions

  • custom bitmaps field not change image when click on

    I created a custom bitmap field and I change the image on the center of my field of custom bitmaps and unfocus

    but when I implement the method of navigation click to change the image when you click on this image does not change...

    my custom bitmap field filed only to focus or unfocus on the image does not change my field of custom bitmaps.

    Bitmap onfocus = Bitmap.getBitmapResource("111.png");
                    Bitmap onunfocus = Bitmap.getBitmapResource("666.png");
                    mybutton1 = new CustomBitmapField(0,"",onunfocus,onfocus,Field.FOCUSABLE){
                         protected boolean navigationClick(int status, int time) {
    
                             mybutton1.setBitmap(Bitmap.getBitmapResource("favu.png"));
    
                             return true;
    
                         }
    
                    };
    add(mybutton1);
    

    and my class of field customBitmap is

    public class CustomBitmapField extends BitmapField {
    
        Bitmap Unfocus_img, Focus_img, current_pic;
        int width;
        String text;
        Font font; 
    
        public CustomBitmapField(int width, String text, Bitmap onFocus, Bitmap onUnfocus, long style) {
            // TODO Auto-generated constructor stub
            super();
            Unfocus_img = onUnfocus;
            Focus_img = onFocus;
            current_pic = onFocus;
            this.text = text;
            this.width = width;
    
        }
        protected void layout(int width, int height)
        {
            setExtent(current_pic.getWidth(), current_pic.getHeight());
        }
        protected void paint(Graphics graphics)
        {
            /*try
            {
                    FontFamily fntFamily = FontFamily.forName("BBAlpha Sans");
                    font = fntFamily.getFont(Font.BOLD,14);
            }
            catch(Exception e)
            {
                font = Font.getDefault();
    
            }
            graphics.setFont(font);
            graphics.setColor(Color.WHITE); */
            graphics.drawBitmap(0, 0, current_pic.getWidth(), current_pic.getHeight(), current_pic, 0, 0);
    
            //graphics.drawText(text, width, 7);
        }
        protected void onFocus(int direction)
        {
            super.onFocus(direction);
            current_pic = Unfocus_img;
    
            this.invalidate();
        }
      protected void drawFocus(Graphics graphics, boolean on)
      {
    
        }
        protected void onUnfocus()
        {
            super.onUnfocus();
            current_pic = Focus_img;
            invalidate();
        }
        public boolean isFocusable() {
            return true;
        }
        protected boolean navigationClick(int status, int time) {
    
            fieldChangeNotify(0);
            return true;
        }
    
    }
    

    When you debug this code, which of your methods of navigationClick, is actually used?

    When you expect the bitmap change, the code should lead object so that to happen.  Paint running?  This is the correct Bitmap painting?

    If you answer these questions, I think that you figure to yourself what is the problem.

    While you're there, you can also watch the following Threads that you have started or contributed to.  Can you solve or continue to contribute to these?

    http://supportforums.BlackBerry.com/T5/Java-development/gif-animation-not-displaying-properlly/m-p/2...

    http://supportforums.BlackBerry.com/T5/Java-development/timepicker-issue/m-p/2387819

    http://supportforums.BlackBerry.com/T5/Java-development/ListField-focus-color-problem/m-p/2407881#m2...

  • Move a layer from one document to another, I get the error message that the layer is empty

    When I copy a layer from one document to another in PS CC 2015.5 and then try to move the layer in the destination document, I get the error message that the layer is empty.  It is not empty and I checked several times and checked that the layer is not empty.  I have never had this problem before and wonder if something has changed in CC 2015.5.

    Thanks to all who responded.  I think the problem was that I was using the NEF files and that he had not yet renamed PSD files.  Copy the layer in the destination document, but when I tried to move the layer in the destination document, I received the error message.  Apparently, he was copying the layer but there not then recognize the NEF format.  Once I saved both documents to the PSD, then the program behaved normally.  I appreciate your all of the help.

    Sue

  • in double layer, from one group to another

    Hello, is it possible to duplicate a layer of a group to another group of layers Layer? I find it a little difficult to duplicate the layer and then dragging upward or down to the appropriate place, in files with a large number of layers and groups. It seems that there should be an easier way...

    I just wrote a script that does this called "duplicate and move layer."  Download the script from this link and put in your folder Presets\Scripts in Photoshop.  Restart Photoshop and it will appear in the main menu under file > Scripts.  You can make action to play and then create a keyboard shortcut to make the task easier.  What you do is select the two layers.  A dialog box will appear and you select a button to select which of the selected layers will be duplicated and moved to the other selected layer.

    Shared files - Acrobat.com

    This link can be good for a short period as I can this post on the new site the module Adobe.

  • How to copy a layer from one psd to another

    How to copy a layer from one psd to another

    Select... Select all, Ctrl + C to copy the contents to the Clipboard, and then in the other PSD image use Ctrl + V to paste the content in its own layer.

    Ken

  • How can I drag a layer in one document to another while retaining information from posts?

    Hi all

    I was using PSD for a while now and it's pretty frustrating.

    Do you know how can I drag a layer in one document to another while retaining information from posts?

    Normally when you drag a layer of document A to B, the layer just fall randomly.

    Any ideas?

    See you soon,.
    Venn.

    So, I thought about it.

    Drag the layer + hold SHIFT key. Once the layer is the right document, drag and release the SHIFT key.

    - - -

    Note: 2 documents must have the same size of canvas in order to preserve positions. If they are not the same, the removed element will be centered in the middle of the canvas.

  • Newbie question (button Bitmap/field/LabelField)

    Hi all

    I am creating a simple application 9700 which has a bitmap (480 * 360) as the image background, title, two separate labels and two buttons (side-by-side) but centered to the base of the form

    Code so far:

    Bitmap borderBitmap = Bitmap.getBitmapResource ("Background.png");
    VerticalFieldManager m = new VerticalFieldManager();
    m.setBorder (BorderFactory.createBitmapBorder (new XYEdges (1,1,1,1), borderBitmap));
          
           
    LabelField lf = new LabelField ("my title here," DrawStyle.HCENTER | ") LabelField.USE_ALL_WIDTH);
    FontFamily fontFamily [] = FontFamily.getFontFamilies ();
    Do police = fontFamily [1].getFont(FontFamily.CBTF_FONT |) Font.BOLD, 40);
    lf.setFont (do);

    LabelField lf1 = new LabelField ("\n1st line of text here.\n\n", DrawStyle.HCENTER: ") LabelField.USE_ALL_WIDTH);
    Police fnt1 = fontFamily [1].getFont(FontFamily.CBTF_FONT |) Font.BOLD, 36);
    LF1. SetFont (fnt1);
           
    Lff LabelField = new LabelField ("second line of text ici\n", DrawStyle.HCENTER: ") LabelField.USE_ALL_WIDTH);
    Police fontFamily = fnt2 [1].getFont(FontFamily.CBTF_FONT |) Font.BOLD, 36);
    lff.setFont (fnt2);
           
    Lf2 LabelField = new LabelField ("\n\n", DrawStyle.HCENTER |) LabelField.USE_ALL_WIDTH);
    Police fnt3 = fontFamily [1].getFont(FontFamily.CBTF_FONT |) Font.BOLD, 36);
    LF1. SetFont (fnt3);
           
    Add (m);
    m.Add (LF);
    m.Add (LF1);
    m.Add (LFF);
    m.Add (LF2);

    BFM HorizontalFieldManager = new HorizontalFieldManager (Manager.HORIZONTAL_SCROLL);
    ButtonField acroos is new ButtonField ("Yes", Field.FIELD_HALIGN_MASK);.
    ButtonField bNo = new ButtonField ("No.", Field.FIELD_HALIGN_MASK);
    BFM. Add (bYes);
    BFM. Add (BNO);
    Add (BFM);

    ------------------------------

    The problem I have is that the basis of the bitmap is missing. The buttons to remain on the left of the dialog box, but the base of the peak is not displayed as the background of the horizontal field Manager is not transparent.

    Click on the button I want to display a dialog box with a label text, which will be just Dialog.Alert ("Some Text");

    How do I change the color of the text of the title, 1 & 2 lines of text, please?

    Also, does anyone have examples of code for a splash screen before loading the dialog box above? I need to have the home screen display a logo which will be 480 * 100 pixels. Have seen an example of a startup but can't seem to get by (too new to the coding).

    Thanks in advance

    To center the buttons at the bottom and let the background show through, try this:

    HorizontalFieldManager bfm = new HorizontalFieldManager(FIELD_HCENTER);
    ButtonField bYes = new ButtonField("Yes");
    ButtonField bNo = new ButtonField("No");
    bfm.add(bYes);
    bfm.add(bNo);
    VerticalFieldManager vfm = new VerticalFieldManager(USE_ALL_WIDTH);
    vfm.add(bfm);
    Background trans = BackgroundFactory.createSolidTransparentBackground(0,0);
    bfm.setBackground(trans);
    vfm.setBackground(trans);
    add(vfm);
    

    To change the color of text, you can use a RichTextField place a LabelField, or you can create a subclass LabelField.

  • Zoom on the image Bitmap field

    Good morning to all"

    I want to zoom in on BitmapField. Is it possible to BB?

    TNX your tips.

    What do you mean by 'zoom in '?  If you want to enlarge a bitmap image, you can use EncodedImage.scaleImage32 (as long as you are able to get your image as an EncodedImage data).  Here's an example of utility code I had to scale an image based on its width or height.  Using this as a basis, it should be simple enough to adapt it to your specific needs.  If not, let me know; I have a lot of image processing code.

     public static EncodedImage scaleImageToWidth(EncodedImage encoded, int newWidth) {
            return scaleToFactor(encoded, encoded.getWidth(), newWidth);
        }
    
        public static EncodedImage scaleImageToHeight(EncodedImage encoded, int newHeight) {
            return scaleToFactor(encoded, encoded.getHeight(), newHeight);
        }
    
        public static EncodedImage scaleToFactor(EncodedImage encoded, int curSize, int newSize) {
            int numerator = Fixed32.toFP(curSize);
            int denominator = Fixed32.toFP(newSize);
            int scale = Fixed32.div(numerator, denominator);
    
            return encoded.scaleImage32(scale, scale);
        }
    
  • image bitmap field not seized touch event

    Hi all

    I've implemented a customButton class that extends from BitmapField to tuchscreen.

    The CustomField is FOCUSABLE.

    I placed 6 these customButtons in a horizontal field.

    First 3 buttons are getting clicked correctly but the last three are not capture any key event.

    The procedure is the same for all. But still this is happening.

    Can someone tell me why its happening? How can I solve this problem?

    I solved the problem

    the code is shown in the link

    http://supportforums.BlackBerry.com/T5/Java-development/capturing-click-event-of-buttons-oat-right-c...

  • Creation of an another OSB field using same Middleware home

    Hello

    I am about to create another area of osb with an addition to the existing one. The existing domain is to Server Admin and only a single server managed of the BSO in stand-alone.

    I start the existing domain usually using java node base or based script manager. Node Manager by default start port 5556.

    If I create a new field using config.sh and if I give you a new number (5558) port for configuration steps node Manager that will work?

    Because a domain Manager node already existing is running (5556) and for logs are get generated and nodemanager.properties file has already been set.

    Please suggest if you see no major problem on this.

    Main reason to separate the management of two nodes.

    If I stop at a domain, I stop there including nodemanager also using wlst script.

    So I don't want that the field of another should be assigned for this.

    Hello

    It is a feature of 12 c, not available in WebLogic 11 g.

    However, 11 g, you can have a Node Manager for each area. For example, if your domains are configured unde/u01/fmw/domain1 and/u01/fmw/domain2, create a directory 'nodemanager' in each of these homes of the area. Then copy the startNodeManager.sh script (found in the bin/server/WL_HOME directory of $) for each directoy and change the Node Manager home to point to the respective directories. Then, start the first and you should see a nodemanager.properties file. You can leave the first one as it is, but the second Node Manager to change the listening port in order to have both running at the same time.

    Let me know if future clarifications are necessary.

    Concerning

  • How to copy a layer from one project to another draw in Adobe

    draw Adobe allows this?

    Hi Seffrog,

    No, I'm sorry, he's not. You can duplicate a layer, but there is currently no way to move it to another project or canvas.

    Sue.

  • Text entry box to display another text field

    Hello

    I have a text box (Text1), indicating in a certain etiquette on the stage.  On another label, there is another field of text (Text2) that is not capable of entry.  This second text field (Text2) should show what the user has entered in the first text field (Text1).

    Both of these are not symbols and right today, these are the two elements of text.

    Does anyone know how to do this?

    Thank you

    ~ iana ~.

    Sorry, try this:

    var name = sym.$("Name");

    inputName = $(")') .attr ({'type': 'text', 'value': ", 'id': 'name'}) .appendTo (name);

    var sign = sym.$('Signature');

    function updateField() {}

    signature.html (InputName.Val ());

    }

    $(document) .one ("change, keyup", signature, METTREAJOURCHAMP);

  • How to select a range of colors as in Photoshop or copy/move a layer in the mask of another layer?

    Hello

    I'm experimenting Photoshop Elements and wanting to use a layer of black and white (gray scale) I did as a mask of a another layer and do not know how to do in elements.  In Photoshop, I could do it (there may be a better way to do it in PS, but I've not yet discovered)...

    Click on the layer, I created that I intend to use as a mask

    Select all

    Copy

    Select the layer that I want the mask to be applied to the

    Click on the button Add a mask layer (bottom layer)

    Click on the mask icon so it is highlighted (and is not the image)

    switch to the channel display

    highlith the layer mask in the R, G, B of the layers and make it visible

    Dough

    invisible again

    Switch to layers.

    This works and retains the full range of transparency for the semi transparent and soft contours of mask etc.

    Otherwise, I can choose a range of colors, but this doesn't seem to be available in PS Elements.

    So, how do I get the same result in PS Elements?

    Thanks for your help

    Jonno

    After you have added your layer mask, Alt (Option) click on the thumbnail of the mask layer in the layers panel, and then edit > paste.

  • Can I do a necessary accessory conditionally on another base field?

    I have a field attachment on a PDF that I need to require conditionally based on the value of another field. Is this possible?

    The document is still signed through a built-in widget and is created via an API call that sends in the PDF bytes.

    Yes, this can be done using EchoSign text tags.

    I guess the trigger field is a check box called cb1 and when checked specifies the attachment field.

    The tag for the attachment field wil look like this:

    {{* nameoffieldhere_es_:signer1:attachment:label("labelhere"):showif(cb1=checked)}}

    If you use Acrobat form fields use the tag above under the name of the field, but without the {{}}

  • using the value of a form field in another form field

    I hope that I can describe my problem. Please bear with me

    I have a worksheet with a lot of form fields. For most of the text boxes and a few drop-down list boxes.

    I use a lot of custom calculation scripts to determine what information auto fills in most of the fields.

    But I have problems with a last form named ORTHOPLANID field.

    The value that it auto fills depends on two other fields. A field is called MEDOOP. The other field is SUPPDENPLANID. I tried to use an if/then/else statement for ORTHOPLANID but it does not work. I'm guessing it doesn't b/c, the value of the MEDOOP field is generated from an if / then statement so I don't know whether or not the script recognizes its value as a real value.

    Is there another way to get around this? I don't know if I have clearly explained the problem, but I hope someone can help

    Thank you

    Brandy

    I think I know what the problem... You did not drop-down fields

    commit their selected values immediately (under Properties - Options). As one

    result, the calculations take place when you exit the field (i.e. click)

    outside), and not when you do a

    selection.

Maybe you are looking for