Director of customer Aubolute

I write a client Manager absolute exists only on the landscape, but it may not make a difference if the user just in landscape mode or portrait. so if the user run the portrait in 9800, background bitmap file is shown in net.

Code:

class AbsoluteManager extends BitmapVerticalManager
{
    public AbsoluteManager(Bitmap background)
    {
        super(background, NO_VERTICAL_SCROLL);
    }

    public int getPreferredHeight()
    {
        return Display.getHeight();
    }

    public int getPreferredWidth()
    {
        return Display.getWidth();
    }

    protected void sublayout(int screenWidth, int screenHeight)
    {
        screenWidth = getPreferredWidth();
        screenHeight = getPreferredHeight();

        Field playerField = getField(0);
        layoutChild(playerField, screenWidth * 80/100, screenHeight * 8/100);
        setPositionChild(playerField, (screenWidth - playerField.getWidth())/2, (screenHeight - playerField.getHeight())/4);

        Field toolbarField = getField(1);
        layoutChild(toolbarField, screenWidth * 90/100, screenHeight * 20/100);
        setPositionChild(toolbarField, (screenWidth - toolbarField.getWidth())/2, (screenHeight - toolbarField.getHeight()));

        setExtent(screenWidth, screenHeight);
    }
}
public class BitmapVerticalManager extends VerticalFieldManager
{
    protected Bitmap _background; // the background bitmap 

    /**
     * set full screen background
     * @param value
     */
    public BitmapVerticalManager(Bitmap background)
    {
        this(background, 0);
    }

    /**
     * set full screen background
     * @param value
     */
    public BitmapVerticalManager(Bitmap background, long style)
    {
        super(USE_ALL_WIDTH | USE_ALL_HEIGHT | style);
        _background = background;
    }

    protected void paintBackground(Graphics g)
    {
        //! adjust background for start screen
        int bgWidth = _background.getWidth();
        int bgHeight = _background.getHeight();
        int bgX = (Display.getWidth() - bgWidth) >> 1;
        int bgY = (Display.getHeight() - bgHeight) >> 1;

        if(null != _background)
            g.drawBitmap(bgX, bgY, bgWidth, bgHeight, _background, 0, 0);

        super.paintBackground(g);
    }
}

LOL, ignore.
It has nothing to do with the Manager.
The background image is stretched to inappropriate

size.

BTW, Will Display.getWidth () and Dsplay.getHeight () be a different value depending on the orientation of the screen before entry?

Tags: BlackBerry Developers

Similar Questions

  • Map ID between vCloud Director and vCenter Chargeback by API

    I currently have a configuration where vCenter Chargeback automatically imports the hierarchies of vCloud Director by a data collector. I find difficulty in mapping a vCloud Director ID entity in a vCenter Chargeback one.

    I'll give a practical example:

    I vCloud Director organization ORGNAME and VM VMNAME.

    I want to generate a chargeback for the entity VMNAME report. How do I tell me what ID of entity should I spend in the report query if the only information I have comes from the vCloud Director?

    Thank you in advance,

    Marco

    Hi Marco,.

    To get the Id of the virtual machine in the entity report request, you have the following option: -.

    • Go step by step to VM, in this approach, you have to call according to API
    1. Get all the hierarchies, GET hierarchies--> this response API, get the id of the hierarchy based on the hierarchy name (name of the hierarchy will be same as the name of the Organization to vCloud Director)
    2. Hierarchy of browse, GET /hierarchy/ {hierarchyId} / browse--> this the API response, you get the id of the entity of the root of the hierarchy
    3. Entity to browse, GET /entity/ /hierarchy/ {hierarchyId} {entityId} / browse--> this response from the API, you will GET the ID of the entity for immediate children of the entity of the root of the hierarchy
    4. Go by calling the entity API browse recursively until you reach your desired VM (or entity).

    Please note that travel entity API returns very few details about the entity (name and entity id). If you want to filter your VM (or other entity) based on the name, this might be enough for you.

    But if you want to filter your VM (or other entity) on other criteria, you may need to call ' entity Get GET /entity/ /hierarchy/ {hierarchyId} {entityId} "API for more details on the entity.

    If you to filter the VM (or other entity) based on the attribute custom, you can use the API ' get the attributes of an entity, GET /hierarchy/ {hierarchyId} /entity/ {entityId} / attribute.

    • If the size of your hierarchy is not great (you don't have too many entities in the hierarchy), you can follow the following approach: -.
    1. Get all the hierarchies, GET hierarchies--> this response API, get the id of the hierarchy based on the hierarchy name (name of the hierarchy will be same as the name of the Organization to vCloud Director)
    2. Get hierarchy, GET /hierarchy/ {hierarchyId}--> this response API returns you all entities in the hierarchy with a single blow. Once again very little detail of the entity is returned (name and entity id), if you want to refine your entity on other criteria rather than by name, then you need to use 'Get entity' or 'Get the attributes of the entity year' as explained above.

    Please note that if Director vCloud in vCenter Chargeback hierarchies that are filled automatically, there is a named "vCloudEntityId" located on the rebilling of entities corresponding to entities vCloud Director of custom attributes. The value of the custom attribute "vCloudEntityId" represents the entity type id and the vCloud vCloud Director entity.

    For example, if a TIME named "helloVapp" has id 123456 into vCloud Director. Then in vCenter chargeback the value of the custom attribute "vCloudEntityId" will be "VcloudVappEntity-123456"for this "helloVapp" TIME."

    I hope this helps.

    -Amrainder

  • I would like to change/update to update my current e-mail address Apple ID to match my @icloud email address.

    I would like to change my Apple ID to match my new iCloud email address. Currently, when I attempt to change online by editing my account an error pops up; He says that "your ID Apple cannot end in @icloud.com.» Choose a different email address. "Under section Accessible to I click on the question mark following my iCloud email address States:"it is an alias for your Apple ID email address. »

    I contacted the support on this issue. The Director said customer service representative is a software limitation by iCloud / programmers Apple dictated by Apple management recently. I discovered I have to create an email account for this separate iCloud and lose all my purchases from my current ID. Apple not to mention a headache to transfer all my contacts and information to a new account. I think this should be a simple solution to meet the needs of the clientele of consolidation of digital accounts. I'm tired of having several digital accounts and I just want to have one.

    Objective:

    I would like to change my current email address Apple ID to match my iCloud email address.

    Send feedback to Apple. They will not respond, but at least know that there is a problem. If enough people send feedback, it can become the problem solved as soon as possible.

    Your comments

  • A question about the observer managed by Grid Control

    Hello everyone

    My environment:

    Primary database:
    Single instance 11.1.0.7
    S.O.: SLES 10 SP2 x86_64

    Database pending:
    Single instance
    S.O.: SLES 10 SP2 x86_64

    Observer:
    Director of customer Oracle 11 g 1 material x86_64
    S.O.: SLES 10 SP2 x86_64

    Reading Oracle documentation, I found the documentation of Oracle Data Guard I have to install the Oracle Database 10g software package to manage the observer by Enterprise Manager.

    My question is that I have to install Oracle Database 10 g software to manage the observer by Oracle Grid Control 11 g?


    Thank you very much

    My question is that I have to install Oracle Database 10 g software to manage the observer by Oracle Grid Control 11 g?

    Always an observer should be third machine, which isn't yet primary/secondary.
    You have no need to install grid ORACLE_HOME, simply install the agent on the third server, so this Agent will download all the information on the GRID.
    That's what you're looking for?

  • Version 11 essmsh

    Hello

    Recently, we moved to version 11.1.2 and there seems to be two files like EssbaseClient and EssbaseClient-32 also
    EssbaseServer and EssbaseServer-32.

    Leave where it is appropriate to launch Essmsh.

    Thank you
    Shyam

    If you start it from the server, the best location would be /user_projects/epmsystem1/EssbaseServer/EssbaseServerInstanceName/bin/startMaxl.bat
    More information about the scripts to the:-http://download.oracle.com/docs/cd/E17236_01/epm.1112/epm_install/ch07s03s10.html

    You can also launch to the top of the directories of customer
    64 bits = /EPMSystem11R1/products/Essbase/EssbaseClient/bin/startMaxl.bat
    32 bits = /EPMSystem11R1/products/Essbase/EssbaseClient-32/bin/startMaxl.bat

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Custom projector - Director 8.5 icon

    I am looking for a way to change the icon on a Director 8.5 projector, previously used exe Versiown file but it does not support the large icon formats used by Vista/Win7.

    Tried other software to replace icon ('change icon' and 'Fx 'Ico') but they break the exe (complains to need Shockwave when you launch it).

    Any suggestions, or is Dir 8.5 just too old for this sort of thing?

    Thank you

    Colin

    You cannot add an icon 256 x 256 to a projector D8.5 - as you note, the executable skeleton is too old for this icon format.

  • Is there a c# example to assign an icon to a button custom control AxExpressionEdit?

    TestStand 4.1

    VISUAL C# 2008

    I'm looking for an example of how assign an icon to a custom button AxExpressionEdit.  My code builds and seems to do fine stdole.iPictureDisp conversion icon, but the icon does not appear on the custom button.

    Bee ExpressionEditButtons = axExprEdit.Buttons;

    ExpressionEditButton btn is Bee. GetItem (0, SpecifyExpressionEditButton.SpecifyButton_ByIndex);

    BTN. Icon = (stdole. IPictureDisp)Support.ImageToIPictureDisp((Image)Icon.ExtractAssociatedIcon("c:\\myIcon.ico"). ToBitmap());

    I also tried to use a bitmap with the same result:

    BTN. Icon = (stdole. IPictureDisp) Support.ImageToIPictureDisp (Bitmap.FromFile("c:\\MyBitmap.bmp"));)

    skribling-

    Your icon is stored in the directory of research of \Components\Icons \Components\Icons or ? If you store your icon in one of these directories (preferably the \Components\Icons from Directory), then there is an easier way to reach your goal with the following pseudocode:

    ExpressionEditButton.Icon = (stdole. IPictureDisp) Engine.Images.FindImage ("ArrowDown.ico", 16, 16)

    Let me know if it helps.

  • Where to define new custom data types?

    Hello

    In the past (TS 3.5) I created our own range of custom type file that has been used

    to store the new data types and then referred the case to other colleagues. The file would be

    stored in the ...\Program Files\...\User area.

    My question arose because we now use the TS 4.1/4.2, which is no longer a separate

    Directories of NOR and user in \Program Files.

    Because now I want to change an existing custom data type, I find that our range of custom type has

    fallen by the way side, forgotten.

    Even though I can see the custom data definitions within the sequence of type files that use

    custom data types, which means that I can edit them locally, I intend to return to

    a range of custom type, i.e. comprehensive definition.

    What is the relationship between the definitions in a range of custom type and custom data

    definitions of type of a file of sequence?

    When a palette to update file a file of sequence?, who takes over in the event of conflicts?

    is a really necessary sequence files palette file if they are separated by using the same custom data type

    can update the other? What is good practice when defining custom types of data?

    Thank you

    Gary.

    Hey guys,.

    This is a very interesting thread, and I've got everything right, in heart, with advice given so far. I just wanted to offer some additional tips on the conflicts of kind - with more response, the initial question concerning the definition of what is priority in case of conflict.

    It is important to note that TestStand uses type names and version numbers to identify the different types. It is also important to note that when you use a definition of type of customers within a sequence, the sequence (.seq) file containing the sequence will keep a copy of the type definition. This greatly facilitates distributed sequence files. However, it also opens the door to potential conflicts type.

    TestStand allows only one type of unique name to be loaded into memory at any given time, so that it uses the number of versions of the type to try to resolve these conflicts automatically. For example, TestStand can be configured to load any type is the largest version number (note that this can be changed via the tab Preferences dialog box Options of Station).

    All this information and more are found in the following tutorials...

    Conflicts and TestStand Type Versioning

    How to make a Type of custom step?

    Thanks for your time. I hope this has been helpful!

  • Thermal pad for custom game

    Hi all

    I am trying to create a thermal pad for the OPA561. According to the manual on this pad dimensions SMT IC must be created. In addition, thermal vias should be placed on the SMT pad with diameter of 13 mils. When to place the pad SMT dialog box appears to select the rolling for the via; However, it is not a layer to select it, as the dialog box is empty. When I press 'OK', the path is placed on the pad, but I can't. I know that the path is there, because I can select, but it is invisible. I tried selecting high copper or the low levels, but to no avail. Does anyone have suggestions as to how to solve this problem.

    Thank you.

    Regads,

    Viktar

    Hi Viktar,

    You try to place a via the component edit mode? The best way to place the via would be on the Board of Directors itself after the part has been placed. If you attempt to add a via at the level of the component (ie. in component edit mode), will not be aware of the number of layers on your particular board - so why stratification does not appear I guess.

    After you have created the custom for your part cushion, place the part in your design. Then place the via - you should see slats (as shown below).

    If you still have questions, it might help to post an example of your file so that we can solve it.

    Natasha

  • View files and directories on a remote system (RIO) on a host (PC)

    Hello

    Please assume that we discuss software based on the example of standard project "Labview FPGA control on Compact RIO." The host is an initiation LV14 ongoing fall of running PC, the remote system is a sbRIO-9636 having a USB HDD and SD card. The objective is the control of the process. The control process is not relevant to the question.

    That question is on the implementation of the following functionality: the user operates a host running a user Labview vi (UI Main.vi) the interface locally on the host computer. Part of this vi should offer the user built in dialogue (some express vi or another) or custom dialog (a vi to measure on request). The dialogue should display the directories and files on the remote system that is running RT Main.vi and it must allow the user to select a single XML file on the remote system (which contains generic configuration information). The file name is passed then to the remote system and the remote system will act to open and fill out a few configuration variables.

    I'm sure that a widely used solution exists for this problem but I have not found the right words to type in my favorite search engine and yet to produce the result. I propose the following:

    (1) the user clicks on a button "select config file" Main.vi UI

    (2) the place of event loop UI Main.vi a message on the main message queue of the UI based on the event value caused by the modifier key

    (3) the UI Main.vi enqueues message loop a separate message on the stream from the network "user interface control flow '.

    (4) the Main.vi RT, RT loop - UI Commands.vi Subvi receives the message from the stream and places it on the message Main.vi RT queue

    (5) the message Main.vi RT loop performs some functions to read disk, directories and filenames of the RT system structures

    (6) name of file and directory (5) data are converted to a variant and went with an appropriate message in the network of RT writer stream

    (7) the Main.vi UI periodically reads the stream network of RT writer (it's in the 'monitoring loop') and place the message received (6) in the queue of messages in the user interface

    (8) the message queue of the user interface main filled the main façade of the UI with the data

    (9) the user selects the directory and the file they want and click on an ok"" button.

    (10) the causes of button click ok the event loop of the main UI to place a message in the queue of messages of UI Main.vi due to the expectancy value change on the ok button

    (11) the places UI Message Loop a message on the stream from the network "User interface control flow" with the selected file name of the selected file as the data (stored as Variant)

    (12) the RT Main.vi, RT loop - UI Commands.vi Subvi receives the message from the stream and places it on the message Main.vi RT queue

    (13) the RT Main.vi message loop opens the XML file and populated the appropriate variables with the configuration options that are there.

    The user must be able to cancel the dialog and avoid using a configuration file, but I have not delt with it here.

    Now for the questions:

    (1) is this a logical approach?

    (2) are there any suggestions for a better way?

    (3) all links to pre-written code that will allow to me impliment all or a part of this with minimal effort (I am referring to dialog bit rather than the forest of streams and events network as these structures still exist and have a lot of custom code in them)?

    Thank you

    James

    I do something like that, but as the interaction of the user on the host, I keep the Configuration files also on the host.  This saves a few steps:

    • Host opens VI of dialogue saying "Choose Configuration file", pointing to the location designated on the host.
    • The user selects a Configuration file.
    • Host bed data packets to send to remote files.
    • The host sends Message 'Configuration' with the previous step Configuration data remotely.
    • Remote control receives the message and any Configuration configures automatically, possibly to send message 'I'm Ready' return home.

    All I/o file consists of the host, and only a single host remote message must be sent.

    Bob Schor

  • HP psc 1210v all-in-one: "HP Director" Desktop shortcut does not work.

    OS: XP Home.  installation of printers HP psc 1210v all-in-one & software... turned out perfect - no error detected or reported.  everything works except the shortcut on the desktop "HP Director", & "HP Director" thru Start > all programs > HP > HP PSC 1200 Series > "HP Photo and imaging Director."  tried everything I could think of: HP Diagnostics, repair, troubleshooting, uninstalling/reinstalling, google search, etc. - nothing works.  can happen there - printer works just fine, as do other programs HP installed - but it's just driving me crazy.  I have custom - build computers, [it is my 5th], like a hobby - and I have never had a problem, [hardware or software], that I couldn't solve - so far.  This one has me really stumped.  printer & software suite is out of warranty - HP support is completely useless now.  would really appreciate to solve this problem help.  Thanks in advance.

    Hello

    Please try to install the following hotfix:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=OJ-46104-1&cc=us&DLC=en&LC=en&OS=228&product=90764&sw_lang=

    After compleing installation, restart the PC and check any change.

    Kind regards

    Shlomi

  • Ability to save the settings of the system - custom option grayed out

    OS - Windows Vista Home Premium, SP2
    Kodak ESP7 AIO printer-
    When I use my desktop application to create an envelope to the special dimensions, after entering the size and process information, I click on properties of the file, the printer settings, so that I can create the same envelope of size here with the custom option.
    My problem - the custom option is grayed out with an 'I' next to it.
    When I click on the 'I', a consultative mechanism opens with:-this feature is not available because you are not allowed to save the settings on this computer system.
    Please help, thanks.
    R.K.

    Hello Rknott

    Thank you for using Microsoft Vista answers Forum!

    You have administrative rights on this machine?  There are some functions that you will not be able to perform on a PC, unless you have the administrative law on this PC. Save your work, exit the program. Before launching the program again, right click on the .exe file and select run as directors. Click on continue or provide credentials admin if prompted.

    If please reply and let us know if your problem is resolved or if you need more help

    David O
    Microsoft Answers Support Engineer
    Visit our and tell us what you think.

  • Custom notifications and ringtones not available more

    I can't take when this happened, but it was last week, but custom notification and the ringtone that I put restore the default values, and the phone is no longer see them in the list.

    Initially they sounds (mp3 and wav) were in directories in the main repository, Notifications and Ringtones I moved the in the subdirectory of a music that I found online, but I still don't see them in the list.

    The only thing I've done recently is updated the built in "Themes" app.

    Someone at - it else discovered this and been able to solve the problem?

    Actually, it's funny you mention it as a reboot seemed to have worked without even seeking the .nomedia file.

    I restarted the phone between the messages and the selection is now available.

    Bug somewhere, I guess.

  • A FRUSTRATED SONY CUSTOMER

    I wish that this escalation to a higher level of SONY, as sony very frustrated customer.

    I bought a sony 46 '' LED TV and bought additional 2 years of extended warranty, everything went well past a year. My TV had problems after a year and I called Sony customer service and filed a complaint. Well, that's the tricky part, when I signed the contract that the customer Executive noted that I will get a brand new TV incase of questions and the same statement said when I called Customer Executive to report the problem and the Executive also that it will be delivered within 5-7 business days. Well, I filed a complaint on June 25 and I called them twice to check the status, they said that the order is not yet processed and it will take more time. I only will get a given TV at nine and not a new TV that was a shock for me. In addition, the Executive has been so rough and when I asked him this escalation, he said that it cannot get worse and hung on the call. Then, when he reminded her again and she rally for a Manager without exploitation. I said the customer Executive Director that I will think that I never bought a SONY TV and canceled the order. I never thought that SONY will do the wrong things to sell their products.

    I was deceived by all means with these 3 points below.

    1. the extended contract has never said that I'll be a get that a given TV at nine, the seller and the first Executive of customer mentioned that I will get a new TV but when I called them to check the status of my complaint, they said that I will get only a refurbished TV. -SO THEY ARE TRYING TO SELL SOMETHING AND GIVE YOU SOMETHING INDICATING THAT IT IS THE PROCESS.

    2. it has been made clear by the Executive of customer that I will get a replacement in 5 to 7 business days when she is called to check the status on the 6th day, they said the order was not yet processed and it will at least take 5 to 8 days to process, then the transit as well as time. . IT IS THEREFORE ALL WRONG.

    3. the customer Executive has been so rough and he was not yet ready he climbs to his manager, he simply said that if you want to take it, otherwise it will cancel the order and he suspended the call.

    NEVER SEEN SUCH A BAD EXPERIENCE and I'll neverever BUY SONY PRODUCTS AND I highly RECOMMEND NEVEY ALL PRODUCTS SONY to ANYONE. I WILL SPREAD THE WORD TO ALL MY FRIENDS.

    CASE No.: snack for your reference: E60114545

    MY MOBILE: 6175901366

    LEVERAGE WILL BUY SONY PRODUCTS MORE AND I WILL NEVER RECOMMEND SONY TO ANYONE.

  • How to run customer and display on the same host server

    I know it's simple, no doubt, but I can't find the answer on the Internet. I am running BB 1.9i. Recently, I noticed that my server to display some of the customer was not run tests, as I expected. After some checking, I decided that it was because these customer scripts were not in the configuration of the server. My first inclination was to just add them. However, after a bit of research on the Internet, I have seen many people claiming that the client and the server must be kept in separate directories. So, I created another directory and my client config untarred it. I took care of bb-hosts was correct and then I tried to run runbb.sh in the client. He has already said a running process of Big Brother and abandoned.

    Could someone point out what step am I missing or a link to a web page that explains the procedure for configuring a client on the server to display?

    Kind regards

    Brad

    Hmmmm... only, you should be able to install archive of bbclient (at the same level as your bbserver). Copy the bb-hosts of your BB server and. / runbb.sh.

    You should only get this message "already running", if a client is already running (not the server).

Maybe you are looking for