Simple way to compensate for the entry of data into an EditField?

I'm keen to make an edit field with a small image on the left inside the parameter space. I can do it with a BackgroundFactory, but when the user enters the text, it seems bad and image overlays. Is there a simple way to push the starting point of the text box away a little so that I don't cover image?  I guess this could be done with a HorizontalFieldManager, BitmapField and aText field, but it certainly wouldn't be easy because of the border that I currently use.

I'll respond and say I found an answer that was not too demanding.

First of all, I place a VertFieldMan with the gradient background I wanted. Then, I set up a HorizFieldMan with the border I wanted around the domestic fields and a white Uni. Then I added a bitmapfield (the image has a white BG) and a textfield to the HFM. The trick was the TextField to draw its own border, so I changed it' to border to the one created with a simple white frame. The result is that it looks like an editable with the image field to the left and the part of editable text left to right.

Tags: BlackBerry Developers

Similar Questions

  • Prevent the entry of data into Custom 2 [no] after 2010 P8

    Hello

    I want to prevent the entry of data in Custom 2 [no] member after P8 2010 because we want to force to pick up the good Profit Center of the user.

    "To prevent the entry of data in C2 [none]
    If povYear > '2009' and povPeriod > 'P8' then
    HS. NoInput "C2 #[no].

    I also think about putting security on the [None] custom member 2 after we are done with reconciliation of the history, but I'm afraid the impact it would have on history

    Published by: user10931567 on July 16, 2010 11:46

    You cannot have any POV conditions in Sub NoInput. This and secondary input performed outside any user and don't have so any views that you can test. These subroutines execute immediateley at the application startup when no users are in the system, and when you load the rules file. For this reason, you must use the membership lists and simply scroll the POVs predetermined in these routines. You need to loop through the years, or in a more intelligent manner:

    Void NoInput

    HS. [NoInput ' Y #2010.P #Sep.C2 #[None "]
    HS. [NoInput ' Y #2010.P #Oct.C2 #[None "]
    HS. [NoInput ' Y #2010.P #Nov.C2 #[None "]
    HS. [NoInput ' Y #2010.P #Dec.C2 #[None "]

    HS. [NoInput ' Y #2011.C2 #[None "]
    HS. [NoInput ' Y #2012.C2 #[None "]
    HS. [NoInput ' Y #2013.C2 #[None "]
    HS. [NoInput ' Y #2014.C2 #[None "]
    etc.

    End Sub

    It is more well done in a loop fixed, but you can see the point that, at any time, you can use an "If...". Then' statement that tests any user POV.

    -Chris

  • Easy way to qualify for the requirement of 'Service' B4BB

    It seems to me that the best way to qualify for the service requirement, should just link to your application in AppWorld. For example, ask the user to review your app, or maybe a link for them show all your existing applications.

    It uses the framework of the call which is a qualified service for the B4BB program.

    The code is as simple as:

    var request: InvokeRequest = new InvokeRequest();
    Request.Target = "sys.appworld";
    Request.action = InvokeAction.OPEN;
    Request.Uri = "appworld://content/" + appId;
    InvokeManager.invokeManager.invoke (request);

    I think you could even make an argument, a getURL() call simply the same thing, so what is not also meeting of eligibility for B4BB?

    Download

    navigateToURL (new URLRequest ("appworld://content/" + appId));

    You can have lots of fun with other prefixes too:

    https://developer.BlackBerry.com/air/documentation/BB10/blackberry_world.html

    You haven't added anything to your XML files to call a target. These tags are only if you want to be a target. Use the sample code that I posted to call BBM, and it will work fine.

  • Is there a simple way to reduce/increase the two A / track V sizes in the CC timeline? [was: Adobe CC]

    Y at - it a simple way to reduce / increase the two A / track V sizes in scenario C C?

    There are keyboard shortcuts for expand/collapse the heights of the audio track and shortcuts to expand/collapse the heights of video tracks, but not both at the same time in increments (although you can quickly develop their all at the same time).

    If you are using Premiere Pro default keyboard:

    Opt + - / = collapses / develops audio tracks

    Cmnd + - / = collapses / expands the video tracks

    Shift += develops all the video AND audio tracks

    Shift + - collapses all the video AND audio tracks

  • Wait for the entry?

    Hi all

    I need to create a custom entry dialog box and the problem I encountered is that I can't figure out how to make my request to wait for the user to complete the entries in the framework. When you use a JDialog or JOptionPane application will stop running and wait for the dialog box to close. My question is how to do something similar without using a JOptionPane or JDialog. I just can't figure out how to get the same effect by using a JFrame or other component. I know I could just use a JDialog or JOptionPane to get input from the user, but I'm just curious to know how I can stop running and wait for the entry as the JOptionPane allows you to do, but without using a JOptionPane or JDialog.

    Thank you for your help :)
    Nathan D.

    -----
    : Edit:
    I forgot to mention that the reason main I avoids JDialogs is I need the entry dialog box to be internal not external application I use mode exclusive fullscreen. And a JOptionPane does not allow me to add the other components too it such as JLabels and other GUI. I just need a way to get input from a component or internal window and wait for the entry as a JOptionPane or JDialog.
    -----

    A NBS are:

    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    
    
    
    public class Main extends JFrame implements ActionListener {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            new Main();
        }
    
    
        JButton go = new JButton("Show custom input dialog");
    
        public Main() {
            setSize(300,150);
            setLocationRelativeTo(null);
            setLayout(new FlowLayout());
            go.addActionListener(this);
            add(go);
            setVisible(true);
        }
    
        public void actionPerformed(ActionEvent e) {
            InputDialog d = new InputDialog();
    
            /*
             * Here is the problem it is necessary that I create a
             * custom input dialog to allow further modifications however
             * i'm not sure how to wait for the user to enter text and press
             * continue in that input dialog. Unlike JOptionPane the code executes
             * before the user presses continue. My question is how do I wait for the user
             * to press continue in the InputDialog before I call d.getString(); without making the main
             * application unresponsive.
             */
    
            String returnValue = d.getString();
            System.out.println("return value "+returnValue); //will be null or empty because application doesn't wait for input.
        }
    
    
        class InputDialog extends JFrame implements ActionListener {
            JTextField f = new JTextField();
            JButton go = new JButton("Continue");
    
            public InputDialog() {
                setTitle("Custom Input Dialog");
                setSize(300,150);
                setLocationRelativeTo(null);
                setLayout(new FlowLayout());
                f.setPreferredSize(new Dimension(100,25));
                go.addActionListener(this);
                add(f);
                add(go);
                setVisible(true);
            }
    
            public void actionPerformed(ActionEvent e) {
    
            }
    
            public String getString() {
                return f.getText();
            }
        }
    }
    Published by: neptune692 on January 3, 2011 13:25

    neptune692 wrote:
    .. a JOptionPane does not allow me to add the other components too it such as JLabels and other GUI. ..

    Of course, it does!

    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    
    public class DumbNameMain extends JFrame implements ActionListener {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            new DumbNameMain();
        }
    
        JButton go = new JButton("Show custom input dialog");
    
        public DumbNameMain() {
            setSize(300,150);
            setLocationRelativeTo(null);
            setLayout(new FlowLayout());
            go.addActionListener(this);
            add(go);
            setVisible(true);
        }
    
        public void actionPerformed(ActionEvent e) {
            JTextField f = new JTextField(10);
            JButton go = new JButton("Continue");
            JPanel p = new JPanel(new FlowLayout());
            p.add(f);
            p.add(go);
            JOptionPane.showMessageDialog( this, p );
    
            String returnValue = f.getText();
            System.out.println("return value "+returnValue);
        }
    }
    
  • Is there a part in a simple way a project among the developers?

    There are three developers in our shop.  We will all work on the same Flex project simultaneously.   Is there a part in a simple way a project among the developers?  We currently use Dreamweaver for our ColdFusion code and as Check-in/out service.  I don't see any similar functionality in Flex.  I read the content of help on CVS, but it seems exaggerated.  In addition, I have no idea how set up.  Any recommendations?

    I would recommend learn from Subversion (which is a bit like CVS, only a bit more modern): http://subversion.tigris.org

    There is a plugin for Flex Builder (Eclipse) that makes use of Subversion is quite easy: http://subclipse.tigris.org

    There is definitely a learning curve to set up and use a full source control system like Subversion.  But well worth the effort (and some would say an absolute necessity).  You can also find suppliers of Subversion hosted, which could reduce your preparation time.  Take the plunge.

    Let me know if you have any other questions...

    Ben Edwards

  • If win 2003 is upgraded for the 2008 edition, it will fix alingment compensate for the problem with the SAN disks?

    If win 2003 is upgraded for the 2008 edition, it will fix alingment compensate for the problem with the SAN disks?

    Hi elvirkaric,

    Your question in Windows Server 2008 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Forum. You can follow the link to your question:

    http://social.technet.Microsoft.com/forums/en-us/w7itproinstall/threads

  • Compensate for the gradient tool

    Hi guys

    I use PsCC2015 I drew an ellipse and has added a gradient, with a radial pattern. The center of the star is at the center of the ellipse. For the effect I want, I need to compensate for the radial gradient from the center of the ellipse Center. Is this possible?

    Respect,

    Graham

    Yes it is possible. Double-click the layer, and then select gradient overlay and manually set the gradient whereve you want on the ellipse. Just like that.

  • Manual large editions with sensitive html setting. Is there a way to determine how the entries appear in the table of contents?

    I publish major textbooks with sensitive html setting. Is there a way to determine how the entries appear in the table of contents? If I publish a small section of the manual then 2nd level entries appear as eruptions under the chapter name, but if I publish the manual in its entirety then level 2 headings are not at all. I would like them to appear as the eruptions in the table of contents, but I need to publish the manual as a whole in order to keep the cross references. Any help will be greatly appreciated!

    I think that this would make clearer - and it would skip and tables of contents of books under.

  • Anyone know if there is no CC or BC apps or other alternatives that allow a way to create an online survey consisting of 3 questions for the participants to a trade appear to fill out and submit for the purposes of data collection?  Offlin data collection

    Anyone know if there is no CC or BC apps or other alternatives that allow a way to create an online survey consisting of 3 questions for the participants to a trade appear to fill out and submit for the purposes of data collection?  Offline data collection is a must. Ability to export data to Excel would be an added bonus. Thanks for the tips.

    Hi Nathan,

    This link might help: Create PDF fillable, creative forms of PDF form. Adobe Acrobat DC

    Kind regards

    Sheena

  • Restarting a task for the acquisition of data inside a For loop

    Hello

    I need iterate through my acquisition of data. Currently, I'm doing this through the creation, implementation and tasks for the acquisition of data inside a loop For which is iterated according to the needs of compensation. Unfortunately, the creation of these DAQ tasks slow down my code.

    I would like to be able to create the tasks outside the loop, pass them in and revive the tasks at the beginning of each iteration. Is there an easy way to do this?

    Otherwise, is there a way to make the standard DAQmx digital startup trigger trigger several times (so that it starts each pulse data acquisition in a long pulse rather than just the first pulse train)?

    Thank you!

    -Evan

    I whent before and created this example for you (and many others.)

  • Use two assistants for the acquisition of data at the same time

    Hello

    I want to read multiple data channels of analog inputs on my DAQ hardware. However, when I try to create two separate data acquisition assistants for each entry, it gives an error saying "is reserved for the specified resource. The operation could not be performed as indicated "." Can't use two assistants for the acquisition of data at the same time?

    I have to add different channels in the same assistant DAQ? I tried, but I couldn't separate the data in different graphs.

    How does this work?

    Kind regards

    Allard

    You can't have multiple tasks of the same type (in this case inputs analog) on the same device.  Just so having 1 DAQ Assistant read all your channels and separate your channels for individual transformation.

  • Vcenter/VSphere/ESX 5.0.0 question: could not download /opt/vmware/www/build/Tenacity.iso for the san-core8 data store. == > Build fails

    I built this different ways now, and I still get this same exact error. I spin as 'Admin' and I have so any available privilege.

    There are no special characters in the password, I tried this file generation and he got away on my computer than this (v-soft bootable with interface).

    Please help me get to the next step, I'm stuck here.

    Everything seems fine until:

    09/10/2013 18:00:25 [info] validation available disk space...
    09/10/2013 18:00:25 [info] prepares the operating system installation files.
    09/10/2013 18:00:25 [info] looking for /opt/vmware/www/ISV/ISO/CentOS-6.4-x86_64-bin-DVD1.iso
    09/10/2013 18:00:25 [info] Validating md5 checksum for /opt/vmware/www/ISV/ISO/CentOS-6.4-x86_64-bin-DVD1.iso (may take a few minutes)
    09/10/2013 18:01:15 [info] verification of repositories of request for the installation of the packages packet...
    09/10/2013 18:01:16 [info] creating package repositories...
    09/10/2013 18:01:16 [info] create the virtual machine model.
    09/10/2013 18:01:17 [info] VM carrying from the Studio to the host configuration. This may take a few minutes...
    09/10/2013 18:02:20 [warn] cannot download /opt/vmware/www/build/Tenacity.1/Tenacity.1_provstart.iso for the s-core9 data store.
    09/10/2013 18:02:20 [warn]
    %3 %7% 11% 15% 19% 23% 26% 30% 34% 38% 42 failure: (22, ' the requested URL returned error: 401')
    09/10/2013 18:02:20 [error] met a unrecoverable build error!

    I am able to use this model for Centos on my computer actually install and build a paralytic with centos on that - unfortunately I do a

    hacks to make it work properly and I cannot get it to install other real applications (perhaps there is a new version for workstation 10?)

    So I went to vsphere, and I KNOW my generation model is ok, at least to get the installed operating system.

    What information can I give you or what can I try, thanks!

    Is it really "sort of" loading ie 42% or which is a total failure?

    OK, I have a build that WORKED, now I see what you mean about watching build/deploy the VM guest.

    Here is the solution to my problem: our vcenter uses names with spaces, we also use the domain names for our connections. In addition, each admin password was 'special characters', that I've debugged meticulously by ALL of them and much more. Basically, it did not matter that I have "URL" code things, used new tools or edited different scripts to encode things one way or another.

    What finally gave us successes was to go to a 'clean' Vcenter implementation that

    (a) use/did not require a domain name (not / credentials)

    (b) all had the "BACK original' legal names, IE no spaces, no special characters, etc..

    (c) the passwords contained NO "special characters".

    (because I changed this way, 'URL' encoding didn't work, tried it)

    Moral of the story: building a new, simply configured Vcenter or get one and use it.

    (Note: I even downloaded a new ovftool and tried every way that I could but it did not success)

  • Treo 755 p and Windows - HotSync jumps calendar and Agenda - "Conduit DateCond.dll: no link found for the Creator ID 'date'." Conduit did not run. »

    I've owned a 755 p for almost a year now. For much of this time, my hotsyncs were jumping the Calendar/Contacts and calendar apps. These two work very well on the Palm Desktop and on the Treo itself. I checked the unit and the palm Desktop for corrupt files. There are not. When I was with Palm Desktop 4 (before 6 is available for XP), the lines were always listed as disabled. I could help and do a hotsync, but no data has been synchronized and would return to being disabled. If I tried to set it as enabled by default, the Hotsync application would break! So, I've lived with this absurd situation for 6 months now. Finally, I tried upgrading to Palm Desktop 6.2 and had no problem, but the problem persists. HotSync on the desktop PC simply ignores these lines entirely, even if it does not display error messages after a sync. The lines are listed as enabled.

    I made a full backup and then uninstalled Palm Desktop 6.2 completely. Restarted and re-installed Palm Desktop 6.2 and tried to sync again. The problem persists.

    My next step (and where I am now) would allow to debug and documented in the Hotsync application logging. Once I did, I discovered the specific problem, which apparently is entirely hidden from the end user. Here are the specific journal entries:

    Led DateCond.dll: No association is found for the Creator ID "date." Conduit does not run.

    Led DateCond.dll: No association is found for the Creator ID "SNLT". Conduit does not run.

    Led AddrCond.dll: No association is found for the Creator ID 'addr '. Conduit does not run.

    Led AddrCond.dll: No association is found for the Creator ID "PAdd". Conduit does not run.

    I was not able to find something on the Internet about these errors. Nothing on the Palm site, nothing in these forums. I checked the database files are indeed on the handheld and have good creator ID. I don't understand how a complete re-installation of software still leaves it with a kind of missing association. But clearly there is something that lack prevents Hotsync to understand exactly what it is supposed to do here.

    I can't just wipe my machine and start over. I have a lot of contacts and calendar on the device entries that are not on my PC and vice versa. Find and fix all those differences manually would be months of work with my limited free time. So if anyone has any suggestions on how to solve this problem, please let me know. And no, I'm not going to waste time calling support Palm. I gave up on the phone with Palm years ago support.

    It's part of the problem. You might want to hard reset the device, and then rename the folder to BACKUP on the PC. (CProgram Files/Palm or Palmone / * Hotsync username * / Backup.) Change to the old files then synchronize with your existing username.

    Message relates to: None

  • A loop in a refcursor for the list of dates as a string

    Hello
    I have a simple procedure that gives me the list of dates and dates
    I need to get the dates dates separated by commas
    I don't know if this can be done directly by making a loop on the refcursor or I have to go pick her up in a file/table and then concatenate with comma, or is there anything else that can be done.
    I tried some stuff like below

    PS help out me
    the procedure is that returns the list of dates
    CREATE OR REPLACE procedure SALUSER.prm_sp_rpt_payslip_lop_dates(p_empid in int,p_tran_year in int,p_tran_month in integer,o_dates out sys_refcursor)
    as
    begin
     open o_dates for select  to_char(PHL_LOP_FROM,'DD-Mon-YYYY'),to_char(PHL_LOP_TO,'DD-Mon-yyyy') 
                     from prm_h_lop
                     where phl_emp_id=p_empid
                       and phl_tran_year=p_tran_year
                       and phl_Tran_month=p_tran_month;
    
                   
     end;
    /
    I need my o/p as
    dates :<date1>,<date2>...etc
    Kind regards

    Maybe sth. as

    SQL>  var cur refcursor
    
    SQL>  declare
     cr sys_refcursor;
     procedure prm_sp_rpt_payslip_lop_dates (cr in out sys_refcursor)
     as
     begin
       open cr for select hiredate from emp;
     end prm_sp_rpt_payslip_lop_dates;
    begin
     prm_sp_rpt_payslip_lop_dates(cr);
     open :cur for select 'Dates: ' || column_value dates from xmltable('string-join(//text(), ", ")' passing xmltype(cr));
    end;
    /
    PL/SQL procedure successfully completed.
    
    SQL>  print cur
    
    DATES
    --------------------------------------------------------------------------------
    Dates: 17-Dec-1980, 20-Feb-1981, 22-Feb-1981, 02-Apr-1981, 28-Sep-1981, 01-May-1
    981, 09-Jun-1981, 19-Apr-1987, 17-Nov-1981, 08-Sep-1981, 23-May-1987, 03-Dec-198
    1, 03-Dec-1981, 23-Jan-1982                                                     
    
    1 row selected.
    

Maybe you are looking for