How to justify to the left or right one aligned controls within a container.

Hello

I'm trying to put a label in a container to the left full, and then another (ToggleButton in my immediate case) control on full right. How can I do this?

I tried without success to the following:

ToggleButton * toggle = new ToggleButton();

activate / deactivate-> setHorizontalAlignment (HorizontalAlignment::Right);

myContainer-> add (toggle);

Thank you!

I actually received this works using the following code, I use a DockLayout in this case:

Controls installation

ScrollView * scrollView = new ScrollView();

scrollView-> setHorizontalAlignment (HorizontalAlignment::Fill);

ScrollViewProperties * scrollViewProp = scrollView-> scrollViewProperties();

scrollViewProp-> setScrollMode (ScrollMode::Vertical);

Container * mainContainer = Container::create () .left (0) .right (0);

mainContainer-> setHorizontalAlignment (HorizontalAlignment::Fill);

Container * subcontainer = Container::create () .left (20) .right (20) .top (20) .bottom (20);

Subcontainer-> setHorizontalAlignment (HorizontalAlignment::Fill);

Subcontainer-> setBackground(Color::fromARGB(0xffffffff));)

Container * subContainerLeft = Container::create () .left (0) .right (0);

subContainerLeft-> setHorizontalAlignment (HorizontalAlignment::Left);

subContainerLeft-> setVerticalAlignment (VerticalAlignment::Center);

Container * subContainerRight = Container::create () .left (0) .right (0);

subContainerRight-> setHorizontalAlignment (HorizontalAlignment::Right);

subContainerRight-> setVerticalAlignment (VerticalAlignment::Center);

DockLayout * subContainerLayout = newDockLayout;

Subcontainer-> setLayout (subContainerLayout);

Controls are added to the left and right here!

Subcontainer-> add (subContainerLeft);

Subcontainer-> add (subContainerRight);

mainContainer-> add (subContainer);

scrollView-> setContent (mainContainer);

this-> setContent (scrollView);

Thanks for your response!

Tags: BlackBerry Developers

Similar Questions

  • How to group on the left and right audio tracks of a. OMF file?

    Hi, I'm changing the sound of my short film, I sent one. OMF to audition for the first, but the left and right channels are separated in the multitrack session tracks, how would group them so whatever I do to a channel, will be the other

    This is because the OMF specification requires mono audio files

    It really depends on what you're trying to do with the two tracks as the best answer to the extent of the 'group '.

    You can select all the clips on the tracks and right mouse click on and select "group".

    You can send two channels to a bus

    You can export the two lanes to a stereo file and that bring in the session

    Many more things I know not but a little more details about what you're trying to do would help

  • How to justify to the left quick lable names

    Hi gurus,

    How left justify the names prompt lable, currently we are done as below

    Prompt.png

    I want to see OR name in the must be cropped on the left.

    Please provide your suggessions on that.

    Thanks for your time

    Hello

    By adding this somewhere in your dashboard page (ideally before the first prompt).

    
    

    If you want to always on the left, and everywhere, in your pages, you can make the same change in the views.css of your custom style. (I said just to avoid the random messages suggesting changing the standard, CUSTOM, the official style provided with OBIEE should not be affected, unless you want to lose all your changes from time to time...)

  • How to generate a sound (tone) without clicking noise and how to select the left or right speaker

    Hi all

    I try to write write a VI that generates a pure sound of specific frequency and volume, and then sends this tone to a speaker or other (left or right) to be used to teach students about Audiology (hearing these tests may have taken where you hear a noise in one ear or the other).  I created a rather primitive VI to accomplish this, but I am plagued with a number of questions:

    (1) certain frequencies, but not all, the VI produces a rattling at the start and stop of the tone (I think this is related to repeat the configuration and the appeal of the material, but I do not know how to configure it in advance and avoid it - and why he created the clicking sound at all frequencies?).

    (2) at certain frequencies (14000 Hz and more), I do not hear the tone at all on my computer speakers (I still hear the click before and after, but I do not hear the tone.) I know what you might think, but no, this isn't a hearing loss from me :-)

    (3) I would like to be able to direct the tone selectively to the left or right speaker, but at the moment my VI only allows me to choose the 'number of channels' (who I presume "2ch" means left and right), but I don't know how selectively choose only one channel or another.

    Thank you for your helpful suggestions you can offer,

    Eric

    I put together a quick test and dirty without a ramp up and down (good thing for a State MC) as well as the name is not correct but my children are waiting... time for weekend

    I set the buffer to a quarter second, but however the "GUI" is not very sensitive...

  • I have black lines 2 inches on the left and right side of my screen how can I expand and remove black maqrgins

    I have 2 inch black margins on the left and right of my screen - how to remove and expand my screen

    Hello
    I suggest you run the fixit and see if it helps:
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-monitor-and-video-card-problems

    For more information, see this link:
    http://Windows.Microsoft.com/en-us/Windows-Vista/getting-the-best-display-on-your-monitor

    It will be useful.

  • How to remove the space of 100px on the left and right sides outside the margin?

    This photo shows the grey outlide margins Office has always 100px on the left and right but the tablet or phone no?

    This file is set to 0 margin 0 padding but still 100px on each side of the left and right margin?

    Screen Shot 2013-07-22 at 5.22.20 PM.png

    -Click on the white section that you are trying to get rid.

    -This will select the 'page '.

    -On the horizontal bar at the top where you have options for editing, you will find "Browser Fill"

    -Click browser fill.

    -Now you can insert the image of the background you want.

    -blow and relieve the frustration.

    Good luck!

  • Justify the Divs to the left and right of the page with the gaps between the two. Possible?

    I have 4 eponymous divs with different images and rollover Javascript on them, spread horizontally on my page effects.

    I'm trying to align their so there are gaps between each div, but NO space on the right and left side, so that they are tight to the edge. If I put a margin on the right side of 5px, for example, the div right hand still has a gap of 5px, otherwise he's going on the next line.

    Of course, I can make a new rule for the div of the right hand with no margin to the right, but this will make more complex Javascript code with perform effect hover on two types of divs.

    Is it possible to pin the divs to the left and right of the page with an 'auto' margins inbetween them?

    Untitled.jpg

    I found a solution in any case. I've adjusted to the width of the div so that they coincide closely each side. Then align the images (HTML) 'Left, middle, Hugo, right' so that they are tight against each side and have differences even between them. If all goes well, there is no flaws with this method, it seems to work pretty well.

  • The functions of the left and right of my mouse buttons keep swapping without doing me anything, and it's really annoying!

    For some reason any the left and right buttons on my mouse keep turn on their own without me doing anything. Once this happens, I go into the properties of the mouse, apply the default and then that's fine. That lasts anywhere from 3 hours to 3 days. I don't know if it's a problem of Vista or my computer, but it's really annoying. I restarted my computer after changing the settings and it still does not help. Can someone help me with this?

    Hi regretfullybliss,

     

    Welcome to Microsoft Answers Forums.

    There could be conflicts with the key functions of mouse or a corruption with the mouse driver.

    I suggest you update to the latest mouse driver, you need to visit the Web site of the manufacturer of the mouse to the GET the latest drivers for the mouse.

    Updated a hardware driver that is not working properly

    http://windowshelp.Microsoft.com/Windows/en-us/help/b3c6477e-1111-4B9F-A52A-fffdc51e9c901033.mspx

    How to change the mouse settings.

    http://windowshelp.Microsoft.com/Windows/en-us/help/efd700f8-bbc0-4F04-9f78-3bdb4bbf47011033.mspx#EF

    There could be the possibility that some third-party program or service is in conflict with the key functions of the mouse.

    To help resolve the error and other messages, you can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    Perform the check and the clean boot if you have the problem.

    1. click on start, type msconfig in the search box and press ENTER.

    User account control permission

    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.

    2. in the general tab, click Selective startup.

    3. under Selective startup, clear the check box load startup items.

    4. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.

    5. click on OK.

    6. When you are prompted, click on restart.

    7. after the computer starts, check if the problem is resolved.

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    Click Start, type msconfig.exe in the start search box and press ENTER.

    If you are prompted for an administrator password or for confirmation, type your password, or click on continue.

    On the general tab, click the Normal startup option, and then click OK.

    When you are prompted to restart the computer, click on restart.

    If the problem is resolved to check what is the cause of the problem, referring to the link given below:

    http://support.Microsoft.com/kb/929135

    Hope this information is useful.

    Let me know if it worked.

    All the best!

    Thank you, and in what concerns:

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • InDesign CC 2015 making the vertical border full length on the left and right of the epub

    Hello

    I'm working on a fluid epub 3.0 and I do the vertical borders to the left and to the right of the text. I created two object styles - one for left and one for the right border. These are vector shapes InDesign so I put in place of style to rasterize export options each and float in left (or right) accordingly. Both custom to an empty paragraph containing a nonbreaking at the top of the document, set automatic leading space anchor use. The problem, it's the ePUB to honor only the property float, based where the form is embedded. How can I get every border to sit to the left and right and still running the vertical length full of display area? I know that I could remove the forms and put in a shot of color on the text block, but this will put the borders on the top and bottom and sides. I would then have to crack open the ePUB and edit the CSS to limit borders on the left and right. I try to avoid cracks, it opens, but I'll do it if there is no other choice. Here is a screenshot of what it looks like to the InD and the other is a preview into Digital Editions (double page view).

    Indesign Preview.jpgAdobe Digital Editions 4.5 Preview.jpg

    Well, I found this one on my own. I just got an external stylesheet and referenced when I export to ePUB. The style sheet has the css I needed and it works now!

  • Videos are curved on the left and right sides

    Hi all

    My handycam HDR-CX240E has a major prob of videos being bent or curved on the left and right sides... Sony service technicians said that the problem is not rectifiable. If the problem cannot be corrected, the camcorder is of no use to me because I need it for a large project of filming.

    Can someone help me?

    concerning

    Ashok Kumar


  • I just started using Garage Band with 2i2 Focusrite Studio material. When I record my voice through microphone, I hear a mono. Is it possible to share sound to the 'left' and 'right' channels, i.e. to imitate a stereo mic?

    I m using MacBook Pro with Maverick OS X version 10.9.5 and Garage Band 11´ v. 6.0.5 with hardware 2i2 Focusrite Scarlett Studio

    kopi42 wrote:

    Is it possible to share sound to the channels of the 'left' and 'right '.

    Yes:

    http://www.bulletsandbones.com/GB/GBFAQ.html#leftspeakeronly

    (Let the page load COMPLETELY. The link to your answer is at the top of your screen)

  • area 1 "black on the left and right of the screen

    My screen on my computer hp laptop has a zone 1 "black on the left and right of the screen yesterday. This reset that to make it fit the screen?

    Poster of thread double (now deleted) by Bill Smithers:

    Hello

    Go to the HP Web site > drivers download Section > then key in your number cell phone model > find your operating system > find two graphics / video or from the Chipset drivers and download and install.

    http://WWW8.HP.com/us/en/support-drivers.html

    Or do a system restore to before that happened.

    http://bertk.MVPs.org/html/restoresysv.html

    See you soon.

  • HP Laserjet 2100: Extra printing appears on the left and right of the page

    When I print a document, my Laserjet 2100 prints the information in the document on the left and right sides of pages like a shadow all the way to the bottom of the page. I tried to use the function of cleaning the printer and evolution on the toner cartridge.  Is there anything else I can do?

    Hello

    Honestly if the cleaning page does not work, it is time to start thinking in a replacement fuser.

  • Accelerometer reading is not being updated smoothly when you move your device on the left to right or right-left in the Horizontal plane

    I'm developing an app for BB 10 devices using the accelerometer. I tested on a BB 10 Dev Alpha device.

    When I move the camera in LANDSCAPE MODE on the left to right or from right to left direction in the Horizontal plane, the accelerometer readings are not updated day smoothly as they do in other directions.

    In addition, the update in the Vertical plane is not as by expectations, is not through with Android, Iphone or other blackberry devices.

    I even checked BlackBerry example project of the accelerometer. It has the same problem. Has anyone else facing the same problem? Is there any solution for this?

    Accelerometer reading is not updated because the example provided on github at this rate of accelerometer is set to very high. code: ACCELEROMETER_RATE = 25000 which is high. As directed by their document

    Is the rate at which the data from the updates of the material. The rate of update of the material
    is defined below using sensor_set_rate. If we set this to 1000, then it properly updated and gives the readings that we arrive on the java BB device.

    Replace the code: ACCELEROMETER_RATE = 1000, then it updates corretly.

  • My shortcuts Office does not, to the left or right click nothing.

    My shortcuts Office does not, to the left or right click nothing.

    My shortcuts Office does not, to the left or right click nothing.

    Suggestions:

    1 rebuild icon cache. Yours could be damaged.

    http://www.SevenForums.com/tutorials/49819-icon-cache-rebuild.html

    2. If this is a recent problem, and if you remember one ate when shortcuts worked ok, do a system restore.
    Choose a date where shortcuts worked as your restore point.
    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    3. restore explorer.exe

    Press CTRL + Alt + Delete > Task Manager > processes tab > right click on explorer.exe > click on end process > Applications tab > new task... > in the Open box, type explorer.exe > OK

     

Maybe you are looking for

  • Color HP Laserjet Pro 200 M251n does not in Sleep Mode

    Printer: HP color Laserjet Pro 200 M251n Firmware: 2014-06-04, Version 20140521 Problem: Since the last update Firmware the printer does not sleep/wake no event (all configured to wake up the printer) will wake up the printer. Even to connect via Web

  • By pressing FN + F1 on the keyboard, black screen.

    Original title: function key + f1 I clicked on both FN and F1 keys and the screen are black and I had to force close down to get by. Is there a better way to cancel this function when pressed?

  • Can't delete duplicate contacts

    Can't delete duplicate in windows contacts live mail... any suggestions?... I don't have "windows contacts" list "all programs" under the Start button. Really frustrating!

  • Impossible to install Photoshop elements 14

    HelloI am not able to install Photoshop elements 14 or Acrobat Update on Windows 10.   In both cases, there was no progress at all and no error message.   How can I delete corresponding registry using regedit to install new items or update to Acrobat

  • Black bar (gremlin) in text

    HelloI use FrameMaker 10. New to the program, and I am at a loss as to why I have this horizontal black mark in my text. My file uses graphics, and I checked the styles, layout. and it doesn't go away. It shows in a PDF document as well. What Miss me