How to assign the field width based on the screen wdth

I have my ownfield, I'm adding to the screen, or the Manager

I want to give the height and the width of field based on the width of Manager screen, when I try I got errors.

the code I used is

Field ff;
        int j=(Display.getWidth()>360?4:3);
        int compwid=Display.getWidth()/j;
        int compht=40;
        int posx=0,posy=0;
        int no=this.getFieldCount();

        for(int i=0;i

When I do cela in the display main () sublayout, I get the error as "the field is not a child of this Manager.

Similarly when I add to the Manager sublayout, I get as field must call setExtent and setPostion for available.

Where I'm going wrong?

You can help with that.

Concerning

Rakesh Shankar.P

Hi guys, I was able to get this working, pblm is that I called super.sublayout () just before the Codes I have describd in the previous post.

Concerning

Rakesh Shankar.P

Tags: BlackBerry Developers

Similar Questions

  • How to assign the next value in the sequence directly in a variable?

    How to assign the next value in the sequence directly in a variable without using a table TWICE in PL/SQL.

    BluShadow wrote:

    How about a quick test on 11g, just to see if you directly select a sequence in a variable is significantly better than the mark of DOUBLE.

    ...

    Nope... no obvious difference.

    This is because there is none: Oracle's SELECT sequence. NEXTVAL FROM DUAL under the covers. The direct assignment is just a convenient encoding for us, but it does not change the work that accomplishes Oracle.

    create sequence s;
    alter system flush shared_pool;
    declare
    l_num number;
    begin
    l_num := s.nextval;
    end;
    /
    select sql_text from v$sql where parsing_schema_name = user;
    
    SQL_TEXT
    Report the number of l_num; begin l_num: = s.nextval; end;
    Select sql_text from v$ sql where parsing_schema_name = user
    Select double S.NEXTVAL
  • How to assign the temporary tablespace to a table

    How to assign the temporary tablespace to a table

    temporary tablespace can be attributed to the user.

  • PAVILION 22xi: COME PULIRE LO DEL PAVILION 22xi SCREEN / HOW TO CLEAN the SCREEN OF THE 22xi of FLAG?

    COME PULIRE LO DEL PAVILION 22xi SCREEN?

    Inoltre:
    Come rimuovere eventual aloni esistenti da previous pulizie?

    HOW TO CLEAN the SCREEN OF THE 22xi of FLAG?
    In addition:
    How to manually remove existing halos of previous cleanings?

    Hi there @antonio55,

    That the Forums are with you!  I understand that you are looking for advice on how to clean your screen.  I'm happy to give you a helping hand with this.

    Please see: HP monitors - Safety and Maintenance Guidelines, under the heading "Cleaning the monitor" for details of cleaning, but be sure to read both safety related information.  Depending on what you mean by "halos" try following the instructions for the materials to be used. If you have in the past used something on the list of cleaning products do not turn out to serve, you may have already damaged a part of the screen.

    Please let me know if it works for you and if it does not solve your problem, please mark this message as a solution. Bravo would be appreciated as well.

  • How to clean the screen of my laptop Trubrite?

    Any suggestions on how to clean the screen of my laptop Trubrite? He had a lot of ideas in the web, but none of them were convincing enough?

    For my LCD to computer, I bought liquid cleaning screen and I use it with a non fluffy cloth.
    It s a perfect ;) combination

  • How to split the screen of my mac book

    How to split the screen of my Macbook?

    There may be a solution on how to split the screen into two (halves) for independent display

    through the use of third-party software options. I haven't tried everything, but have read of some who can work.

    Such a "solution party' appears in the Mac App Store; See the second link to the manufacturer.

    https://iTunes.Apple.com/us/app/split-screen/id453757310?MT=12

    • Split screen - Mac app for windows (approximately $7 USD) display management

    http://www.splitscreenapp.com/

    There may be others, beware of questionable sources, as they may contain others? content.

    This may work on a Mac, not a portable desktop computer:

    • Apple introduced mode split for the apps full screen on a Mac in OS X El Capitan - 9to5Mac.com:

    http://9to5Mac.com/2015/06/08/Mac-split-screen-multitasking/

    In any case...

    Good luck & happy computing!

    under the direction

  • How to replace the screen & HDD in Tecra S1

    Could someone help me with 2 queries?
    1. how to replace the screen? I broke my screen 15 "and have a replacement original but would like to know if this is possible without the help of the reseller, etc.
    2. bad drive c. message is 992 KB bad clusters. How to replace or repair the C drive?
    Thank you
    BL

    Hello

    Well, the replacement of HARD disk drive is very easy on the Tecra S1.
    At the bottom of the unit, you will find a cover that protects the HARD drive Bay.
    A screw covers. Remove it.
    Then, it should be possible to remove the HARD drive.

    The replacement of the screen is another matter. It is not easy to remove it. In this case I recommend to contact Toshiba service in your country for details.

  • Equium A60: How to clean the screen

    Hi... using equium A60 for 4 years.
    There are fingerprints and marks on my screen for a long time, I tried to wipe with a cloth dampened in water, to my surprise, that would leave more big brands then before. Brands are not visible when the system is running IE screen is turned on, but clearly visible when the system is off.

    Can someone suggest me please how to clean the screen at home.

    Thank you verymuch...

    Hello

    Each computer dealer provides some products own display interesting and useful.
    You can use a lint cloth and a special spray to clean the screen.

    Would you recommend to visit your laptop & computer dealer following and ask these vaporizers

  • Satellite L30 - 11 d - how to exchange the screen?

    Hello

    I need help to change the screen on a Satellite L30 - 11 d. I accidentally pressed the screen that has a large black spot on him.

    Everything can show me how to change the screen with a new one please?

    Hello

    Unfortunately, you won't find manuals or on the pages of Toshiba disassembly instructions.
    I think that these instructions are made for service technicians only and are not for public use

    In any case, I think there is a lot of information on the internet and I think if you really need this info, then you should google a bit.
    But once again; It s always best to ask a technician for aid of the disassembly procedure is complicated and there is a high risk of damage this part.
    In the worst cases, damage another essential element which would be too expensive.

  • display HP 7 voice tab broken, unfortunately. tab is under warranty... How to replace the screen

    display HP 7 voice tab broken, unfortunately. tab is under warranty... How to replace the screen

    HP India never have bad service. I hv order three books "hp 15-ac026tx" before five days for the company. Distributior open boxes. But at the time of installation pilot not single manager of the graphics card, 2 GB. As a Distributor, realized with the support of Hp, they said that the engineer will soon be at your place. But still no one came. And im going to cancel this order and will prefer another compony.

  • How to turn the screen 180 degrees?

    How to return the screen to normal autour.  Right now, everything is upside down.  Some how the screen flip when I was using the mouse near the bottom of the screen and can of it a key @ simultaneously.  Help, please

    Tuesday, February 14, 2012 14:59:24 + 0000, ANTHONYPINO wrote:

    How to return the screen to normal autour.  Right now, everything is upside down.  Some how the screen flip when I was using the mouse near the bottom of the screen and can of it a key @ simultaneously.  Help, please

    The ability to rotate the screen image is a characteristic of your video
    card, to help work with instructors who turn to the portrait
    orientation. Almost certainly you accidentally pressed Ctrl-Alt, and
    an arrow key.
    Rotate using these keys.

    Ken Blake, Microsoft MVP

  • How to activate the screen of welcome and fast user switch client services for netware

    How to activate the screen of welcome and fast user switch client Services for NetWare...

    How to restore and step to uninstall client services for netware

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public on the TechNet site. Please post your question in the below link: http://social.technet.microsoft.com/Forums/en-US/winserverPN

  • somehow my screen turned completely sideways, how to rotate the screen back to normal?

    somehow my screen turned completely sideways, how to rotate the screen back to normal?

    Use the Ctrl key or the Alt key with the arrow keys to rotate your screen to its normal position. You can also right-click an empty space on your desktop and in the context menu that appears look for the rotation of the screen, orientation, landscape, or something similar.

    Kind regards

  • How to lighten the screen on my laptop?

    How to lighten the screen on my laptop? It's waaay to obscurity and the only time where it is bright enough is when I plug in the power cord. I have Windows Vista.

    Hi AdrianeJackson,

    1. What is the make and model of your laptop?

    2. when the problem started?

    3. you remember recent changes to the computer?

    You can try to hold down the function key (FN) on the laptop and press the arrow key UP while you are on the farm, he must try to change the brightness. You can also get in touch with the manufacturer of the system and check.

    Hope this information is helpful

  • How to detach the screen from the keyboard, and how do I use the touch screen without stylus?

    I have a gateway M285 ta6 t2300 clocked at 1.6 ghz dual core 1 GB 40 GB combo windows 7 tablet laptop 2-1 d. I don't have a pen for the touchscreen, but because I bought it used... I would like to know if I can use the touch screen using my fingers or do I have to buy a pen and if so what kind? Also, I would like to know how to detach the screen from the keyboard.

    Hello

    I suggest that you go to the Gateway Web site and download a manual for the model that will show you how to use it.

    Gateway:

    http://us.gateway.com/GW/en/us/content/drivers-downloads

    See you soon.

  • How to put the screen name? (edited by Mod..)

    Hi I want to know how to put the screen on my Ant name

    Hi Yuvrajm65418840,

    Please see the document shared for more information:

    Getting started on the Adobe Forums

    I hope this helps!

Maybe you are looking for

  • Re: Networking on Satellite A105

    I have a Satellite A105 that I m trying to fix for a friend. It is currently not possible to use a network connection, I tried Windows and Linux and I ve replaced the wireless card.None have worked. Any ideas?

  • Cannot find a corrupt plist file

    Disk Warrior found a plist file that is corrupted, but I can't. drive hard/private/var/folders/n2 /... and it lights up. I can't find the 'private' folder or in a folder "var" so, how can I find it? I tried a search of invisible and visible files. Th

  • N6350 Scanner will not scan button on the front panel

    I have configured the HP scanning software and added a shortcut. It will scan from the HP Scanner Software, but no analysis NOT of the scanner. The name of the user's the shortcut there. When I hit the button, is said "Please wait" and the Green LED

  • DV7-3140el - RAM upgrade

    I'm trying to upgrade the provided RAM 8 GB 4 GB standard memory. So far, without success. The system is that a Core processor i5 on an Intel PM55 chipset, (with stock RAM..) is woking very well. The RAM provided is working regularly at 1066 mhz CL7

  • Hi dear, I just set up my connection wireless network with password

    Hi dear, I just set up my network with password wireless connection and configure my router on the IP 192.168.1.2. , but to be honest im not sure person cannot access my network and record everything I have on my computr.is is it safe? Please tell me