Container comes now, but the list is not... boo
-All right, so the container is good to go now, I have this to try to get the built list.
var cont:Container = new Container(); cont.margins = Vector.([5,5,5,5]); cont.debugColor = 0x33FF33; cont.setSize(200, 100); _individFoods = new Array(); for (var i:int = 0; i < json.foods.length; i++) { if (json.foods[i].brand == "") { _individFoods[i] = { label: json.foods[i].name }; } else { _individFoods[i] = { label: json.foods[i].name + '(' + json.foods[i].brand + ')' }; } } if (_dropCreated == false) { _list = new List(); _list.containment = Containment.BACKGROUND; _list.dataProvider = new DataProvider(_individFoods); cont.addChild(_list); _dropCreated = true; addChild(cont); }
Anything whatsoever reach senior year as strange?
Hey,.
a couple of things stand out - first you don't seem to be of the size of the list. I think that the list component he requires in order to make the list. and the second because you set the size of the front of the container, its best to do a cont.layout () after you are done to add children to the containing element. Good luck!
Tags: BlackBerry Developers
Similar Questions
-
Windows XP Add Remove Programs opens, but the list of programs will not appear?
Windows XP Add Remove Programs opens, but the list of programs will not appear? Can check the programs add and romove, but when the next screen appears to list all installed programs nothing happens, it just says: waiting will list is bieng prepared, expected 15 minutes still nothing, never had this problem before. Thank you
Alas...
As the forums MS Answers does not prompt for any information system when a new question is asked, we know absolutely nothing about your system.
Not knowing the basic information a problem prolongs the frustration and the agony of these issues.
Click Start, run and enter the following command:
regsvr32 appwiz.cpl
Click OK and you should see a message like this:
DllRegisterServer in successful appwiz.cpl
Restart and see how things look now.
-
my system is 64-bit but my adobe flash player is 32-bit install on my com.now it's good or not? because if I play poker it is verry slowly.maybee is not compatible? Please help me what can I do?
my system is 64-bit but my adobe flash player is 32-bit install on my com.now it's good or not? because if I play poker it is verry slowly.maybee is not compatible? Please help me what can I do?
Unless you use the 64-bit browser, you will not need 64-bit plugins. Just because Windows is 64-bit does not mean that everything has been installed it is.
Uninstall all Plugins Internet (RealPlayer, QuickTime, Adobe Flash Player, Adobe Shockwave Player, Adobe Air, Microsoft Silverlight, K-lite codec pack, etc.) of your computer.
Turn it back on.
Reset Internet Explorer default. If used, reset the default values for Firefox.
[Note: If you don't have any other browsers installed at that time, taste.] Mozilla Firefox, Google Chrome and Opera are decent.
Turn it back on.Download, install, execute, update and perform analyses complete system with the two following applications:
Remove anything they find. Reboot when necessary. (You can uninstall one or both when finished.)
Search online with eSet Online Scanner. Delete everything is found.
Turn it back on.
Install Adobe Flash Player (in Internet Explorer and Firefox separately) and Microsoft Silverlight. Remember to UNCHECK all the boxes to install other software with them.
Turn it back on.
Try whatever you were doing before. Come back and let everyone know how things went. -
Some records are not in my list of bookmarks; individual bookmarks can be found in the search, but the folder does not appear in the list of bookmarks, and results do not indicate where the individual bookmarks.
You can use an add-on to display add a column to the Library dialog box for the folder of the bookmark.
https://addons.Mozilla.org/firefox/addon/show-parent-folder/
The extension can indicate only the name of the folder or you can view the full path via the menu in the folder. This full path option is useful if a file accidentally gets you drag somewhere in order to explore the it and find it.
To access the settings of the extension, you can use the page modules. Either:
- CTRL + SHIFT + a
- "3-bar" menu button (or tools) > Add-ons
In the left column, click Extensions. Then, find the Options button under the specific extension.
A little luck?
-
Driver VGA Dual-Mode Camera installs but the device does not appear in the list of devices to Windows Photo Gallery
Hello
I will need to know the brand and model of the device in order to help you solve it.
You see the device listed in the Control Panel, hardware and sound, scanners and cameras?
Brent
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
Printer not responding not connections (wireless printer) is good and solid. I replaced my old router wirelessly with a router of valuation. I had to plug it, but the printer does not respond now.
Is what brand and model of printer?
I do not work unless your new router has the same SSID and password wireless as the old. Consult your printer documentation to find out how to handle the situation. For example, some Lexmark wireless printers have a program called Configuration Utility Wireless in the Lexmark folder under all programs on the start menu that is used to set up the printer when changes are made to the wireless network.
-
Hi, I use Adobe Photoshop Lightroom output CC Camera Raw 9.5 2015.5. I am now with Nikon D4s shooting but the lightroom does not read the RAW format. Why? Is it possible to import the RAW files in lightroom? Thank you for your help
I'm not an apple person. I read on a few different forums that apple has changed what is called 'writing' in a recent update to apple. You may need to find an Apple expert to show you how to make sure you are allowed to write to files or locations on your computer.
-
I did a systematic update of the CC PS and PS now seems to work but the bridge is not. I get a "CC could not update" and an error code 72. What is the best solution?
Thank you for your message. I'm finally hung up with Adobe cat and after about 2 hours, the problem has been resolved. Part of the problem was a corrupted Microsoft files.
Ed
-
How can I re-download Acrobat. I have my serial number but the order does not come under the heading upward my story.
Hi Roger,
You can download Acrobat from the below mentioned link:
Download Adobe Acrobat products. Standard, Pro | DC, XI, X
Kind regards
Rahul
-
Hi, I just bought Adobe Acrobat Pro DC. I used the link that was sent to me to download. But the download was not successful. After trying 5 times, the system says, now I downloaded too many times and has refused to let me download it again. Someone from Adobe is reading this? How can I get this fixed a problem? Thank you.
-
I installed the download Assistant and she show Acrobat is downloaded, but the program does not run or listed as a program. The only thing listed under programs is the wizard. When I click on it, it gives me just the possibility to download Acrobat again.
Charlesgreen123 after the installation files are downloaded, you can run the Setup program to install Acrobat. By default, the installation files are saved in your download folder.
-
Cannot use the internal mic. External microphone works but the sound is not very loud.
Original title: microphone
My microphone internal hp no longer works. If I plug an external microphone into the socket, it will work, but the sound is not very loud.
Hello
1 how long have you been faced with this problem?
2 did you recent hardware or software changes to your computer before this problem?Step 1: Try to run auto Locksmiths and check.
Reference: http://support.microsoft.com/gp/hardware_device_problemsStep 2: Set the default Microphone.
a. go to Start and click on Control Panel.
b. click on her, then a new window will open.
(c) in the new window click on the "recording" tab and right-click in the window and click on Show disabled devices.
d now check if the Microphone is listed there and right-click on it and choose Activate.
e. Select the Microphone, and then click "set as default"Reference:
http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-fixing-common-sound-problems
http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly
http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-fixing-common-sound-problems
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-audio-recording-problems
http://Windows.Microsoft.com/en-us/Windows-Vista/record-soundThanks and greetings
Umesh P - Microsoft technical support.Visit our Microsoft answers feedback Forum and let us know what you think.
[If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.] -
Images in the field of the list does not
Hello
I create a list field that contains 10 lines and four fields in each line. The first field is the field of the image. But the image does not come. Other three fields (label field) do very well. I use the simulator of 4.7 and 9530.
I give my code here also. Please help me.
class TaskListField extends ListField implements ListFieldCallback { private Vector rows; private Bitmap _mReceiveAmount; private Bitmap _mSentAmount; private boolean hasfocus=false; public TaskListField() { super(0, ListField.MULTI_SELECT); setRowHeight(60); setEmptyString("It is Empty!", DrawStyle.HCENTER); setCallback(this); String images[]={"amount_received.png","amount_sent.png"}; _mReceiveAmount = Bitmap.getBitmapResource("amount_received.png"); _mSentAmount = Bitmap.getBitmapResource("amount_sent.png"); BitmapField bitmap; rows = new Vector(); for (int x = 0; x < 10; x++) { TableRowManager row = new TableRowManager(); // SET THE BITMAP FIELD // if amount received, display bitmap // if (x % 2 == 0) { //bitmap=new BitmapField(_mReceiveAmount); row.add(new BitmapField(Bitmap.getBitmapResource(images[0]))); //} // if amount is sent, set bitmap //else { // bitmap=new BitmapField(_mSentAmount); // row.add(new BitmapField(Bitmap.getBitmapResource(images[1]))); // } // SET THE DATE LABELFIELD // LabelField _mDateField = new LabelField("OCT 10,2010", DrawStyle.ELLIPSIS); row.add(_mDateField); // SET THE LIST NAME row.add(new LabelField("Details" ,DrawStyle.ELLIPSIS) { protected void paint(Graphics graphics) { graphics.setColor(0x00878787); super.paint(graphics); } }); // SET THE DUE DATE/TIME row.add(new LabelField("$220",DrawStyle.ELLIPSIS | LabelField.USE_ALL_WIDTH | DrawStyle.RIGHT) { protected void paint(Graphics graphics) { graphics.setColor(0x00878787); super.paint(graphics); } }); rows.addElement(row); } setSize(rows.size()); } // ListFieldCallback Implementation public void drawListRow(ListField listField, Graphics g, int index, int y,int width) { // g.drawBitmap(0, 0, _mReceiveAmount.getWidth(), _mReceiveAmount.getHeight(), _mReceiveAmount, 0, 0); TaskListField list = (TaskListField) listField; TableRowManager rowManager = (TableRowManager) list.rows.elementAt(index); rowManager.drawRow(g, 0, y, width, list.getRowHeight()); // g.drawBitmap(0, 0, _mReceiveAmount.getWidth(), _mReceiveAmount.getHeight(), _mReceiveAmount, 0, 0); } public class TableRowManager extends Manager { public TableRowManager() { super(0); } // Causes the fields within this row manager to be layed out then // painted. public void drawRow(Graphics g, int x, int y, int width, int height) { // Arrange the cell fields within this row manager. layout(width, height); // Place this row manager within its enclosing list. setPosition(x, y); // Apply a translating/clipping transformation to the graphics // context so that this row paints in the right area. g.pushRegion(getExtent()); // Paint this manager's controlled fields. subpaint(g); g.setColor(0x00CACACA); g.drawLine(10, 0, getPreferredWidth()-10, 0); // Restore the graphics context. g.popContext(); } // Arranges this manager's controlled fields from left to right within // the enclosing table's columns. protected void sublayout(int width, int height) { // set the size and position of each field. int fontHeight = Font.getDefault().getHeight(); int preferredWidth = getPreferredWidth(); // start with the Bitmap Field of the priority icon Field field = getField(0); layoutChild(field, 32, 32); setPositionChild(field, 10, 20); // set the task name label field field = getField(1); layoutChild(field, 120, fontHeight + 1); setPositionChild(field, 70, 3); // set the list name label field field = getField(2); layoutChild(field, 150, fontHeight + 1); setPositionChild(field, 190, 3); // set the due time name label field field = getField(3); layoutChild(field, 150, fontHeight + 1); setPositionChild(field, preferredWidth - 172, 3); setExtent(preferredWidth, getPreferredHeight()); } // The preferred width of a row is defined by the list renderer. public int getPreferredWidth() { return Graphics.getScreenWidth(); } // The preferred height of a row is the "row height" as defined in the // enclosing list. public int getPreferredHeight() { return getRowHeight(); } } public Object get(ListField listField, int index) { // TODO Auto-generated method stub return null; } public int getPreferredWidth(ListField listField) { // TODO Auto-generated method stub return 0; } public int indexOfList(ListField listField, String prefix, int start) { // TODO Auto-generated method stub return 0; } public void onUnFocus(){ hasfocus=false; invalidate(); } }
your code is quite a mess, and you probably have a misconception on the listfield.
in drawListRow you paint directly the object to the line. no need to use fields or similar, graphics methods.
If you have different objects in your listfield you need to branch in your drawListRow method (if bitmap instanceof object etc.).
your brief description, it appears you want to have the bitmap in the same line as your other information.
create a bean with the attributes class, that you need, including the bitmap.
put objects of beans in your listfield and the data structure (vector).
drawListRow check that it is a bean and draw it.
for example (rough code, no control null etc.):
drawBitmap (0, bean.getBitmap ());
drawText (bean.getBitmap (.getWidth () + 5,) bean.getText ());
-
I gave this e-mail address to answer to another email user but my password has been changed and nt theres initially asked
zynga took my moms account and changed password for facebook and e-mail, she followed the steps to change the password but the link does not work as it changes the password of my account, she tried this link 3 times now is there anything else she can try.
Hello
· What operating system is installed on your computer?
· What browser do you use to connect to the internet?
· Which email service provider you are talking about?
Because the problem is linked to facebook I suggest you to post your query on facebook forum for assistance:
-
computer accepts the flash drive, but the drive does not appear anywhere.
I can insert a flash drive and the computer accepts it, but the reader does not anywhere - I see the drive C, drive D, but not E, F or anything would be the flash player. Him 'delete... '. Safely"icon acknowledges the drive is there, but I can't copy a file to it, because it does not appear on the list of drives.
I had a similar problem and it was hardware related. There was too many USB devices on my drawing power USB bus, even if I had 6 USB ports on the motherboard. I bought a 7 port Belkin powered hub to solve the problem. A device such as a flash drive would connection beep and come in the widget of material safely remove, but the drive letter would never appear.
Unplug all usb devices, turn off the system and pull on the power cord. Remove the battery if a laptop. Wait a minute or two to make sure that all power had evacuated and then turn it on and see if the flash player works just in itself.
I assume that you checked the fash drive and it's OK.
Maybe you are looking for
-
How can I determine the number of contacts that I have
How can I determine the number of contacts that I currently have on my iphone
-
I'm money downoad more - I get "autorun.inf is missing or damaged.
money for the home or business
-
LifeLog do not save anything else than of calories
He takes no measures, running or anything else but the calories
-
Unable to order recovery disks
Hello I really need to order a recovery disc for my HP laptop, but they are no longer available through HP. I tried http://www.computersurgeons.com/ but I can't find it on the site. Maybe I'm looking for bad outcomes. Can someone help me? Information
-
Why my win7 freeze whenever I use Skype
Hello. I just formatted my msi. Same OS, win7. the reason why I formatted it was because that it kept freezing when I use Skype. I mean, when I'm in a Skype video call, I can't click my taskbar because when I do, it will freeze certainly my laptop wh