How to develop BlackBeery Ui

I want to develop the UI for a screen which I join... on ehelp me please to write code for the user interface

akhilmuppa wrote:

Main box is a text box, and it will scroll vertically and horizontally...

Yes, really, I have problem with header, I've tried in many ways with many managers, but it does not display the two textfielld and button .so please help me solve this problem... As I referred to it a few docs but I force get the solution

OK, then you create your screen with both VERTICAL_SCROLL and HORIZONTAL_SCROLL flags. The main area Manager (which is not directly visible to you if you can get the reference through getMainManager) is a VerticalFieldManager, so it will hold the fields vertically (duh!). However, thanks to the HORIZONTAL_SCROLL indicator, it will allow wider than the screen fields to get what they want and will be able to scroll horizontally - either programmatically (setHorizontalScroll) or 'naturally' when the focus moves outside the visible area.

As for the problem with the textfield and button, there are two ways to solve it.

For example, if you searched "width-hungry" as I suggested, you would have found, for example, this thread:

EditField and checkboxfield on the same line

Take a look at the solution - it's one of the ways to do so: simply create a field that will be limited to how much of the piece.

The second solution would be to create a Manager customized for this particular configuration of TextField left and ButtonField right. The Manager will always have exactly two fields, in this exact order, so you can write his sublayout invoking it.

So, what does ' protected void sublayout (int maxWidth, maxHeight) ? It does the following things:

(1) receives the maximum width and height it can occupy in the parent Manager (see maxWidth and maxHeight parameters);

(2) tells the Manager (managed fields) how room child within this handler they can get (using layoutChild (child of field, int height, int width)). After that (and only after that) he knows how this child will be actually using child.getExtent (any form) or (if you want width and height separately) child.getWidth()/child.getHeight (). It is normal that any Manager to expose a child, get its dimensions, adjust the width and height according to the remaining information then continue carrying the children in the same way.

(3) positions of its children using the setPositionChild (child field, int x, int y) call. Positions are relative to its upper-left corner (which is (0,0)).

(4) calculates the height and width that result and sets using setExtent (int width, int height).

Try to write the handler using these data as well as the link provided Simon and come back here if you still have problems. By the way, take a look at sublayout to JustifiedEvenlySpacedHorizontalFieldManager for a good example.

Tags: BlackBerry Developers

Similar Questions

  • How to develop and reduce lines or groups of lines in figures?

    How to develop and reduce lines or groups of lines in figures?

    Thank you

    Casey

    Select the rows (or columns):

    Then, place the cursor on one of the row headings (the numbers on the left):

    so that you see the carat facing downwards, then click here to bring up the context menu for the lines:

    then select "hide selected rows.

  • How to develop an Android firefox add ons? Is this even to develop a desktop firefox add ons? as

    How to put android firefox add ons? Where I can launch my app using this add ons. This add-ons - display a button like on the page launch my app android if clicked.

    See link to know

    blog.Mozilla.org/addons/2009/01/28/how-to-develop-a-Firefox-extension/

  • Google Translate opens as a superposition of one third of page in my browser, how I develop a whole page?

    Google Translate opens as a superposition of one third of page in my browser, how I develop a whole page?

    Hello

    Firefox on Windows is now after display, scaling options that can make the biggest text on screens at high resolution. There are several ways to solve this problem. See the Web pages are broad and fuzzy after update of Firefox - how to fix article for a suggestion. Here is another possible solution:

    • Type of topic: config in the Firefox address bar and hit the Enter key.
    • If the warning that this might void your warranty , click I'll be careful, I promised.
    • Search for layout.css.devPixelsPerPx

    • Double-click layout.css.devPixelsPerPx to edit its value. The default value is - 1.0 in Firefox 22 and above. Change it to 1.0 to run as in previous versions of Firefox.

    If necessary, further adjust the value of 0.1 or 0.05. Values between 1.0 and around 0.5 to reduce the size of the elements. Use a value greater than 1.0 to increase the size. For example, a value of 1.25 will increase the font size of the 125% to account for the default DPI setting in Windows 8. Check the value that you enter. Definition of a value that is too small will take everything away and too high will explode things.

    If the web pages should always be adjusted so you can watch the extension Default FullZoom Level or NoSquint .

    To adjust the font size for the user interface, you can use the extension of theme font & size changer .

    This solve your problems? Please report to us!

    Thank you.

  • How I develop on a crio and deploy on another

    How I develop on a cRIO and deploy on another?

    I have developed a cRIO application and test on an another cRIO before deployment on many other cRIOs.  (See image below).

    I used to do this in real-time systems: develop in our facilities with our materials and test it on their development on the site of the client system.  But with the cRIO things are a little different.  In the Project Explorer window, I host (my computer) and the target (cRIO Lab).  I tried the following:

    • Connection: disconnect the cRIO Lab (via the Ethernet connection) and the cRIO of customer connection and then discover the new cRIO in Project Explorer. This works.
    • Copy VI & variable: I copied the same file under the cRIO Lab structure in the project for the new cRIO Explorer. I did this by adding a VI and a variable - the same ones on the cRIO Lab shared library. It seems to work.
    • Running or not: the problem is when I try to run it because it looks for variables that are shared on the old cRIO.

    System Specs: LabVIEW 8.6.1, cRIO 9074 w / various modules, configured in scan mode and to be deployed as an executable

    What is the best way to copy an one cRIO to another project?

    Hello

    First off I will say that it is the problem more beautiful and informative that I saw.

    Secondly, you should be able to do the following:

    -instead of adding the two targets to your project, just go to the properties of the target (target of click right, select properties) and change the IP that you are testing on. That would be the simplest and cleanest method.

    - Otherwise, in your configuration, when you port code from one to the other cRIO, don't forget to right click target and select deploy all. You must rebuild your application as well.

    Please let me know how these suggestions work out for you.

    Kind regards

    Anna K.

  • How do develop you the whole structure in windows eaployer

    How do develop you the whole structure in windows eaployer

    Hello

    See the following articles:

    How to customize the Windows Explorer views in Windows XP

    Description of the Simple in Windows XP folder view

  • How to develop an MDI application as the editor of Visual studio (multi tab)?

    How to develop an MDI application as the editor of Visual studio with the MULTI TAB that can be dragged from parent window?

    I used EnableMDITabbedGroups (true, CMDITabInfo) which creates a multi tabs, but does NOT allow to drag the tab of the window parent, unlike the editor of VC ++.

    In addition, he will honor the parent/child relationship normal (as normal to the MDI child windows) windows associated with the e-mail even after hanging out?

    Thank you

    PR

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • How to develop the Rss reader for Blackberry java?

    HII,

    This is my first post in this forum, I'm new mobile app, can everyone, how to develop the Rss aggregator for java Blackberry?

    I've attached a zip file which would be useful for you, check it out it's a RSS reader coll, I used some of the techniques for my application, please mark as solution, thank you.

  • How to develop a slide that contains certain conditions before authorizing a person to move

    I developed a MAIN slide that allows a user to access multiple slides by using the option to click box and then return to the MAIN slide it the end of the duration of the slide said.

    My question, how to develop a slide that's smart enough to know he must away slide of HAND 2 HAND only once the end-user closed x number of shares? Also use functions within the click box to develop this ability?

    Take a look at this tutorial:

    http://www.Infosemantics.com.au/Adobe-Captivate/template/03-dynamic-menu-page

  • How to develop Indesign on MAC OS?

    Hello

    I'm developing an Indesign application on window in vc ++ using COM (using file resources of Visual Basic.tlb ).

    Now, I want to develop indesign on MAC OS.

    I'm new to mac.

    How to develop Indesign on mac?

    Thank you

    For MAC, you can use AppleScript or Javascript, COM is a technology purely WIN.

    In my opinion, you should go with Javascript that way you'll be able to share the same code on a VICTORY and a MAC machine.

    Hope this gets you started.

    Manan Joshi

    -InDesign efficient Solutions

    MetaDesign - Solutions

    http://metadesignsolutions.com/services/InDesign-development.php

  • How to develop a customized using Hgrid page

    Hello
    I have to develop a custom with the hierarchy page. I think it's going to happen through hgrid. So how to develop the page using hgrid.

    Thanks in advance,
    Roxanne...

    Hello

    -Create HGrid region.
    -According to the present create tree... for nodeDef1:set properties:

    Instance view and ViewAttribute.

    Concerning
    Meher Irk

  • How to develop and test the application mobile flex without the real device?

    I'm trying to read some information about it, but decided to ask also here.

    I have a project that has a company wants to grow me, it's for iPad. That's ok I am with Flex and the framework for web development, but not for mobile. Why? Because I have no idea how to test my application. I know generation ago it sort of the desktop version of the application with the change of the "back" button on the orientation stuff, but how do I know my application will look and work exactly the same (I mean NOT performance here). I mean you know how every android or iOS device have their native keyboard or native video player for example and I have only in the debug version of the application.

    The question is how to develop this application based on the desktop emulator or anything and then hope that my app looks and works on a device, as it should... Of course I can't afford to buy all the devices it is just to be able to test on it if necessary? So, how do you, how to test how my iPad app works on a device without a? I know I should get a licence from iOS dev to be able to package the app for iOS, but it's $ 99 per year or something like that I can handle, but how to test my application without having to buy the darn device? Are there any emulator for iPad or something like that I know what my customers will see when they get the application? One of my friends told me that the mac os x use the developers a tool - cause some kit of dev who has emulators for all iOS devices and you can build and test there immediately and that you can simulate virtually any combination of key for example, and he said he's working and seems to 1:1 as the real device but he didn't know if can I export an AIR application and try it like this, he only knew for app written in native code.

    If someone can just tell me how should I do this? Should I buy a mac os x computer laptop to test because I am a user of windows 7, or perhaps create a mac os x virtual machine and tests out there or maybe the only option is to actually buy the device... that would be terrible for a freelancer...

    I hope someone can save the day here! Thank you.

    F

    Since the AIR for iOS applications are compiled to ARM code you will not be able to run on iOS emulators running on Mac OSX.

    You can do a very simple test with the "Simulator" built into Flash Builder, but it is not much more than a window to AIR with a window size that matches the resolution of the selected iOS device.  When running in the simulator of the application is not compiled to ARM code so it will take a completely different code path than what will be the final release of iOS.

    Ultimately if you are developing for iOS with AIR nothing but for tests on real iOS devices.

  • How to develop applications for EBS using jdeveloper 11 g?

    There is "workspace configured oracle applications" in oracle jdeveloper 9i. Why not in jdeveloper 11g?
    How to develop applications for EBS using jdeveloper 11 g?

    Thank you!

    Yes, once you hear the magic words (OFA)...

    In fact, no versions of JDeveloper you get OTN support OFA, only very specific downloads OAF you get from https://support.oracle.com do.

    John

  • How to develop and see operator dimensions scd to OWB 11 GR 2

    How to develop and see dimensions scd to OWB 11 GR 2 operator. To view the internal operators that comprise

    Published by: jeevan on Sep 5, 2010 11:41

    Hello

    You can select the size operator and click on consult the child graph. Then when we click on return to the Parent to go to the main mapping.

    See you soon
    David

  • How to develop an application using ADF Faces components main in JDev 11 g?

    Hello
    I just started to work with JDEV11g. Now, I have a question here.

    By default when we tried to create any Application in JDev 11 g libraries of tags are still showing only ADF Faces rich client components (11g). I want to use the ADF Faces Components (10.1.3) Core in the same application with addition to ADF Faces Rich Client components.

    How to develop a sample with ADF Faces Core components (10.1.3) application. What are the steps to follow in JDev 11 g?

    Please help me.

    Thank you
    -Afif

    Yes.

    Trinidad is all correct and documented components to use. They are almost exactly the same as the ADF Faces 10.1.3.x ones.

    John

Maybe you are looking for