ListField: why complexity?

Hello everyone.

I'm trying to do something that should be very simple.  I'm doing a ListField, filling and drawing, which was not a simple task.  Now, I'm doing a row of buttons at the bottom of the ListField so that I can load or remove the selected menu item.

I want the list to occupy the top of the page 300 pixels of the screen and scrolling in the 300 pixels, and I want the buttons to raise the low 60 pixels (locked in landscape mode).

I tried a bunch of things:

-paint using graphics.fillRectangle buttons, etc. and catch the touchEvent, but when the list scrolls buttons not painted at the bottom of the screen, they scroll up with the list?

-make a child class of ListField that redraws the buttons at the bottom of the screen on drawFocus and paint, also sets the preferred height of 300px.  There is nothing to help the situation

ANY help would be appreciated!  Thanks in advance guys!

-paul

I suggest you add your buttons in the status area on your screen (setStatus()).

The trick here is that you are trying to achieve with fields, you should really use managers to do.  If you need to add your ListField to a manager who is always 300 pixels high (you can use the sublayout method to impose the operation), and let the scrolling ListField statement.  Then you must create a high 60 Manager that you add after the 300 high Manager and you add buttons to it.

However just add your buttons to a HorizontalFieldManager and adding then the HFM to the status area should do it for you also.

Give it a go and let us know.

Tags: BlackBerry Developers

Similar Questions

  • Why is - FCP so complex: How can I simply leave a project and start a new, a new destination?

    Why is not more intuitive FCP to create the new project and close one on the screen, and then start a new and let me choose where I want to create it?

    I need a 3rd party app to import video content miniDV external HARD disk. Stuff is there for you.

    Now, I open the PCF and try to start a new project. However, this old project still there let me possibility to do it in the same folder: of course, being a tidy person, I don't want.

    I want to create another folder on the external HARD disk.

    What I am doing wrong?

    Hello.

    Keep in mind that a project must reside in an event and an event must reside in a library.

    You can have as many libraries as you want a store them wherever you like (even if you don't save them on a volume of time Machine.

    So start a new project in a new library or in a new event in an existing library to keep things orderly.

    Not sure I understand the part you need a third-party for mini DV application. You shouldn't have anything other than the FCC.

    Russ

  • Why the table in the output of MT complex waveform modulation FSK 255 elements missing?

    Hello! I posted my question in the LabVIEW forum but an application engineer suggested I post here. I'm new so any help would be appreciated

    I use this example FSK in LabVIEW (VI is attached). As it can be seen in the block diagram, the number of samples by specified symbol is 512. If I run 2 - FSK, I have 1 bit per symbol. So I if I have 128 bits, 128 symbols. and if I have 512 samples per symbol, I expect 65536 samples/elements in the complex waveform of the MT output modulation FSK. However, I get only 65281 elements in the table. There are 255 missing items.

    If I run 4 - FSK and have 128 bit or 64 symbols, I expect to 32768 in the table. But then again, I'm running out of 255 items and get 32513.

    Am I missing out on something? Have I misunderstood something? Thank you very much for your help.

    I get the same results as you!

    I Dove a little inside, and it seems that the code that generates the symbols, two layers down, which reports an explanation to this.

    If you open MT modulate FSK.vi, then mod_FSK modular Phases.vi discontinuous to generate in the discontinuous case of the structure of the case, you will see the following code.

    You can see that when Reset is set to True (the default) and the external-loop for is in his first race, the inner-loop for work (samples per symbol) / 2 + 1 times (in your case, this number is 512 / 2 + 1 = 257.) Subsequently, the inner-loop for runs with 512 for each outer loop for iteration. This means that the first round fail to 512-257 = 255 samples, which causes the total to 255 less samples.

    I don't know what is the motivation behind this design. As a test, you could connect in a constant False to Reset of the MT Terminal modulated FSK VI, which causes all the samples to generate.

    Hope that clarifies it.

  • Complex instruction AMOUNT giving erratic results! WHY!

    This part of my request;

    Sum (totalSCs) + (totalCalls) + ((TSLdays) * (WCG)) / (5) / (QTCG) AS PerCalls

    give me a block erratic result... specifically 24.03 instead de.16

    1 + 23 + (1 * 22) / 5) 176 =.16

    I write this evil? Any help would be greatly appreciated!

    (1 + 23 + (1 * 22 / 5)) 176 = 0.16...

    Similarly,.

    (SUM (totalSCs) + totalCalls + (TSLdays * WCG/5)) / QTCG AS PerCalls

  • Help with lab "display a list of complex cases.

    I'm trying my first project BB and I have problems with the sample 'to view a list of complex cases'.

    I'm passing 2 fields, 1 image and 1 labelfield, to the Manager without problem.  I resized the line to the right size, although I'm probably not doing things.  The first element of the list is not properly sized.  I can't understand why each item after the first is the right size.

    I need to be able to vertically Center the image and the labelfield within the line.  I'm unable to know where and how to proceed.

    I also need to be able to add a click event to the line to perform an action.

    I also had problems, change the color of the text when the.

    Any help would be greatly appreciated.

    Thank you!

    OK, you can ignore my previous comments.  What you have here is even more complex than I thought.

    I usually warn against this method of creating a line of the list.  It works, but it's a nightmare.  You using the functions of layout of BB available space than a ListField has a line, then paint directly on this line, fields that you use for page layout, the line are not really fields at all, they are just devices to help line available.

    The only time wherever I have even made it for real, was when I went to the layout as a text field and I really could not be bothered to return line myself.

    For your first assignment of BB you ripped a complex.

    Unfortunately, what you have given us here is the treatment that layouts and paints each line, which, according to me, I really need are the fields that you add to the line.  In fact, I suggest that you must send me the whole project, because it will be too big for a post on the forum and the answer type.  You want PM me?

  • Why Overwatch does not not on all Apple computers?

    Why Overwatch does not not on all Apple computers?

    Because it runs on Windows and the authors have not written a version of OSX. You could set up "Boot Camp" and install Windows on that, then you can run it if your machine is capable (although it will not work on a Windows computer up-to-date). You can also install Windows in a 'virtualizer' such as Parallels, but it is quite unlikely that a complex game would run satisfactorily.

  • Why does predictive mode spontaneously to go out from time to time?

    Why settings - general - keyboard - predictive spontaneously turn off itself from time to time? I'll type a SMS or e-mail, and sometimes using the dictation feature, but sometimes the predictive mode disappears. Given the complexity and the hidden nature of the premises, is not something that you can meet by chance, so I can't understand why.

    Maybe there's another secret gesture or key combination which is the cause. If this is the case, we hope, there is another secret gesture I can learn to cancel his disappearance. It's a pain to go back and manually reset.

    Quick Type 101. Tap the word Centre and swipe down to HIDE. Swipe up from the long oval between the keyboard and the text box to the SHOW.

    Hope that helps.

  • Why the print button does not to preview before printing?

    After the Firefox update suddenly goes to the window to print preview by clicking on the print button rather than just print the page.

    Three clicks you can now print a page, rather than one.

    Second, when to close the tab that was printed to focus now goes to the tab to the right of this tab rather than one that was previously active.

    When you need to print 30 pages (a backend of ecommerce for example invoices) is now much more time.

    Why make changes that introduces additional complexity?

    I hope Mozilla will see sense and reverse this strange change in the next version.

    Maybe watching the pref browser.tabs.selectOwnerOnClose the topic: config page.

    You can take a look at this extension:

  • Why my Macbook Air poster as a bridge to my Wifi network?

    We fight network gremlins in our small office.  We have an unnecessarily complicated network topology, but I don't think that the 'complexity' network is the fundamental issue (guess total).  Here's the situation.

    Periodically, we have network problems that range from individual devices or IP phones, problems at the Internet, across the Office of failures.  The Internet seems to be stable during the network problems and is also big enough to handle the traffic.  There seems to be no problem with the Internet itself - FYI...  We have a mix of Mac and PC, printers, file server and IP phones using the network.  The network is a mix of wifi devices connected and wired devices (PC/Mac wifi wired connected...printers/phones in General).

    The network itself is as follows:

    AirOS WAP which does not respect NOT IPs, just toward the life of a HP switch, which in turn is connected to a D-Link router that handles DHCP.  D - Link is then connected to our Internet modem.  The AirOS WAP is used because it is the signal strength and performance are supposed to be better than the performance of the D-Link wifi.  Note: The wifi radio is turned OFF on the D-Link.  All attached devices appear in the ARP table on the device from D-Link (as expected).

    But and I finally get to my question on the AirOS my MacBook Air (El Capitan) is displayed in the ARP table under a bridge.  It is the only device that appears in the ARP table besides than the D-Link (showing also as a bridge - what is planned).  In other words, my Mac "is differently from any other device in the office, we want to eliminate as a potential problem."

    Any who have thoughts on why my Mac is illustrated as a bridge.  I checked my network settings and nothing seems out of the ordinary on my laptop.  (only the bridge I find together are thunderbolt - that is NOT connected)

    I'm sure that someone has an idea or two on why my device showing as a gateway into our network, and if this could be a problem.

    Thank you.

    After the Ubiquiti AirOS AP firmware up-to-date have been upgraded - if it is not already there - you have Ubiquiti why their software of AirOS reports what is shown.   AirOS has many configuration options and can be configured to distribute the signals with multiple devices Wi - Fi - what you see here, what version of AirOS is involved, how the device is configured, it is something that people of Ubiquiti are likely better to troubleshoot.

    The only way that I expect to see a Mac acting as a bridge is via system preferences > sharing > Internet sharing or maybe lower configurations of command line for access to these parameters.   If Internet sharing is disabled, I would not expect OS X works as a bridge.

    I would be the network inventory and nettoieriez configuration.   (Set in bridge) modem, firewall, to move, to cables and AP (s) systems.   I would use connections wired to the APs when possible and WDS where not.

    If you have the OS X Server autour (this forum), then those who need static IP addresses and will probably also want to wired connections for performance reasons.

    If one of the servers in use is accessible from the outside, we can a required more complex network configuration if you want to isolate the damage caused by a failure of the server.

    Wi - Fi can have serious interference problems in some areas.  Interference can wreak havoc with the connections Wi - Fi and AP, that can walls and anything that can block signals.

    If it's really a D-Link router (like the series DSR, etc.) and not a D-Link gateway area, these routers are not very effective firewall.   He worked with one of these.   Really hard to guarantee.    Not what they are built, either.

  • Why apple has not added appeal and message log record on iOS 9

    It's pretty ridiculous that I spend nearly $1000 for 128 GBSpace cannot save the call history or my SMS messages. Why didn't Apple has added these features yet. It's not like this is a complex issue and, in fact, it should be standard in any phone sales but you have the option to save your messages or the call history. Common sense go with jobs?

    No one here can answer why Apple does nothing. Nobody here can talk to Apple. It is a community of users. Apple does not here.

  • Why an asynchronous call would lead to "the VI is not executable. The full development version... »

    I built a labview moderately complex program to connect with a new parser that I build.  To briefly describe the application, the main VI is a user interface which, in an initialization step, asynchronously calls a dozen other screws each called VI is a state machine that handles communication with a component specific for my parser, whether heat controllers, regulators debit, NI DAQmx channels, a SQL database, etc..  I use the VFG and/or EI to communicate information between the main VI and each component. The system works well when it passes through NI Labview 2012 SP1 (full development Version).  I build the project successfully, but when I run the construction (on the same development machine), I encounter the "the VI is not executable.  The full development of LabVIEW version is needed to correct errors"message.

    My first troubleshooting step that was supposed to isolate the problem.  I removed all the asynchronous calls, rebuilt and the program works without errors (granted, no State machines that handle I/O bundles are running). This gave me the impression that my UI screws are not the problem.

    The next step that I took was to create a test project with a simplified user interface to call asynchronously, and control a single component.  The first part, I tried to control a heating unit, and it works perfectly.  I have build it and run without errors or problems.

    Thinking that the component should not be a problem, I add the async call for this component in my main VI, to test it.  This works well in the built environment of Labview development, without errors, but alas, I get the same message as the "VI is not executable' when I try to run the build.

    I am at a loss on how to make trouble, or it could be the cause of the problem.  Why an asynchronous call to the VI even break the construction of an executable project, but don't cause problems in an executable of side projects?


  • can we do complex arithmetic in xml and access in labview?

    Hello

    I'm using LabVIEW 8.5. I did 1 project how far I used Excel to perform complex arithmetic and then read results

    Thanks to labview. I'm just curious about Xml. It can be used for what purpose? What is a good alternative for excel? because I read on the internet

    that the execution of xml is faster than the .doc and .xls files?  Can we use as database for labview application?

    Help, please

    Thank you

    Gerard

    Transport as in a format for transmitting data from one PC to another or one application to another.

    Excel is a spreadsheet.  It stores its data in a strictly binary file with the extension .xls format.  The latest applications of MS Office can also store their data in a text based XML file format and have extensions such as .xlsx.

    XML is just a data storage format, it has nothing to do with the calculations.  LabVIEW can make calculations as complicated as Excel.  I would say it is complicated even more features that the application MS Excel does not.

    Why are you concerned an XML file?  Instead of comparing apples and oranges (i.e. formats of files of applications), please tell us what kind of calculations you are trying to do.  The calculations have absolutely nothing to do with the file formats.

  • read in a labview complex binary file written in matlab and vice versa

    Dear all. We use the attached funtion "write_complex_binary.m" in matlab to write complex numbers in a binary file. The format used is the IEEE floating point with big-endian byte order. And use the "read_complex_binary.m" function attached to read the complex numbers from the saved binary file. However, I just don't seem to be able to read the binary file generated in labview. I tried to use the "Binary file reading" block with big-endian ordering without success. I'm sure that its my lack of knowledge of the reason why labview block works. I also can't seem to find useful resources to this issue. I was hoping that someone could kindly help with this or give me some ideas to work with.

    Thank you in advance of the charges. Please find attached two zipped matlab functions. Kind regards.

    Be a scientist - experiment.

    I guess you know Matlab and can generate a little complex data and use the Matlab function to write to a file.  You can also function Matlab that you posted - you will see that Matlab takes the array of complex apart in 2D (real, imaginary) and which are written as 32 bits, including LabVIEW floats called "Sgl".

    So now you know that you must read a table of Sgls and find a way to put together it again in a picture.

    When I made this experience, I was the real part of complex data (Matlab) [1, 2, 3, 4] and [5, 6, 7, 8] imagination.  If you're curious, you can write these out in Matlab by your complex function data write, then read them as a simple table of Dbl, to see how they are classified (there are two possibilities-[1, 2, 3, 4, 5, 6, 7, 8], is written "all real numbers, all imaginary or [1, 5, 2, 6, 3, 7, 4) [, 8], if 'real imaginary pairs'].

    Now you know (from the Matlab function) that the data is a set of Sgl (in LabVIEW).  I assume you know how to write the three functions of routine that will open the file, read the entire file in a table of Sgl and close the file.  Make this experience and see if you see a large number.  The "problem" is the order of bytes of data - Matlab uses the same byte order as LabVIEW?  [Advice - if you see numbers from 1 to 8 in one of the above commands, you byte order correct and if not, try a different byte order for LabVIEW binary reading function].

    OK, now you have your table of 8 numbers Sgl and want to convert it to a table of 4 complex [1 +, 2 + 6i, 5i 3 +, 4 + i8 7i].  Once you understand how to do this, your problem is solved.

    To help you when you are going to use this code, write it down as a Subvi whose power is the path to the file you want to read and that the output is the CSG in the file table.  My routine of LabVIEW had 8 functions LabVIEW - three for file IO and 5 to convert the table of D 1 Sgl a table of D 1 of CSG.  No loops were needed.  Make a test - you can test against the Matlab data file you used for your experience (see above) and if you get the answer, you wrote the right code.

    Bob Schor

  • Why the execution time increases with a while loop, but not with "run continuously?

    Hi all

    I have a problem of severe weather that I don't know how to fix it because I don't know exactly where it comes from.

    I order two RF switches via a data acquisition card (NI USB-6008). One job at the same time can be selected on each switch. Basically, the VI created for this feature (by a colleague) resets all the outputs of acquisition data and active then those desired. It has three entrances, two chain simp0le controls and a cluster table, that contains the list of all the outputs and some practical information to know what is connected (specific to my application).

    I use this VI in a complex application, and I have some problems with the execution time, which increased whenever I said the VI, so I did a test VI (TimeTesting.vi) to determine where the problem came. In this special VI I record the execution time in a csv file to analyze then with excel.

    After several tries, I found that if I run this criterion VI with the while loop, execution on every cycle time increases, but if I remove the while loop and use the funtionnality "Continuous run", the execution time remains the same. In my high level application, I have while loops and events, and so the runtime increases too.

    I someone could explain to me why execution time increases and how can we avoid this? I have attached my VI test and the necessary subVIs, as well as an image of a graph that shows the execution time with a while loop and «run permanently»

    Thanks a lot for your help!

    Your SetReset_DO VI creates a channel whenever it is called.  And that you never delete a task.

    When running continuously, that it's as if it only runs once and LabVIEW has internal mechanisms to close references that will not be used again.  When a VI is used as a Subvi, LV does not know if she will be called again, and lacks these things until the first level VI stops. You have a memory leak.

    Just as you open and close your file outside the loop for, create your channel out of the loop.

    Lynn

  • Why carnt I defragment reserve hd system

    why I can't defragment reserve hd system

    Hello

     
    1. What happens when you defragment the partition?
    2. What operating system is installed on the computer?
     
    100 MB system reserved partition is used primarily as BitLocker partition for BitLocker encryption. In addition, he also holds the Windows recovery environment (WinRE) and startup files with the Boot Manager to start the computer for troubleshooting when there is no Windows 7 installation DVD disc on the spot.
     
    Disk Manager does not remove or modify this partition because remove or make changes to this partition could force the system to no boot. It is possible to hide or delete this partition, but this can be a very complex procedure and is not recommended.
     
    See:
    What is Windows 7 system reserved Partition: http://blogs.technet.com/b/uspartner_ts2team/archive/2010/03/13/what-is-the-windows-server-2008-r2-windows-7-system-reserved-partition.aspx

Maybe you are looking for