positioning of image in my application

Hi guys, I have another question.

How can position an image below on the right in my application?

I have 2 image

Bitmap logoAci = Bitmap.getBitmapResource ("logo_aciglobal.png");
BitmapField bitmapFieldOrig = new BitmapField (logoAci, Field.FOCUSABLE);
This.Add (bitmapFieldOrig);
        
Bitmap logoSeat = Bitmap.getBitmapResource ("seat_57x57.png");
BitmapField bitmapFieldSeat = new BitmapField (logoSeat, Field.FOCUSABLE);
This.Add (bitmapFieldSeat);

I want to put the logoAci down to the left and down right logoSeat!

someone has an idea?

Thank you!

Because you need to position the two images, one on the left and one to the right, no built-in Manager will help you.

The solution would be to:

(1) create a Manager custom to the first field on the left and then second right

(2) add your two BitmapFields to this custom in the desired order

(3) setStatus (thatCustomManager)

Your custom manager should look like this:

public class TwoImageManager extends Manager {
  public void add(Field field) {
    if (getFieldCount() > 1) { // adding a third field? No way!
      throw new IllegalStateException("Can't add more than two fields");
    }
    super.add(field);
  }

  protected void sublayout(int maxWidth, int maxHeight) {
    Field leftField = null;
    Field rightField = null;
    int totalHeight = 0;
    int availableWidth = maxWidth;

    if (getFieldCount() > 0) {
      leftField = getField(0);
    }

    if (getFieldCount() > 1) {
      rightField = getField(1);
    }

    if (leftField != null) {
      layoutChild(leftField, availableWidth, maxHeight);
      totalHeight = Math.max(leftField.getHeight(), totalHeight);
      availableWidth -= leftField.getWidth();
      setPositionChild(leftField, 0, 0);
    }

    if (rightField != null) {
      layoutChild(rightField, availableWidth, maxHeight);
      totalHeight = Math.max(rightField.getHeight(), totalHeight);
      setPositionChild(rightField, maxWidth - rightField.getWidth(), 0);
    }

    setExtent(maxWidth, totalHeight);
  }
}

It's just the initial version - embellish as you like.

Tags: BlackBerry Developers

Similar Questions

  • Rstrui.exe - bad Image of the application or DLL C:\Windows\System32\Wbem\Framedyn.dll is not a valid windows image. AND the exe task manager. -Bad guess. The application or DLL C:\Windows\System32\VDMDBG. DLL is not a valid windows image.

    I use WIndows XP.  After that THINKPOINT is presented on my system, I have not been able to access my task manager or restore my system to an earlier date.

    I have checked Kellys Korner and various other suggestions on the internet, but have had no luck with anything.

    It shows that the HKEY value for the Task Manager is set to 0.  Don't know if that helps.

    I BELIEVE I have the THINK POINT removed from my system.  I use Microsoft Security, Ad-Ware and Malwarebytes Anti - Malware.  Between the 3, it seems I have everything.

    But now I can not restore my system, or use my TASK MANAGER.

    Help would be GREATLY appreciated.

    Thank you!

    Bindifer

    Think like a malicious software...
    It infects your system and is not to be found and removed.
    What are you most likely to use to find and remove malware?
    Internet, Google, Task Manager, regedit, restore the system command prompt, etc...
    The malware is often afflicts one or more of these components to try to trick into thinking you need to perform a system restore, a repair facility, or even to reinstall your XP from scratch.  None of these things are necessary since you can usually just to thwart malware.
    If the referenced files are completely absent from your system, you will see messages like this when you try to run the applications:
    Taskmgr.exe - Unable to locate component
    This application has failed to start because VDMDBG.dll is not found.  Reinstalling the application may fix this problem.
    Rstrui.exe - Unable to locate component
    This application has failed to start because framedyn.dll was not found.  Reinstalling the application may fix this problem.
    Sometimes you can click through the OK messages to access the System Restore screen, but the restoration of the system is still broken.
    If the referenced files are present on the system, but somehow corrupted, you will see messages like this when you try to run the applications:
    Taskmgr.exe - bad Image
    The application or DLL C:\WINDOWS\system32\VDMDBG.dll is not a valid Windows image.  Please check this against your installation diskette.
    Rstrui.exe - bad Image
    The application or DLL C:\WINDOWS\system32\wbem\framedyn.dll is not a valid Windows image.  Please check this against your installation diskette.
    Sometimes you can click through the OK messages to access the System Restore screen, but the restoration of the system is still broken.
    These files are part of the file 3498 who cares about Windows File Protection, so unless the WFP is also broken it is likely that files are missing completely (you get a different error message).  What is more likely is that the files are somehow corrupt or have been replaced by incorrect files.
    Assuming that XP is installed on your C drive and in the windows folder, XP keeps copies of 3498 files that he cares about this issue:
    c:\Windows\System32\dllcache
    On a health care system, Windows File Protection keeps track of 3498 protected files and quickly and quietly replaces all the files in the list that appears missing from the backup folder.  File protection Windows will not replace the files if they are somehow corrupted or replaced by bad files.
    You can simply copy the backup files in the dllcache folder in the folder where are the suspects or missing files.
    Using Explorer, navigate to the folder c:\windows\system32\dllcache and individually to copy the backup files in there and then navigate the folders where the suspect or incorrect files are and paste in the copied files.
    Depending on your installation, you can also find copies of the files in this folder:
    c:\windows\ServicePackFiles\i386
    Answer Yes, if you are prompted to replace existing files.
    Test your functions now and then to reboot your system to make sure the changes 'stick', and then fix any problems.

    Do, or do not. There is no test.

    I need YOUR voice and the points for helpful answers and propose responses. I'm saving for a pony!

  • "services.exe - bad image" and "the application or the DLL...\ShimEng.dll is not a valid Windows image.

    At the start this morning, I received the message following "services.exe - bad image" and "the application or the DLL...\ShimEng.dll is not a valid Windows image. Is there a simple solution to this problem? If it is ok, the unit freezes then

    Hello

    1. you remember to make changes to your computer, after which the issue started?

    I would recommend that you follow these steps and check if the problem persists.

    Step 1:

    I would recommend that you run a full scan using theMicrosoft Safety Scanner and check if the problem is related to malicious software.

    Note: You may lose data while eliminating malware.

    Step 2:

    Test the issue in a clean bootand verify if the issue.

    Note: Follow step 7 to your computer as usual.

    Step 3:

    Make SFC scan and check if the problem persists.

  • I'm trying to scan a document using my dell scanner, but I get the message: 'an image to the application of the texts is provided for you on your cd in the OCR file.

    Original title: Dell Imaging toolbox: analysis: change Image text

    Trying to scan a document, I get the message: an image to the application of the texts is provided for you on your cd in the OCR file.

    -Cancel, install your ocr software, try again.

    There is no image to the application of the texts in the file of the ocr, Abbyy and Recore and neither has the image of the application of the texts.  Heeeelp!

    Communicate with people who have done your scanner and ask them to supply the missing software.  Without this you will not be able to proceed.

    "blessedandhighlyfavored" wrote in the new message: * e-mail address is removed from the privacy... *

    Trying to scan a document, I get the message: an image to the application of the texts is provided for you on your cd in the OCR file.

    -Cancel, install your ocr software, try again.

    There is no image to the application of the texts in the file of the ocr, Abbyy and Recore and neither has the image of the application of the texts.  Heeeelp!

  • How to set or keep a background image in my application at the beginning of the application that is, after clicking on the application icon.

    How to set or keep a background image in my application at the beginning of the application that is, after clicking on the application icon.

    I have developed a BB 7.0 BONE HTML5 / web app in which I want to include background image.

    Please guide me.

    Take a loot of rim: loadingScreen on config.xml http://developer.blackberry.com/html5/documentation/rim_loadingscreen_element_834680_11.html

  • APEX5: How to use User(Logged In) Image throughout the application

    Hello

    We have images (BLOB) user stored in the custom table, now, when the user opens a session, we wanted to use his image on several pages in application as in reports, forms.

    Question is how we can use a single image across the application, without reloading or Access database again.

    I thought I ODP and hiding the image in the ODP. Then store the URL in the overall page element to access the image in any of the application but it seems that ODP is drawn for each page and giving the database image. Best way to do this?

    Any thoughts?

    Thank you

    Ankit

    Ankit-K-Oracle wrote:

    We have images (BLOB) user stored in the custom table, now, when the user opens a session, we wanted to use his image on several pages in application as in reports, forms.

    Question is how we can use a single image across the application, without reloading or Access database again.

    I thought I ODP and hiding the image in the ODP. Then store the URL in the overall page element to access the image in any of the application but it seems that ODP is drawn for each page and giving the database image.

    The ODP does not cache the image Explorer.

    • Have you implemented the ODP using a Cache-Control header, as described?
    • Did you check the cache settings in the browser?
    • Have you used a web inspector to determine if the browser is in charge of the image from cache or asking for each page view?
  • How can I extract images of the application "Photos of Macintosh" in the Lightroom?

    How can I extract images of the application "Photos of Macintosh" in the Lightroom?

    I know, but it must be on the hard disk, to retrieve an individual photo appears

    be a daunting task... Need help...

    See you soon

    In Photos, select all the photos you want to put in LR; Select "Export" in the file menu and export to a new folder on your hard drive.  Finally in Lightroom, import pictures into this new folder.

  • My Lightroom membership had expired, I have come to renew, but cannot develop images in the application. I have to wait so he could treat or re install the app or something?

    My Lightroom membership had expired, I have come to renew, but cannot develop images in the application. I have to wait so he could treat or re install the app or something?

    Hi lausworld,

    Please see the troubleshooting link below.

    Reference: creative judgment Cloud 2015 to return to the mode of trial

    Let us know if that helps.

    Kind regards

    Mohit

  • Navigate to the login page of workspace APEX while clicking on the LOGO image in the application

    Hi friends,

    IM an APEX application on top of the APEX 4.2.3 in the fact that in the properties of the application for the LOGO, I made a picture as

    #WORKSPACE_IMAGES #bluehill.jpg

    When I click on this image in the means of implementation, it redirects to the home page, because I don't want this redirect to happen all by clicking on the image. So, for that, on the interface tab, I erased the navigation link which is targeted for the HOME URL = ' f? p = & APP_ID.:1: & SESSION. "with a space, like this URL HOME choice is the mandatory option to provide.


    Once, after that I sent back a space for the URL of HOME page and after that if I clicked on the image using the application, then it redirects to the APEX workspace login page. Im not sure why this is happening shortly after I made reference to a space for that.


    Kindly help me to limit the page redirect by clicking on the logo of the application.

    Thanks in advance.


    Kind regards

    Mini


    If you don't want the logo as a link, edit the page templates and delete the href="#HOME_LINK#" attribute of the logo a element. (It should probably not remove the anchor element completely it can be used for styling purposes).

  • problem with the position of image in the slideshow width 100%

    Hello Im having a problem with my slide show that is 100% browser width.  the slideshow container is set to a height of 300 pixels and the picture I inserted is about 1500 pixels in height.  I placed the image so it defined in a specific section of the image, but when I hit the 100% width button it positions the image down.  is this a bug or it's adjustable somehow?

    Hello

    What you encountered is the default behavior of the slideshow widget, which, once the value of width of 100%. I'm afraid at this point, you can not edit/resize the image. So, to do the same thing, you will need to remove the 100% width of the widget option.

    You may want to file is like a feature here request: ideas for features in Adobe Muse

  • Help understand the positioning of image

    Hi, with the help of this forum I added images in my html5 page thus...

    <>
    <>test</>
    <

    =' images/test.jpg "alt ="test image"class ="photo">" "
    <>Lorem ipsum dolor sit amet. SED dui nec justo. <>/.
    <>/.

    {img.pic}
    float: right;
    Width: 180px;
    height: 150px;
    border: 0;
    padding: 0 0 15px 15px

    If I want to add another image/s in my site, what is the best rule to position an image where you want it to appear?

    Use the floats and margins to align images.

    Some CSS demos below to get started:

    Nancy O.

  • Problem of resizing image in Swing Application

    Hi all

    I need a help on resizing and adjusting the Image in Swing application.

    I develop a Swing Application. Here I display an image on the header.

    I find it difficult to manage the image, I like that the image fits perfectly horizontal limits (even when resizing the window).

    The code below is unable to... Even he is not able to adjust the horizontal boundaries by default.

    ========================================
    //code for image starts
            BufferedImage myPicture;
            JLabel picLabel = null;
            try {
                 myPicture = ImageIO.read(new File("artes_header.png"));
                    picLabel = new JLabel(new ImageIcon(myPicture));
                
              } catch (Exception e) {
              }
            
            GridBagLayout gLayout = new GridBagLayout();
            getContentPane().setLayout(gLayout);
    
            GridBagConstraints c = new GridBagConstraints();
            c.gridx = 1;
            c.gridy = 1;
            c.weightx = 1;
            c.fill = GridBagConstraints.BOTH;
            c.insets = new Insets(0, 0, 0, 0);
            panelTop.setBackground(Color.white);
            getContentPane().add(picLabel, c);
            
            c.gridx = 1;
            c.gridy = 2;
            c.weightx = 1;
            c.weighty = 1;
            getContentPane().add(tabPane, c);
    ========================================

    Please someone help me to solve the same problem.
    Thanks in advance.


    Kind regards
    Gerard

    Published by: user7668872 on July 31, 2011 06:25

    Published by: user7668872 on August 4, 2011 03:56

    Tips for the facilitator: Please read the announcement at the top of the forum list and the FAQ linked to each page. They are there for a purpose.

    Then edit your messages and format the code correctly.

    DB

  • How to position an image in the middle of a paragraph?

    Hi all


    I'm looking for a way to have an image appear somewhere in the middle of a paragraph and still have text flow around it.  I am familiar with float a left or right image and putting it on at the beginning of a paragraph, and of course, that works very well.  But I would appear to be more "magazine-style", so that you have a title and then a few lines the text of the story, then an image that is flush on the side with text flowed around it.  I tried with quite the image positioning, but it does not seem to flow text around it.  Am I missing something obvious, or is - not possible?

    Thank you.

    "The problem with the fact that you have to position the image at the beginning of the paragraph of text."

    This is not true. Here is an example:

    http://www.Projectseven.com/csslab/floats/image-basic/

    --

    Al Sparber - PVII

    http://www.Projectseven.com

    Menus in Dreamweaver | Galleries | Widgets

    http://www.Projectseven.com/go/HGM

    The Ultimate Web 2.0 carousel

  • Position an image after it is loaded

    I have placed an empty movieclip on the stage and use the following AS2 to randomly load an image inside of an xml file. What I can't understand, but (and Yes, I've spent hours Googling it) is to know how to position the image on the stage at the top right. I know it must be picture_mc.x = Stage.width - picture_mc._width; or something like that, but where to put this code so that it is the width * after * the image is loaded?

    xmlImages = new XML();
    xmlImages.ignoreWhite = true;
    xmlImages.onLoad = geeklog;
    xmlImages.load("..) ("/ flash/people.xml");

    function Loadimages() (loaded) {}
    If {(responsible)
    xmlFirstChild = this.firstChild;
    imageFileName = [];
    totalImages = xmlFirstChild.childNodes [0].childNodes.length;
    for (i = 0; i < totalImages; i ++) {}
    imageFileName [i] = xmlFirstChild.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [i].attributes.title;
    }
    randomImage();
    }
    }
    function randomImage() {}
    If (load == filesize) {}
    var ran = Math.round (Math.random () * (totalImages - 1));
    picture_mc.loadMovie (imageFileName [a], 1);
    }
    }

    If you do not know the dimensions of the image beforehand, then you must use MovieClipLoader.loadClip () instead of loadMovie.  The reason being, loadMovie can't have a listener events to detect when the loading is complete, but MovieClipLoader.loadClip () don't.  If you look to the top of the MovieClipLoader class in the Flash help files and then look at this category addListener method, there is an example that will help you get it coded for your situation... you can use the onLoadComplete rather than uses of examples (onLoadInit)

  • Loading pages in Div? And positioning of image

    Hi I have 2 questions, but to save 2posts I put both here

    First I would say I'm trully appreciate the help of the people give to this forum! hope one day that I can help you


    In any case, this is my 1st question

    I'm use divs now but still learning

    I got my layout as follows: Div at the top of the page containing the site banner > Div under this container of the site navigation > then my div Container containing the content of the site

    So what I want to do is load all contents of the website in the background Div, but without having to reload the 2 albums similar to frames basically div... I see as being more efficient if the user is not having to reload the keys flash and banner for the website each time a page is called and yes I know frames are outdated crap etc etc im not using frames... I just have to target a div


    Someone suggested to use SSI that I understand how it works somehow... but I know that the alternative to what I want is just to set up a base about how everypage must find and use ssi + news?

    My other question is this positioning on image I little know > is there a way to Weaver of dreams to grab absolute control of a post it was desired in creation and photo mode? similar to the evolution of the package in MS word and wacking just the peak were you want to go

    Alternatively, or on the same topic that is not possible but at least can u image layer on image or position images on 2 divs?

    or is there a good tutorial on doing these kinds of things in dreamweaver cs4

    Thank you very much for any help given

    Legends of CSS on floating images (similar to the line break)

    http://ALT-Web.com/demos/CSS2-captions-on-floated-images.shtml

    I see as being more efficient if the user is not having to reload the keys flash and banner for the website each time a page is called and yes I know frames are outdated crap etc etc im not using frames... I just have to target a division.

    You're wrong on effectiveness because it is not how a web browser works.  Once your images are loaded into the cache of the browser, they are - are still available for instant use in the rest of your site pages.  Efficiency is good.  Things do not have a good site.

    Removed Adobe Flash buttons and Flash CS4 text for a reason.  Use the CSS style text links or the CSS Sprites instead.

    CSS sprites

    http://ALT-Web.com/demos/CSS-sprites.shtml

    Good luck with your new project!

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB

Maybe you are looking for