Shading + fields RoundingText

Does anyone have any info/code/tutorial on how to shade text fields as in the attached picture?

I will probably also need help to make the text field prepared for corners too.

Thanks in advance!

Classes of border and background should do it for you.  Looking for examples of this.

Also get the source for the sample to Dev17 and Dev18 of DevCon 2010.  Search the Forum, I posted some links elsewhere.

Tags: BlackBerry Developers

Similar Questions

  • Transform - Rotation 3D shaded fields?

    Hi people,

    I have a clip, and need to rotate 3D 180 on it, however when I select and go to transfrom - Rotation 3D, the value fields are grayed. What I'm doing wrong here?

    Kind regards

    Boxing boom

    1. you click on the 3d rotation tool and then click on your movieclip?  If so, show a screenshot of the movieclip selected 3d.

  • Fields not shaded by default

    At a time given in the past, I made a PDF form and fields were shaded a blue color, so a user could see where are the entry fields.

    I use now on Windows 10 Adobe Acrobat Pro DC version 2015 and the fields are by default not be shaded. I tried to use the properties box to shade the fields with the option to be visible but not printing, but which also translates the text entered either do not print.

    How can I get the default shaded fields which don't print but leave the text entered them to print?

    Thanks for your help.

    The shading is due to a setting of the user preference, not a property of the fields. THUS, if a user chooses to turn the field highlighting, the fields will be shading. The parameter preferably can be found here: Edit > preferences > forms > highlight color > see fields hover border color

    even if the description does not match the effect.

    You can control this setting via JavaScript, if your form could be put in place to enable syntax highlighting and game to return to its original position when it closes, or prompt the user to be running.

    Earlier versions of Acrobat/Reader included a button in the status bar of the document (purple or green) which displayed/hidden field highlighting.

  • Text fields - change shading from text entry?

    How do I set a default value for the text field empty to gray shading and then have the shading change transparent (no color) if the user enters any text?  Is this possible?

    Hello

    Well, press the last!

    Select the textfield (s) and in the page layout palette, set ALL margins to 0.000 in.

    To compensate for move them from the paragraph palette and set the left and right margins to 1 mm (or 1.5 mm). You can enter values in mm and LC Designer will convert units (probably in).

    Then, in the object > palette field to ensure that the filling is a light gray and the border, a black line.

    It should work!

    Good luck

    Niall

  • Custom button field has two tops?

    I am trying to create a field of custom button so that I can have two lines of text - but I'm getting a second top so say (a second box with the shading/etc that has the top of a field of button).

    Here's a screenshot of it

    The bottom button is just a normal button.

    Field of custom button code:

    package com.smartmech.bb;
    
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.component.ButtonField;
    
    public class _customButtonField extends ButtonField {
            private int setWidth;
            private int setHeight;
            private boolean disabled = false;
            private String lblTxt1;
            private String lblTxt2 = "";
    
            _customButtonField( String text, int Width, int Height, long setStyle) {
                super(text, setStyle);
                setWidth = Width;
                setHeight = Height;
                lblTxt1 = text;
            } //customButtonField
    
            _customButtonField( String text, String text2, int Width, int Height, long setStyle) {
                super("",setStyle);
                setWidth = Width;
                setHeight = Height;
                lblTxt1 = text;
                lblTxt2 = text2;
            } //customButtonField
    
            public int getPreferredWidth() {
                return setWidth;
            } //getPreferredWidth
    
            public int getPreferredHeight() {
                return setHeight;
            } //getPreferredWidth
    
            public boolean isFocusable() {
                if(disabled)
                    return false;
                return true;
            } //isFocusable
    
            public void disable() {
                disabled=true;
                super.setVisualState(ButtonField.VISUAL_STATE_DISABLED);
            } //disable
    
            public void enable() {
                disabled=false;
                super.setVisualState(ButtonField.VISUAL_STATE_NORMAL);
            } //enable
    
            protected void layout(int width, int height) {  
    
                String platform = net.rim.device.api.system.DeviceInfo.getPlatformVersion();
    
                if (platform.substring(0,1).equals("5")) {
                    setExtent(setWidth, setHeight); //works in v5
                }
                else if (platform.substring(0,1).equals("6")) {
                    super.layout(setWidth, setHeight);
                    //setExtent(setWidth, setHeight);
                }
    
            } //layout
    
            protected void paint(Graphics g){
    
                super.paint(g);
    
                if (lblTxt2 != "") {
    
                    int myY = getPreferredHeight() / 2;
                    int myX = 0;
    
                    int myFH = g.getFont().getHeight();
                    if (myFH * 2 > getPreferredHeight()) {
                        myY = getPreferredHeight() - myFH;
                    }
                    myX = (getPreferredWidth() - g.getFont().getBounds(lblTxt1)) / 2;
                    g.drawText(lblTxt1, myX,0,0,this.getWidth());
    
                    myX = (getPreferredWidth() - g.getFont().getBounds(lblTxt2)) / 2;
                    g.drawText(lblTxt2, myX,myY,0,this.getWidth());
    
                } //lblTxt2 not blank
    
            } //paint
    
    } //customButtonField
    

    And call it:

    _customButtonField summaryBtn = new _customButtonField("Location", "Summary", btnWidth, btnHeight, ButtonField.CONSUME_CLICK);
     summaryBtn.setFont(mainFont);
    

    Any ideas as to why this is happening?

    Greetings.

    I agree with simon. And that's because you're going to have to completely override the paint method to reach your goal.

    Try stretching the field and drawing and layout of all within your class.

  • Hello!  I have created a fillable pdf file.  When I send the completed forms and try to open on my Iphone, I don't see the filled in information.  I don't see empty shaded areas.  I have Adobe Reader on my Iphone.

    Hello!  I have created a fillable pdf file.  When I send the completed forms and try to open on my Iphone, I don't see the filled in information.  I don't see empty shaded areas.  I have Adobe Reader on my Iphone.  Should I have a different program?  Am I missing a step of creation / fill in the form to fill out?  Thank you!

    Hi Carol,.

    Thanks for sharing your PDF form with us!

    I opened the attachment PDF in Apple Mail, used the iOS feature "open in" (or "copy in") to open it in Acrobat Reader for iOS and filled in one of the text fields. I found no problems with your PDF form.

    What is the version of Acrobat Reader for iOS that you have on your iPhone?

    Could you pass a glance "Open of Mail" section in the following FAQ document once again to make sure that you open a PDF document in Acrobat Reader for iOS (not in other Apple iOS applications)?

    How to open PDF documents in Adobe Acrobat DC for iOS (iPhone version)

    Please let us know what you find.

    Thank you.

  • Form entry fields are not displayed correctly in APP

    Fields of form, created as a result of Adobe Office, do not display as specified but shaded WHITE. Is there a solution / Fix for this?

    Hello

    Can you please give more information about your problem?

    , You open a PDF form in a mobile application of Reader (Acrobat Reader for iOS) or Android?

    By "shadow", do you mean that the fields in the form have field highlighting like that?

    Acrobat Reader for desktop and mobile apps highlight form fields in a light blue to indicate that they are "to be completed.

    The domain highlighting feature is enabled by default.  It is not possible to disable it in the player of the mobile applications.

    Please let us know if you have another problem with your PDF form.

  • Text field - fill color

    I develop a form with a drop-down list and several text fields. Based on the user select on the drop down, other fields will change as mandatory or read-only

    To improve ease of use, I want to grey out those not required / only fields in reading.

    I'm doing it with the following script:

    this.resolveNode("textField1").fillColor = "195,195,195";

    However, legend and input area are gray out.

    Is there any script which will be gray on the box only?

    Hey Elvis Giff,

    Stefan cameron shared some good examples on this.

    http://Forms.stefcameron.com/2008/06/13/shading-the-caption-not-the-entire-field/

    http://Forms.stefcameron.com/2008/03/14/field-background-color-fill/

    Kind regards

    Rous

  • Fields to fill blue gradient

    I can remove the shading on the fields to fill in, save the change, but when other users open the file, the field is still blue. I do not want the blue gradient fields when the user opens the file. How can I solve this problem? I use Adobe Reader X and Adobe Pro X, edit > Preferences > forms > active highlight color / turns off the color on or off. The change affects my forms but not the view of the user of the same form.

    Glad I could help.

    Make sure that you mark the correct answer.

    Thank you.

    Kyle

  • How to check the existence of field in a chain at the level of the header?

    Hello


    I have a bunch of fields on my_form, just for example here in this announcement I'm on U.S. State names, say for example.

    I have 3 domains, their names are as below

    1) NY,

    2) CA,

    (3) TX

    I placed a hidden his name, a text field is FGL (I mean, the gray field list), uses this GFL for my purpose of programming

    Since the back-end (in our case, its an ERP - SAP) am filling/filling this field GFL, say for example... its data looks like, CA TX (I mean, am concatenating the names of State with a separation of a space)

    (FYI... I already have some piece of JS in my_form INITIALIZATION and for certain other purposes docReady event)

    Now my requirement is as below,

     

    (1) LOOP all objects domain (here they are like state names) of my_form, then check if their name (NY) existing data of GFL... If exisitng (in our case, its not existing) pls shaded with readOnly... If not existing

    (in our case, its not existing) pass the coloring and readOnly, go to the next loop / iteration / state / field

    Actually, I can achieve my requirement by putting the JS in initialization event each object field as mmee below, (but I have about 200 fields in my_form, that's why I want to put all the field objects of my_form in one piece of code at the level of the header in a generic way in loop),

    var myStateName = / NY /;

    var returnValue = GFL.search (myStateName);

    If (returnValue! = - 1) {;} / / This state/field/object is found in the list of fields of gray, so dimmed with readOnly

    this.ui.oneOfChild.border.fill.color.value = "192,192,192."

    This.Access = "readOnly";


    };

    For certain other requirements, one of the experts provided below JS in these forums, as below

    function findNodes (vNode) {}

    If (vNode.className = 'field') {}

    If (vNode.isPropertySpecified ("name") = true) {}

    If (.search(/_U$/g) vNode.getAttribute ('name')! ==-1) {}

    / / Script to run, when a match is found

    ...

    }

    }

    }

    for (var i = 0; i < vNode.nodes.length; i += 1) {}

    findNodes (vNode.nodes.item (i));

    }

    }

    findNodes (xfa.form);

    In fact, I tried to change the JS above according to my needs, but its does not work, please provide me with the correct JS according to my requirement.

    Thank you

    Try this:

    function findNodes (vNode) {}

    If (vNode.className = 'field') {}

    If (vNode.isPropertySpecified ("name") = true) {}

    var myStateName = new RegExp (vNode.name);

    var returnValue = GFL.search (myStateName);

    If (returnValue! =-1) {}

    this.ui.oneOfChild.border.fill.color.value = "192,192,192";

    This.Access = "ReadOnly";

    }

    else {}

    this.ui.oneOfChild.border.fill.color.value="255,255,255";//whatever color is free access

    This.Access = "Open";

    }

    }

    }

    for (var a = 0;<>

    findNodes (vNode.nodes.item (a));

    }

    }

    findNodes (xfa.form);

    Kyle

  • Shows field on the form, print only the content

    How can I get the field to display in the form, but does not print the background shading of box or field - only prints the user filled in the content.

    Thank you

    MDawn50

    Hello

    You must have the script in the pre-press and postPrint events in each field that has a background fill color. Alternatively, you can set up a loop to go through all the object and change the background color, but it's a little more complicated. Try this first.

    Pre-publication:

    VNAME var = this.somExpression;
    var fieldObj = xfa.resolveNode (VNAME + "#textEdit.border.fill.color .ui.");

    fieldObj.value = "255,255,255";

    / * Check the type of object and change the .ui reference:

    Field date = #dateTimeEdit
    DropDown = #choiceList
    CheckBox = #checkButton
    Text field = #textEdit
    Digital field = #numericEdit

    */

    postPrint:

    VNAME var = this.somExpression;
    var fieldObj = xfa.resolveNode (VNAME + "#textEdit.border.fill.color .ui.");

    fieldObj.value = "225,255,225"; the original RGB of the object

    / * Check the type of object and change the .ui reference:

    Field date = #dateTimeEdit
    DropDown = #choiceList
    CheckBox = #checkButton
    Text field = #textEdit
    Digital field = #numericEdit

    */

    You will need to change the .ui reference according to the object type. For example, the script above is to a textField.

    Good luck

    Niall

  • Missing bookmarks in the smart search field in Safari

    Since the release of El Capitan 10.11.6, favorites are missing from the smart search field in Safari to new Windows.  If a Safari any page web (so far), clicking in the search box if poster is Favorites to view icons, as is expected.

    Is this a bug, or can I make some adjustments to bring them new windows?

    Thank you!

    Dick

    Hello Dick Huitema.

    If I understand your message to the right, when you open a new window in Safari, you do not see your favorite icons in the smart search field.  When I use Safari, I always like to have my favorites available and ready to use, so I can understand why you would be tender for assistance with this.

    You probably feel that if Safari is set to open new windows in an empty page. If yours is configured in this way, there is a very easy way to get these favorites icons to show without actually changing any settings. When you open a Web page, you should see a blank webpage with your top search bar and a cursor blinking in the search bar. Instead click inside the search bar right away, click anywhere on the empty Web page and then click on in the empty search bar. You should then see your Favorites icons appear.

    Another option is to set your homepage to your Favorites. You can do it in Safari > Preferences. On the general tab in Safari preferences, select the drop-down menu next to "new windows open with", and then choose favorite. This should ensure that when you open new web pages, all your Favorites icons show immediately. Favorites icons always appear in the smart search field when additional tabs are open as well.

    Here are a couple of really helpfuls articles on Safari Favorites and search options:

    Safari for Mac: Safari search options

    Safari for Mac: see the Safari Favorites page

    Thank you for using communities of Apple Support.

    Take care

  • How to get back to 3 text fields in the footer

    When you open a new document pages, the footer contains three default text fields.  I have a document where I removed somehow 2 3 fields foot leaving only 1. I would like to add the other 2 fields in the footer, but I am unable to find a setting that would let me. My search terms are apparently useless because I can't find any thread on point in a search. Any ideas?

    You can not remove the tripartite fields in a header or a footer. If you visit the view menu: display invisible characters, you will probably discover tabs or spaces that forced each cell to the right in your footer. Just remove these external characteristics and you will restore the three cells to your footer.

  • iPhone 7 more depth of field for soon?

    The State of 7 and an iPhone sheet has the high depth of field but 'coming soon' did mean that I should wait to buy the phone or it will come with an upgrade later?

    It will come as a software update. Everything you need is in place on the iPhone Plus 7 buy it whenever you want.

  • I did the most recent iOS 10 updated, just heard on the news that Yahoo has been hacked.  I changed my Yahoo email but can't find the field to change on my devices.  It is simply not there, what is happening?

    I did the most recent iOS 10 updated, just heard on the news that Yahoo has been hacked.  I changed my password to Yahoo mail but can't find the field to change the password on my devices.  It is simply not there, what is happening?

    For some reason any change automatically if change you it online. Today, I changed my password through my office and I went to change the mail and she had already changed.

    You can try to delete your account your unit off and add it again.

Maybe you are looking for

  • HP presario cq56: CQ56 Wifi won't turn on no matter what.

    Today I have re-installed winsows 7 starter 32 bit on my hp presario cq56 and everything goes smoothly.All video/sound/lan drivers go perfectly. BUT when its time to install things driver WLAN/WiFi to the South.Nothing works. I downloaded all the dri

  • WindowsUpdate_80244018""WindowsUpdate_dt000"

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: You have problems with programs Error messagesWindowsUpdate_80244018""WindowsUpdate_dt000" Recent changes to your computer What you have

  • U330 DVD recordable media types

    What types of media are accepted for the double disc layer recordable DVD in my new Ideapad U330?  JJP

  • Computer won't wake from sleep after installing the update July 2013

    Original title: a reason any after July 2013 windows update mode "sleep" freeze my computer Before I wake up problems due to incompatibility with windows 7 and SATA Hard drives (WD). This problem has been fixed with Windows Update August 2012.  Just

  • To fix the blue screen please help me.

    My computer has randomly several times projected blue. I have the error code but don't know how to fix what's wrong. Help please?   Error: 0x0000001E (0xFFFFFFFFC000000, 0x000000007EFA00001, 0xFFFFF8000306266B, 0 x 0000000000000000)