Position of the bitmap inside the BitmapField

Hi, this is perhaps a silly question, but is at - there a way for me to specify the position of the bitmap image to add inside the BitmapField?

I already added the bitmapfield to the screen and I want to add several bitmaps inside the field, but in certain specified places. Is it possible to do this without changing the location of bitmapfield?

Help, please!

Hi thanks for the reply! Creation of absolutefieldmanager seems quite complicated and a lot of work!

I found a way to achieve what I needed treatment multiple paint.drawBitmap!

Thanks for the help!

Tags: BlackBerry Developers

Similar Questions

  • Need to know the position of the bitmap wrt 0,0 on blackberry screen field

    Hello

    I have a form that contains a few text fields and a field of bitmap image. I use this bitmap field to capture the signature.

    The problem is how whether the y of the bitmap field. I used the getContentTop and getTop methods but they give me the position of the bitmap field wherever I want to know where my bitmap field at that time regarding the point 0,0 of the screen while I scroll vertically.

    SO if someone scrolls the screen so that the field of the bitmap image is moving upwards or downwards, and the area of the bitmap is always visible, I still know where my field bitmap regarding the point 0,0 of the screen.

    If you see the atttached image, I want to know the position there of the bitmap that will be different in the two scenario illustrated in the image.

    Kind regards
    Charrier

    I created the following code to discover something I did some time ago, in fact I think that I have found this code on the forum somewhere and modified to fit my needs.  Not sure it has never been used in a production application, so no warranty.  But may be useful.

        public static final XYRect getFieldExtent(Field fld) {
            int cy = fld.getContentTop();
            int cx = fld.getContentLeft();
            Manager m = fld.getManager();
            while (m != null) {
                cy += m.getContentTop() - m.getVerticalScroll();
                cx += m.getContentLeft() - m.getHorizontalScroll();
                if (m instanceof Screen)
                    break;
                m = m.getManager();
            }
            return new XYRect(cx, cy, fld.getContentWidth(), fld.getContentHeight());
        }
    
  • Question on the long table inside the panelTabbed with the position of the tab = 'left '.

    12.1.3 jdev

    I have a few large tables inside the af af:showDetailItem: panelTabbed. My panelTabbed has the left position. In this case, I don't see the horizontal scroll bar under my long tables. The horizontal scroll bar is on the tab all.

    But if I have the position of the panelTabbed as noted above, I see the horizontal scroll bar under each long tables.

    Is this behavior as expected or something I was wrong to do that?

    Thank you.

    Finally, I figured out how to make the design that I desired using all these elements of page layout. The design requirement is to have tabs on the left side, see the vertical scroll bar if the content of the tab is too long and display the horizontal scroll bar if the table has too many columns.

    I have panelGroupLayout with layout of scroll inside panelTabbed showDetailItem, have all my panelBoxes w tables inside this panelGroupLayout. In this way I am able to get the vertical scroll bar when the contents of the table have too many lines.

    By removing the facet ceter of panelStretchLayout panelGroupLayout and having the region inside the facet Center directly, each layer of extendable any inherent layout. I am able to get the horizontal scroll bar below each long table inside panelBox.

    It is important to know how to layout components layer.

    Thank you.

  • FancyBox - How can I change the position of the title to the INSIDE of the box?

    I know that this may not be the place to ask this question involves the jQuery and Fancybox, but I'm uncomfortable with the Dreamweaver Forum so thought I would ask. Earlier, I started working on this project for an artist and thought that FancyBox would be a good way to present his work. I don't know much about jQuery and Fancybox, but managed to make it work, which is not particularly difficult. That is, how can I change the position of the TITLE by default out of the BOX on the INSIDE of the box. I played with the CSS a bit, ask about these things called aid, tried to put a code of jQuery in the head section, but nothing helped.

    Here is a link to the page (forgive the look, still under development): www.watercolorsplus.com/New/babyFootprints2.html

    There are still a few errors in the tag, as can be seen here [Valid] Markup Validation of http://www.watercolorsplus.com/New/babyFootprints2.html - W3C Markup Validator

    Fix the above errors first in particular the absence of citations which surround the fancybox (x 4) as in

    a class = """"" " fancybox

    When the above errors were fixed, add the part highlighted in the constructor.

    {$(document) .ready (function ()}

    $(".fancybox").fancybox ({}

    aid: {}

    Title: {}

    type: 'inside '.

    },

    overlay: {}

    CSS: {}

    'background': 'rgba (255,255,255,0.5).

    }

    }

    }

    });

    });

  • Get the position of the text (inside or outside a nightclub?)

    Hi all

    I use simple Ruby to access the contents of a PDF file. This help PDF Reader of yob of GitHub.

    Now, I've come a long way, but still have a question that remains! How to get the position of a text object (this object area)?

    I read the PDF reference, he told me all sorts of things on the text area, space glyph and user... As English is not my mother tongue, there is a lot to take... I currently have a Community trade mark, a matrix of text and text rendering matrix. I have also all the boxes on the page (media, trim, culture etc..)

    For an Image object, I use the values of e and f CTM as x and y. It works perfectly, but when it comes to text, seems to be missing something...

    Example:

    CTM: Matrix]

    [1, 0, 0].

    [0, -1, 0],

    [-0.0, 640.346, 1]

    ]

    Text matrix = > array]

    [10.0, 0.0, 0].

    [0.0, 10.0, 0].

    [2062769.1732, 42.6732, 1]

    ] == You need to convert the text in user/device space space!

    TRM: Matrix]

    [1000.0, 0.0, 0.0],

    [- 10.0, 0.0, 0.0].

    [2062769.1732, 597.6728, 1.0]

    ]

    I can count the lines and calc a displacement of multipling that number by police in size (e.g. 12 pt), but how can I get the box of you text_object? If I have the box, I can make you whether he fits in a box...

    Please help with what I might hurt, or even better if you can help me to find the position of the text!

    They are NOT the starting point of the text box.   It is the basic position of the pen, taking the place of drawing the text.  The 'box' versus relies on measures of fonts - what you need to get the widths, leader, etc.  There's a picture of this in the ISO 32000-1 standard (section 9.2.4, I think).  In fact, the entire section text will make this clearer.

  • Position of the jumpers pin on a MB from MIH61R Dell (Inspiron 620)

    Hello and help!

    I bought my wife a new Dell Inspiron 620. I was dusting from the inside and come off a jumper connector. It's a PIN of five (5) labeled PWRSW1 on the outside edge towards the end of the DIMM. The MB is a MIH61R. Can someone tell me the proper position for the rider on PWRSW1?

    THX

    Let's save a nano-second...

    Need to ask if you are sure the rider was actually this 5 header pin motherboard? Could he have come off some other header?

    I just ping Dell-Chris M to see if he can get some specific information for you...

  • Position of the cursor Set for TextInput

    Does anyone know of a method that I can call on TextInput focus to define the position of the cursor or select certain passages in the input field? I try to get the cursor always start typing at the end of the pre-populated text.

    I tried these, but they do not seem to be valid methods for TextInput (I wasn't expecting to work because they are not in the documentation, but worth the try):

    mytxtInput.setSelection(mytxtInput.text.length, mytxtInput.text.length);
    

    OR

    mytxtInput.selectRange(mytxtInput.text.length, mytxtInput.text.length)
    

    Any help would be greatly appreciated!

    Thank you to all members of this forum for everything that they great posts! They have really helped answer many of my questions.

    Hey,.

    you have the right idea, but instead to apply the method setSelection on your TextInput object, you must apply to the internal textField property reference to the textfield inside.

    Here is a code example of an old NET that selects all of the text into a TextInput object:

    package{   import flash.display.Sprite;  import flash.display.StageAlign;  import flash.display.StageScaleMode;  import flash.events.FocusEvent;   import flash.events.MouseEvent;
    
      import qnx.ui.buttons.LabelButton;    import qnx.ui.text.TextInput;
    
      [SWF(width="1024",height="600",backgroundColor="#CCCCCC",frameRate="30")] public class TextInputTest extends Sprite {
    
           private var myInput:TextInput;
    
          public function TextInputTest()       {         super();
    
              // support autoOrients            stage.align = StageAlign.TOP_LEFT;            stage.scaleMode = StageScaleMode.NO_SCALE;
    
              myInput = new TextInput();            myInput.setSize(300,50);
    
              addChild(myInput);          
    
              var newBtn:LabelButton = new LabelButton();           newBtn.label = "Click Me";            newBtn.setPosition(325, 0);
    
              newBtn.addEventListener(MouseEvent.CLICK, selectMyText);
    
              addChild(newBtn);
    
          }     private function selectMyText(e:MouseEvent):void      {         stage.focus = myInput;            myInput.textField.setSelection(0, myInput.textField.length);      } }}
    

    This line is where it does the trick:

    myInput.textField.setSelection(0, myInput.textField.length);
    

    the first parameter is the selection of the starting points and the last parameter is how much it should be chosen.

    Here is the link to the thread that the code comes for more details:

    http://supportforums.BlackBerry.com/T5/Tablet-OS-SDK-for-Adobe-Air/how-to-select-all-text-with-QNX-T...

    hope that helps. Good luck!

  • ToolTip under the bitmapField

    Hello world

    I want to create the ToolTip under the bitmapfield when it has the focus...

    I don't want to use pop-up screen for this.

    When focus on the field of the bitmap to draw the rectangle with the drawrect method and

    Subsequently he draws text using the method drawtext graphics.

    It is the display text and rect in the graphics area, but it is not the rect in the region of graphics to display outside.

    It is possible to display text in draw and draw the rectangle graphics elsewhere?

    and how to add a graphics area in the field of the bitmap image?

    all comments will be appropriate.

    Thank you

    You can use the screen paint method to do that (we solved it like this)

  • Problem of placement for the BitmapField style

    I have a subclass the Bitmapfield like this, but the HCENTER and VCENTER styles do not work.  I have a 80 x 80 bitmapfield and bimaps that are smaller than that (like 32 x 32) appear in the upper left corner of the area of 80 x 80.  I want that they focus to this area.  How can I achieve this?  (there are several ApplicationFields in the custom handler)

    I can focus the image if I override the method object, but I still need the style bitmapfield FOCUSABLE.

    According to me, Miss me something very easy.

    public abstract class ApplicationField extends BitmapField{
    
            private Bitmap image;
    
            public ApplicationField(Bitmap image, long style) {
                super(image, Field.FOCUSABLE | Field.FIELD_HCENTER | Field.FIELD_VCENTER);
                this.image = image;
            }
    
            public int getPreferredHeight(){
                return 80;
            }
    
            public int getPreferredWidth(){
                return 80;
            }
    
    ....
    

    That is the answer... padding!

    ' public void setSpace (hSpace, hspace int int) {}
    super.setSpace (hSpace, hspace);
    }

  • positioning of the neck-sm-4

    Hello

    If I have a couple floating div classes closed/named as: col-sm-4

    How can I add a little padding on the left side?

    What I want to do:

    3 col... footer column has a tiny shape and is flush with the left margin = good! Column 3 or far right is good and against edge.

    Now I would like to stay in best position / space the average pass.

    How would be the best way to ensure this control?

    Thank you.

    If you need a bit of padding inside of the

    try to use a class 'good '.

    Bootstrap has 3 classes that you can use. "Well", "good-sm" or "wells-lg.

    content here

    Nancy O.

  • SkillBuilder see the position of the modal title page

    Hello

    Is there anyone know how to change the position of the template page in the plugin Skillbuilder see modal page title.

    The title of my show modal page at the bottom instead of top.

    Thank you

    Vincent

    Vincent,

    Each get request - it's own settings for the plugin. I'm sorry that I forgot to mention "themes."

    If you go into the module itself (in the shared components) in each application there is a list of tasks/menu on the right which includes "component parameters. This takes you to all of the default values used by all plugins. In the Modal Plugin, there is a setting for the theme (1 to 5 and custom). This parameter is used by the procedure of rendering of plugin to add a CSS file. If you choose 1 it will add the t1colorbox.css file to your pages that use the plugin.

    If you look at the plugin in the shared components, you can see all these files (t1colorobox.css to t5colorbox.css).

    You can also use a customization theme. Take the one you like and change according to your specifications, and then change the component for the modal Plugin settings select "Custom" in the theme option list and then fill in the details on the path and the file name for your custom CSS file.

    Themes 2 and 3 took the title and the close box at the top but in reality above the box described rather than inside. 1, 4 and 5 place the title and close button in what appears as the footer of the described area. You could probably take the 2 theme and customize it to draw a border around the title bar.

    for example

    {#cboxWrapper}

    background: no-repeat scroll 0 0 #808080;

    border: 2px solid #000000;

    }

    The close look weird button in this example, but I wanted to point out how you can change the appearance.

    Greg

  • How to reset the position of the scrollbar when the updating of the jsff?

    Hello

    I have a panelGridLayout that shows the horizontal scroll bar when the content does not fit the available horizontal space.

    In the panelGridLayout I have items that I can drag and drop, and after release, I'm refreshing the grid to display the new data.

    Sometimes to show the last item I have to scroll using the horizontal scroll bar. Now when I drag and drop the last element when updating of the grid, it resets the bar to scroll to the start position and it is very annoying for the user.

    How can I reset the position of the scroll bar after reloading the page.

    Here are the things I've tried:

    1. for the the jsff pageDef file has added a new custom controller class. Inside the method refreshRegion of the class controller added the java code to run a javascript method which will set 'scrollLeft' of the div of the panelGridLayout position. The javascript method is get called (since I put an alert statement in for tests), but the scroll position bar does not. If I run the same code in javascript by a button then it works fine (so no problems in the javascript method).

    2 created an outputText component and visible value = false and clientComponent = true, and the value property value to a method of beans like this #(pageFlowScope.ratingBean.getscrollBarTextValue). Inside of the get accessor method to new call to the same javascript method but no help.

    3 tried to refresh only the gridCell inside the panelGridLayout, but since the gridCell is created by a grid cell single component af:iterator is getting updated. I need all the cells of the grid to be refreshed.

    It is a very annoying problem for our users and is reviewed by our Mgmt. Any help is appreciated.

    Thank you

    Rajesh.

    I could solve this problem.

    Here is the solution.

    Using a panelGroupLayout (scroll) as the component root to display the horizontal scroll bar and to display vertical scrollbars for columns panelGridLayout inside it.

    Set the height of the components inside the panelGroupLayout based on the height of the browser.

    Gets the height of the browser javascript using the af: clientListener of type "load" for root af:document.

    Also register a listener for the resized window event that will perform the ppr and refresh the height of the components.

    When I drag and drop I update just the panelGridLayout of the child when only resets do not bar (which is shown by the parent PanelGroupLayout) scrolling position.

    To provide a specific code, if anyone is interested.

    Thank you

    Rajesh.

  • Offset from cursor position to the fields (in an iFrame) only on the Apple iPad

    Hello, I made an animation that once completed, it displays an iFrame that has a few fields.  The entry fields have very well on a laptop pc or mac computer, but when I use an Apple iPad, the positions of the cursor are far outside the fields as I type.

    Here is the Web site page: http://pbpromos.com/ipad-input-fields-error/

    Here I have the same iframe, one inside the border and the other outside edge.  Both work fine on a pc or a mac, but if you try to use an Ipad, you'll see that edge, we show the cursor in the input field down and outside the box.

    You can see for yourself, I put it to you to test and see this error.

    The animate oam file is: https://www.dropbox.com/s/hvydp2x61f6aq13/test-ipad-input-fields.oam

    Here is a link to the files of edge, the .a and java files:

    https://www.dropbox.com/sh/5ljxhc81gu97bcn/zphJ6pMc2J

    Very much appreciate everything you can do on this!

    Appreciate greatly all what you can do for me, because I'm pretty desperate for a solution or a workaround.

    Gotcha - have - try you with sensitive scaling disabled? After looking at this seems to be the culprit. Worth a try to isolate the problem.

    Sarah

  • Problem to find the Position of the cursor by using Java Script for an input TextField

    Hello

    I have a problem to find the position of the cursor in a field inputText component.

    The following code of java script to achieve. The same functionality works fine if I run in a simple html page. But when it is used the same javascript inside the jsff does not the position of the cursor.
    var adfComponent = AdfPage.PAGE.findComponentByAbsoluteId("r1:1:it3");
    var adfComponentClientId = adfComponent.getClientId();
    var div = document.getElementById(adfComponentClientId + '::content');
    div.focus();
    var docSelectionRange = document.selection.createRange();
    
    docSelectionRange.moveStart ('character', -div.value.length);
    
    var iCaretPos = docSelectionRange.text.length;
    
    alert("iCaretPos --> "+iCaretPos);  ---> This statement always returning '0'. Instead, i want the cursor position inside the text box.
    Please let me know what I'm missing.

    For your reference, sending the sample page html that works fine with the same kind of code.
    <html>
     
     <body style="font-family: tahoma; font-size: 8pt;">
     
      <script language="JavaScript">
     
       /*
       **  Returns the caret (cursor) position of the specified text field.
       **  Return value range is 0-oField.length.
       */
       function doGetCaretPosition (oField) {
     
         var iCaretPos = 0;
              alert(oField);
         if (document.selection) { 
     
           // Set focus on the element
           oField.focus ();
     
           // To get cursor position, get empty selection range
           var oSel = document.selection.createRange ();
     
           // Move selection start to 0 position
           oSel.moveStart ('character', -oField.value.length);
     
           // The caret position is selection length
           iCaretPos = oSel.text.length;
         }
     
         // Firefox support
         else if (oField.selectionStart || oField.selectionStart == '0')
           iCaretPos = oField.selectionStart;
     
         // Return results
         return (iCaretPos);
       } 
      
     
     
      </script>
     
      <form name="blah">
     
       Text Field: <input type="text" name="nameEdit" value="">
       <input type="button" value="Get Caret" onClick="document.getElementById('where').value=doGetCaretPosition (document.forms[0].elements[0]);">
    <input id="where">
      
     
      </form>
     
     </body>
     
    </html>
    Thank you and best regards,
    Kiran kristelle

    Published by: Kiran kristelle on February 6, 2012 12:00

    ... had the chance to look at the source code of the sample. ADF Faces renders text as HTMLTextArea fields when the value of the rows property. The JavaScript code used in the example of client works differently for FF and IE if the input is a text box. This could be a problem in IE or just used JavaScript code. The rows back to a single line (remove) property makes the text as HTML input feldworking with the JavaScript for IE and FF.

    Frank

  • How to get the relative position of the layer in the largest precomp.

    The installation program:

    COMP 1 is 2000 x 3000 pixels. COMP 1 contains X positioned layer in the 1750,1250. (or other)

    I shoot 1 Comp in Comp 2, which is 800 x 600. I have the scale and move Comp 1 inside 2 Comp by an arbitrary amount.

    How can I determine the x position of the layer using the coordinate space of Comp 2?

    Something like this:

    L1 is comp("Comp_1").layer ("layer X");.
    P1 = L1.toWorld (L1.anchorPoint);
    L2 = thisComp.layer ("Comp 1");
    L2.toWorld (P1)

    Dan

Maybe you are looking for

  • I can't turn on my IPAD?

    I CAN'T TURN ON MY IPAD?

  • P6M15PA #UUF: HP Pavilion Notebook Adapter &gt; 1000.0 Mbps

    Is the card HP Pavilion Ethernet 100 Mbit/s or 1000Mbits/s?  It's a new model and supposed to be at 1000Mbps?

  • Different behavior between cRIO 'Run as Startup' and debugging run

    Hello I have an application that does a lot of things, including playing a card NI 9213 Thermocouple, which lies on a connected to a RT cRIO target expansion chassis. The application is run on the target of RT. My problem is related to a behavioral d

  • Wireless does not HELP Please

    Just today my wireless worked perfectly no problems at all. And then I'll be back from College 4 hours later and it seems not to work more, I called cisco and they want to charge me to fix it, and I don't have the money for it. I tried reseting the r

  • HP Pavilion 15-p211ne: upgrade to ssd drive

    Hello I recently bought a new HP Pavilion 15-p211ne and I want to replace the optical drive with ssd drive, I have the following questions:1 should I put the SSD as a secondary drive and reinstall windows, or it must be primary?2. What is the right s