User interface simple Question

I apologize in advance for the simplicity of this question is probably, but I can't seem to find a way to do it.

I want to show a label that is framed with a value that is justifield just so that the labels are all on the left and the values are all right on the left.

I tried:

 HorizontalFieldManager row1 = new HorizontalFieldManager();
        LabelField l1 = new LabelField("Linked:  ");
        LabelField l2 = new LabelField(
                (theApp.getIsLinked()?"Yes":"No),
                Field.FIELD_RIGHT);

        row1.add(l1);
        row1.add(l2);
        add(row1);

That did not work.  I also tried a few other things but can't seem to make it work.

Thanks in advance.

Here you go:

HorizontalFieldManager Row1 = new HorizontalFieldManager();
LabelField l1 = new LabelField ("Linked:", LabelField.FIELD_LEFT);
LabelField l2 = new LabelField ("No.", DrawStyle.RIGHT |) LabelField.USE_ALL_WIDTH);

Tags: BlackBerry Developers

Similar Questions

  • Help me with my user interface Simple Design

    HI everyone I'm new to BB development...

    So I want to develop a simple application... When everything works except user interface design...

    The problem is the following

    My Ui should have two tabs or (buttons... addbutton and ListButton) where after clicking on the first button

    the content of the "addButton" must appear for example. labelfIELD, CHEXKbOXfIELD, button...

    And AFTER, by clicking ON THE "ListButton" it should display the content of the "ListButton" button for example.

    LabelField and editField in a horizontal way... and all by posting the content of the button eachg the

    content of the dedicated back button should be deleted...

    Please help me I need very urgent...

    And if possible send me a link through which I can easily learn from user interface design and plants athe Ui using "Threads".

    Thank you

    Sharath

    The first place I'd start is the sticky post on this forum:

    http://supportforums.BlackBerry.com/T5/Java-development/useful-links-for-novice-and-experienced-Prog...

    Then I would go to video library where you can 'see' how the UI code, but it was certainly a little more:

    http://NA.BlackBerry.com/eng/developers/resources/VideoLibrary.jsp#tab_ddetail_subtab_jde

    Last but not least:

    http://www.thinkingblackberry.com/archives/category/UI

    Now regarding your problem of button, you can do an add() and remove() to switch your two fields to emulate a tab container or use the following example:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/How_To_-_Create_tabbed_view_screens.htm...

  • New Hyperic user, hopefully simple question...

    Hey all the... I'm a switcher of Zenoss here.  Question: I have about 15 boxes of Windows 03 I need to... monitor the agent installation is a breeze.  But inside Headquarters after automatic detection, I get an error stating: "unable to connect to xxx.xxx.xxx.xxx:2144: Connection Refused".

    Now, I know that the agent is currently working since the Desc, IP, OS worm, etc info info is populated, but this port is blocked 2144 essentially throws me.  None of these boxes even has active ICS so the firewall of Windows service does not start because it depends on the ICS.  The server and all agents are on the same subnet if no hardware firewall in between.  I tried secured and unsecured communication with the server for the agent.  Made no difference.

    My server is running Ubuntu Fiesty Fawn and other than the normal updates because the Fiesty install, the other app that is being loaded is Hyperic.

    I know it is perhaps a matter of Windoze, but I hope that somoene is hit in the front.

    Thank you!

    Are you sure that the agent is still running on the Windows box? That
    is it possible, he started upward, sent some initial data and
    the HQ server and then stopped running? You have installed the agent
    as a Windows service or are you running it manually?

    In addition, assuming that agents did report a given time, the report
    the correct IP address for the HQ server. In other words, if you go to the
    Inventory for each of these platforms tab you see what you would
    expect to see?

  • Using ActiveX controls to the old user interface

    I tried to build a User Interface for TestStand 4.1.1 using LabView 8.6.1 (on Windows XP)

    However, ActiveX controls keep showing in the old non - 3d "block" style.

    This seems to be a problem when you build a new exe. If you use the included UI (Full Featured) in TestStand it appears correctly.

    I was able to replacte this problem on two other development systems (a new windows XP, LabVIEW 8.6.1 & TestStand 4.1.1 install).

    (1) take a copy of the full-functional UI of LabVIEW.

    (2) open the project file

    (3) rebuild the exe file

    It's only a problem when you use the exe file. When you run from the LabVIEW development system it looks good.

    Hi Simon,.

    For your UI to take on XP
    Theme controls, you will need to place a manifest file that specifies the activex control topics in the same
    directory as your executable file. TestStand comes with a manifest file for
    INTERFACE c# you can also use for the UI of LabVIEW. Just go to the \User Interfaces\Simple\CSharp and copy the file TestExec.exe.manifest in the directory of the LabVIEW User Interface executables.

    Note that the manifest file must have the same name as your executable file LabVIEW UI. For example, if you name your user interface, "MyCustomTSUI.exe", you will need to name the manifest file 'MyCustomTSUI.exe.manifest '.

    Please let me know if this solves your problem or if you have other questions. Thank you!

  • Closing references ActiveX correctly in the Simple user interface

    Hello

    I am currently editing the user supplied with Teststand 2013 Simple interface in order to access the global variables of the station through LabVIEW.  A simple test, I'm trying to access the value of username.  When I run the VI for the first time after the opening of LabVIEW, I get no error message and the program works as required.  Stop the running VI will return no error, but when I try to run the VI and rerun the Teststand, stalls the execution sequence and I get a wait status.  I then have to close running VI by killing all threads in Teststand, I think that the PropertyObjects do not come out properly and I find the structure of the event quite confusing to deal with.

    My attempt to close the references in the while loop looks like this:

    The rest of the program is exactly as expected with Teststand 2013.

    Any input on how to close properly references ActiveX and extracting station globals in LabVIEW would be much apreciated.

    Thank you for your help,

    Christian

    Christian,

    Doug is correct if you open references in a loop, you should also be closing them in the loop. For example, this code open a reference to the engine and the Globals PropertyObject. Two of these references must be closed each time that the loop is executed with the current code.

    You might be able to improve this code is to put your username querying code elsewhere. This username appears as something that would happen only when a user connects or disconnects, then perhaps that this code could be registered as a reminder of the event UserChangedevent. Follow these steps in the VI of reminders set up event of the user interface.

    If you do not need this code to update constantly, you can put in the structure of the event time-out event in your screenshot and fix a reasonable (maybe 100 to 200 ms).

    Hope this helps and let us know if you have other questions about this!

  • Simple TestStand in LabVIEW user interface

    Hello community,

    I design a user interface for Teststand using the simple example of vi. The name of the file is VI.vi of first level

    I am trying to understand works vi inorder to make changes and ran into a few questions that I was hoping someone could answer for me please.

    To begin, I add my file sequence and click on 'Test DUT'. Then a dialog box appears asking to enter the serial number of the UUT, where and what are the causes that to happen in the code? After I entered my serial number it turns my code sequence and at the end an another message specifying in a green or red if the UUT success or failure. Where and what are the causes of success/failure boxes happen in the code?

    Thank you

    Kevin

    If you had posted this on the forum of TestStand, you would be probably got some of the answers better.

    But in the meantime, you need to open the SequentialModel.seq (or what is process model you use) and navigate to the entry Point of execution sequence, you use.  In this case, click Test UUT, the icon in the list of sequence and track the flow of test.

    With respect to the banner that appears after execution of USE test.  The banner is implemented as a DLL in the PostUUT callback.  It is based on the status of the MainSequence callback result.  It is the result of the test that you started by test DUT.

    The best advice I can give you is to go through the sequence of process template file and learn that it is not an easy task, but worth the effort.

    Thank you

    PH

  • Question tab User Interface control

    Heey everybody,

    I have disigned a program and user interface, on this user interface, there is a tab (see attachment) control in this tab control, you can select several measures. It is a school project and according to my professor is not clear enough what measure is selected.

    My question: is there a way to give the active tab a different color? If you know a way to create a nice user interface that has the same capabilities as the control tab (select measure and wire in measured values).

    Thank you

    Hi Grasman,

    It is possible to give different tabs of different colors, first of all, you must enable several colors - "just right-click on a tab on the control. "Select Advanced" allow multiple colors.

    To change only the color of the active tab, please see Steve birds VI, you can find it on the following forum post

    Color of the active tab

    Kind regards

    Tobias

  • Create a group of users to ACS 3.3 - simple question

    Hello

    I have a simple question:

    How can I create a group of additional users at the ACS 3.3?

    I don't see the option to delete or create groups of users. Perhaps is it not possible?

    Thanks in advance

    All groups that you have already exist in the list of groups (0 to 499). To "create" a new group, just rename one of the unused existing groups and use.

    If you don't see the groups in your list, you must verify that you have access to see all these groups.

    Verifier check in the control of the Administration, select your admin user ID. In the second table below marked 'administrator', you will see the "available groups" and the editable section 'groups '. move the groups that you want to use available for editable.

    Present and then OU should be able to see these groups on your drop-down list in the section groups.

  • Make a simple user interface in Premiere Pro using Javascript

    I would like to make a simple Panel of modeless user interface where the user can interact with javascript code. I started using the ScriptUI component, but there was a problem with the SnpCreateDialog.jsx example.  I get the error 'window has no constructor. What is the preferred method to have buttons, text boxes and drop-down menus when the script for the Premeiere?

    Thanks in advance!

    I recommend avoiding Eclipse and Extension Builder entirely; You can also develop directly in the/extensions directory. Agency, in order to avoid afin d' eviter no matter what stage of the copy. notebook and Chrome are the way to go.

  • The advanced user interface question

    Hello!

    I need to make the user interface for my application as an application Blackberry menu. I want to show 9 buttons on the screen (3 ranks a 3 columns). Like this:

    [1]   [2]   [3]

    [4]   [5]   [6]

    [7]   [8]   [9]

    I did it this way: I add 3 HorizontalFieldManagers to the screen and each of them has 3 buttons. Now, it looks like I need, but I have problem with fucus moving. If I test on the device with trackwhil, it works fine. But on devices with trackpad it doesn't work because I need. For example, if I chose the [7] button and press upward, then focus to key [6]. But I need to move the focus to the button [4].

    Maybe it is not best solution... Any body has the same interface? How it worked correctly?

    Thank you!

    You can use GridFieldManager (or TableLayoutManager for OS< 5.0)="" instead="" of="" your="" collection="" of="" horizontalfieldmanagers.="" i'm="" pretty="" sure="" they="" work="" with="" touchpad="" the="" way="" you="" need.="" never="" tried="" or="" heard="" anything="" about="" their="" functionality="" with="" trackwheel,="">

  • Question of Portuguese strings in the user interface

    Dear all,

    I'm showing my plugin UI protugues strings. Most of the characters is displayed correctly. But characters such as c, e, a, a, o do not display correctly. Some special characters are inserted before these characters and also the exactly the characters are not displayed. How can I fix this user interface problem? In the resource file, I have "kEuropeanMacToWinEncodingConverter" as the character encoding converter below:

    resources StringTable (kSDKDefStringsResourceID + index_ptBR)
    {
    k_ptBR, / / locale Id
    kEuropeanMacToWinEncodingConverter, / / character encoding converter
    {

    }
    }

    Thank you

    Your text is probably UTF8, use kResourceUTF8Encoded then. Check your settings in XCode for details, finally it reencoded just your source.

    If you want to stick with kEuropeanMacToWinEncodingConverter, make sure that the file is actually in Mac Roman - for example, open it in CodeWarrior.

    Dirk

  • User interface customized to run at the same time?

    Hello

    My question is about the user interfaces customized for performances with the parallel model. In my current project, we use the parallel model with sockets to the UI and test 4, we have flags of chain for its execution, which displays messages to the user and the other 2 which has the function of a streaming indicator that displays information throughout the test, also showing instances of time. So, in total 8 indicators that display information about the 4 independent runs alongside. Up to now, I managed to create the user interface only for the sequential mode, using 2 simple string indicators and sending messages to the TestStand to the strings through the user interface Messages. My problem is that I don't know how to implement this feature for the sockets to test more.

    Attached images of the façade and the diagram of blog of the GUI as it appears now.

    I am very new to TestStand (I know that for the last month), so I expect that my question and description of cases are not so clear, so please let me know if anything is badly explained.

    I would be grateful for any help.

    Basically, whenever you get a message from UI associated with running (e.g. UIMsg_StartExecution, UIMsg_Trace, etc.), you will need to determine what testsocket the UIMessage applies to and then update the corresponding user interface controls. A way to get the testsocket is as follows:

    testsocketindex = uimsg. Thread.GetSequenceContext (0, frameId_Notused). AsPropertyObject(). GetValNumber ("RunState.TestSockets.MyIndex", 0)

    In addition, once you know where to go a particular run, you can attach to the control Id of this execution (i.e. property of Execution.Id) and just look at the execution Id instead.

    Hope this helps,

    -Doug

  • UIMsg_BreakOnRunTimeError of completely custom user interface management

    I develop a completely custom user interface for TestStand 2012 SP1 operator (without ActiveX / ApplicationMgr etc.;) "I know, I know...).  I'm trying UIMsg_BreakOnRunTimeError to deal appropriately and need advice.

    (1) my first question is what I call DisplayRunTimeErrorDialogEx() with the appropriate SequenceContext, but the dialog box disables many of the options. Under manage common error, recovery, ignore and abandon immediately (without cleaning) are grayed out (disabled) as well as the box jump of. With the same sequence SequenceEditor and the po sample UI display correctly this dialog box.  Any ideas on what is the cause?

    (2) Secondly, the best way to manage the selections to the user?  dontShowAgainForExecution, dontShowAgainForBatchand suspendExecution seem quite simple documentation.  i.e.

    If (dontShowAgainForExecution)
    execution. RTEOptionForThisExecution = RTEOptions.RTEOption_Continue;

    If (dontShowAgainForBatch)
    thread. SetBatchRTEOption (RTEOptions.RTEOption_Continue);

    If (suspendExecution is false)
    execution. RESUME(); Fix? Execution seems already paused. What to do if this value is true?

    Now what about the runTimeErrorAction?  I guess for RTEOption_Abort the word execution of . Abort().  What are the appropriate steps to RTEOption_Continue, RTEOption_Ignore, RTEOption_Retry, & RTEOption_ShowDialog?

    (3) Finally, once the dialog box is closed, my execution ends with the result success rather than error state.  What happens here?

    Your help is appreciated as always,

    -Terrence Jones

    (1) this is probably the user privileges, you may either not connected with user at all or the user has privileges to debug. If you do not use the users, you can disable the privilege check in the options of the station.

    (2) something like this:

    void ApplyRTESetting (TS:equenceContextPtr sequenceContext, TS::RTEOptions rteOption, bool breakExecution)
    {
    Thread TS::ThreadPtr = sequenceContext-> thread;
    Execution TS::ExecutionPtr = sequenceContext-> run;

    Switch (rteOption)
    {
    case TS::RTEOption_ShowDialog:
    case TS::RTEOption_Continue:
    case TS::RTEOption_Abort:
    wire-> ClearTemporaryBreakpoint();
    break;
    by default:
    break;
    }
        
    do action according to the selected option
    Switch (rteOption)
    {
    case TS::RTEOption_Retry:
    sequenceContext-> NextStepIndex is sequenceContext-> StepIndex;.
    wire-> ClearCurrentRTE();
    If (! breakExecution)
    execution-> Resume();
    break;
    case TS::RTEOption_Continue:
    If (! breakExecution)
    execution-> Resume();
    break;
    case TS::RTEOption_Ignore:
    wire-> ClearCurrentRTE();
    If (! breakExecution)
    execution-> Resume();
    break;
    case TS::RTEOption_Abort:
    execution-> Abort();
    break;
    }
    }

    Also for the two other parameters we generally use the rteoption of the dialog rather than continue to hardcode, but you can do this job, how you want if you prefer different behavior:

    Example:

    If (dontShowAgainForExecution)
    context-> run-> RTEOptionForThisExecution = rteOption;
            
    If (dontShowAgainForBatch)
    context-> thread-> SetBatchRTEOption (rteOption);

    (3) maybe you call ClearCurrentRTE() to ignore alternatives.

    Hope this helps,

    -Doug

  • Very simple question and CVI-program

    Hello

    I just started working with CVI, and as far as I can see, the principle underlying the interaction between various components is similar as in Delphi. I made a very simple example (Application of User Interface), containing a square button and a digital. My idea was to push the button, after which the DIGITAL controller displays a number. However, I can't figure out how to build a change of the function that is executed when you press the button. I tried a double click, right click, etc, but I couldn't understand it. I hope my question makes sense.

    Have you had a look in Chapter 2 of the getting started manual?

  • Confused about the bar mentioned in user interface designs

    I was reviewing the instructions for user interface design, and he mentions a menu bar:

    "Use a menu bar to move user interface components off the screen.
    The application menu can include primary or secondary
    The menu when you drag from the top of the screen.

    The menu bar is built in? Or it simply means, I can create an and show it when the 'swipe_start' event fires?

    What does primary and secondary? This means main and submenus?

    If there is a menu built in, how I add to it? If I created one, what would be the best approach to design? I saw a QNX class for menus. How the menu disappear? Would it not as simple as when something is clicked?

    If the best way to get the menu bar to slide downwards to activate it? It is implying that the menu bar is the Menu bar main application and dialog boxes in the frame actions app to be managed by popups, buttons etc and do not use a menu bar always visible because it uses valuable screen realestate.

    I understand that these are guidelines, there are always exceptions to the rule. I just want an idea on best practices.

    Keith

    Hey kmitchell,.

    You basically answered most of your questions, but not confirm them

    The menu bar from what I've seen so far in the docs is not built in, and you will need to create one on your own by using the SWIPE_START event. Primary and secondary actually seems to be what you call main and submenus. What I thought of him, it was maybe a menu that looks the same every time by sweeping u down and has basic functions or if something happens in the application and slide you down the menu reflects the events of what is happening. in regards to how it should look like, there is a video of a demo that was presented at the adobe max Conference where he shows a demo of the camera app to help slip it in the menu dropdown. Here is the link. go to the last 13:45 video to see the demo:

    http://2010.Max.Adobe.com/online/2010/MAX260_1288217641375UQJD

    the menu design would be that it would disappear as soon as you click an option. its really what you want it to be. I don't think that there is no specificity.

    and Internet broadcasting its been said that they do not like to see sort of a title from the menu bar. now, I agree and disagree with this statement, but maybe im just not used to slide down menu type event. so ill see where this goes.

    also, here is a code harrydodgson and I worked on regarding the menu and the SWIPE_START event:

    SwipeDownTest.as (main Application file)

    package
    {
        import caurina.transitions.Tweener;
    
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.ui.Mouse;
    
        import qnx.events.QNXApplicationEvent;
        import qnx.system.QNXApplication;
    
        // The following metadata specifies the size and properties of the canvas that
        // this application should occupy on the BlackBerry PlayBook screen.
        [SWF(width="1024", height="600", backgroundColor="#F4F4F4", frameRate="30")]
        public class SwipeDownTest extends Sprite
        {
            private var ui:UI;
            private var swiping:Boolean;
    
            public function SwipeDownTest()
            {
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
    
                ui = new UI();
    
                addChild(ui);
    
                QNXApplication.qnxApplication.addEventListener(QNXApplicationEvent.SWIPE_START, onSwipeStart);
            }
    
            private function onSwipeStart( e:QNXApplicationEvent ):void
            {
                swiping = true;
                addEventListener( Event.ENTER_FRAME, trackMouse );
                stage.addEventListener( MouseEvent.MOUSE_UP, mouseUp );
            }
    
            private function trackMouse( e:Event ):void
            {
                var pos:int = stage.mouseY;
    
                if (pos > 123) pos = 123;
                if (pos < 0) pos = 0;
    
                ui.y = pos;
            }
    
            private function mouseUp( e:MouseEvent ):void
            {
                if (!swiping)
                {
                    Tweener.addTween(ui, {y: 0, time: .3, transition: "linear"});
                }
    
                removeEventListener( Event.ENTER_FRAME, trackMouse );
     
                swiping = !swiping;
            }
        }
    }
    

    UI.as (File menu)

    package
    {
        import flash.display.Shape;
        import flash.display.Sprite;
    
        public class UI extends Sprite
        {
            private var sectionOne:Shape;
            private var sectionTwo:Shape;
    
            public function UI()
            {
                //set it up with two sections
    
                sectionOne = new Shape();
                sectionOne.graphics.beginFill(0x333333, 1);
                sectionOne.graphics.drawRect(0,-123,1024,123);
                sectionOne.graphics.endFill();
    
                sectionTwo = new Shape();
                sectionTwo.graphics.beginFill(0x666666, 1);
                sectionTwo.graphics.drawRect(0,0,1024,600);
                sectionTwo.graphics.endFill();
    
                addChild(sectionOne);
                addChild(sectionTwo);
    
            }
        }
    }
    

    hope that answered most of your questions. Good luck!

Maybe you are looking for