Question EditField and border
Hello!
I had a problem of design. I did something I thought I would work, but I think that I am so close to get it. I have 2 is the image I updated my EditField as boder when unfocus the image has a WHITE background and what door another color. I have a few lines in unfocus and the development of the code field method and I put the border with these images. But when I run on the Simulator, the field has a white rectangle inside. So, I added a few lines and I put a background color when the field is developed. But I got something like that.
Unfocus:
Focus:
How can I erase this white part? or maybe is there something I have missed?
I hope you help me!
Concerning
Hello! Thanks for your review!
Well, I create a custom EditField and here is a part of the code:
private int mHColor = -1; public void setHightlightColor(int color) { mHColor = color; } protected void onFocus(int direction) { invalidate(); setBorder(BorderFactory.createBitmapBorder(new XYEdges(4, 7, 4, 7),Bitmap.getBitmapResource("img/box.png"))); } protected void onUnfocus() { invalidate(); setBorder(BorderFactory.createBitmapBorder(new XYEdges(4, 7, 4, 7),Bitmap.getBitmapResource("img/boxu.png"))); } public void paint(Graphics g) { if (-1 != mHColor && getManager().isFocus()) { g.setBackgroundColor(mHColor); g.clear(); } int prevColor = g.getColor(); g.setColor(prevColor); g.clear(); g.setGlobalAlpha(200); super.paint(g); }
And in my screen, I called like this:
_inputField.setHightlightColor(0xFFFFBD);/// FFE9AF _inputField.setBorder(BorderFactory.createBitmapBorder(new XYEdges(4, 7, 4, 7),Bitmap.getBitmapResource("img/boxu.png")));
You see how I use a bitmapborder. I create 2 images: one with white background and one with yellow background.
I hope you can help me!
Kind regards.
PS: I use 4.6.0 SDK
Tags: BlackBerry Developers
Similar Questions
-
I've forgotten the answer to my security questions. And now it's blok
I've forgotten the answer to my security question. And now I can go in real life.
Note that there are links in this article, where you can contact Apple > If you forgot your Apple ID - Apple Support security questions answered
-
I forgot my secret question, answer and the second email but I have the password of my ID Apple and my phone number. I want to receive by email for my secret to my Apple ID issue because it is a gmail account. Please help me
You have to ask Apple to reset your security questions. To do this, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.
(139026) -
I forgot my security question answers and my email resue has a mistaket
I forgot my security question answers and my email resue has a mistaket
You have to ask Apple to reset your security questions. To do this, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.
(137726)
-
Excel color and border VI: no fill?
If I use Excel color and border VI to change the format of a cell, I will get my default color to white for my cell phone. However, I'm looking for no fill. I don't want any color, since the color helps to hide the line of the grid. I have not get the fill for the cell color option in LabVIEW?
I got it. I just need to change the function by adding the pattern property and set it on-4142, which is not filling.
-
NI_Excel.Ivclass:Excel the color of cell and Border.vi error value
Hello
I tried to compile a file and I kept getting an error. He zeroed in on the vi who had not. I enclose the vi to this message. The vi seems to be broken. And I don't know how to solve this problem. Can someone please help me with this. Thanks in advance.
I guess that's associated with Report Generation Toolkit. Please let me know if you need more details.
This is the error message "one or more of the inputs needed for this function are not wired or are wired incorrectly. Display the context-sensitive Help window to see what should be the connections to this function. »
Concerning
Mr Miagi
Please do a search.
-
get the e french instead of the question mark or frame them
Emailing to my question mark and supervise the work on the first, then the small e accent when arrives to her frame them and the capital E with the accent comes for the question mark. Can you tell me what is the cause and how to fix it. Thank you.Hello
I suggest you according to the question in this forum and check if that helps:
http://windowslivehelp.com/forums.aspx?ProductID=15
It will be useful.
-
I asked a question? and I'm not.
I asked a question? and I'm not.
Lucy
You can click on your username in the upper right corner, and it will take you to your profile page where are all your questions (and everything else).
http://answers.Microsoft.com/en-us/profile/02cee6c7-D2C2-4387-adf3-5c19df6c6905 It is also your profile page
-
I asked a question yesterday and cannot find it.please help
I asked a question yesterday and can't find it.
Hi Jennifer,.
For the future, just click on the name at the top right of the screen to go to your profile and then page you click the Questions tab. All the questions you ever wondered are there and you can then select the one you want and click on it to go.
Best wishes!
Kosh
-
Place aligned EditField and BitmapField on PopupScreen
Hello guys '
I want to place aligned EditField and BitmapField on PopupScree. But I can't place these 2 fields.
I used HorizontalFieldManager and VerticalFieldManager of the place. It does not work.
HorizontalFieldManager hmanager = new HorizontalFieldManager(); VerticalFieldManager vmanagerRight = new VerticalFieldManager(); VerticalFieldManager vmanagerLeft = new VerticalFieldManager(); statusLabel = new LabelField(); direction = new Bitmap(15, 15); directionBitmap = new BitmapField(direction); vmanagerLeft.add(directionBitmap); vmanagerRight.add(statusLabel); hmanager.add(vmanagerLeft); hmanager.add(vmanagerRight); progressPopup = new PopupScreen(hmanager); ...
What solution is the best?
Tnx guys
What you see? The fields appearing at all or are they not be presented as you wish?
-
How to stop the title bar and border of blinking/flashing in Windows 8 Pro?
Regardless of what is or is not running. A (desktop) application or a program/process of Windows (File Explorer) and it is just down right annoying when watching TV in Media Center. If the 'window' is not full screen or reduced to a minimum and some downtime on the keyboard or the mouse is detected the 'top' window title bar and border blink and get progressively faster and more annoying. This is the top of the window. Why must he beg for attention? And how it stop! In addition, and I'm not sure that this is relevant, but the mouse pointer has a circle flashing next to her all the time. A judgment that would be nice too.
I think I found a solution to this title bar and border blinks problem. I have a same problem and experienced looking in msconfig, click on the service tab and hide Microsoft. I would try disabling the brand of computer like HP, Dell, Toshiba, etc. I did for my HP laptop and disable its manufacturer, then restart, and the title bar and border do not Flash. We hope that the work plan.
-
Text field: Add the fill and border color to the text field
Why I can not get my fields to be filled with a color or a colored border?
This is my first form and it is quite complex, with formulas math etc, (which is great!) but I am wrestlingin this last two text fields little I want to stand out from the rest of the form, because they
are the boxes, Submit and Reset.
If you get a color picker when you try to set the background and border colors, make sure that the check-box Transparent is not checked. If it isn't her, can you describe exactly how you are trying to change the colors?
-
I have a subscription valid and active Leica camera.
How can I get Adobe to recognize? My creative cloud has expired. I'm frozen out of my photo library
Using the redemption code Leica I downloaded successfully updated day to day LR 6 but my LR library for 2015 and beyond now has a question mark, and I can't open the images.
Any suggestions?
Is this something that Adobe has to rectify?
Thank you
John
The question mark has nothing to do with your subscription at the end. The question mark on your records indicates that Lightroom cannot find the photos, because they have been moved or renamed, or delete outside of Lightroom. The instructions to fix it are: Adobe Lightroom - find folders and files moved or missing
-
Hello community,
I have a following question design and update on vSphere 6 with MRS.
In out of our subsidiaries, we have configured following installation:-VMware vSphere 5.5 environment with Site Recovery Manager that runs on 5.8 installed U3.
-Two vCenter server running in a configuration in linked mode, so you only need access to a vCenter server to see both sides.No, we want to upgrade to vSphere 6 and here I have some question how says it in the best conditions.
Wouldn't be a good thing or maybe it's mandatory to have a service of external platform controller installed in the vSphere environment and then start the upgrade to vSphere 6 each side has its 'own' PSC.Thanks for some tips and training on your side.
Did you read the documentation regarding the upgrade to SRM 6 located here: Site Recovery Manager 6.0 Documentation Center
Who will answer all you questions, including your subject to PSC. A short summary, you want a PSC for each site. The reason is that you want that each site to be completely independent of the other.
If read you the docs and you still have questions, please post them.
-
First, I'm joining the forum with a question CS4 and CS5 Suite for Mac. Can someone tell me why it is NOT a place to submit a question as it is here?
Creative Suites Mac forum seems to be closed, so moved that Creative Suites Windows the Forum of Creative Suites "base".
Then... Post your question and someone may be able to help... is your question about the installation of the old software on a new Mac?
IF El Capitan Mac read below
CS6 and previous programs have not been tested and will not be updated to run on Mac El Capitan
-which means you are trying to use CS6 and earlier at YOUR risk of having problems
-You can get CS6 and previous programs to install and run, or you can not (some do, some don't)
-IF not, Details of the message from the error messages and a person may be able to help (just not Adobe)
This information is a MUST to install old programs on Mac El Capitan
-You can't get the same error message, but here are some links that CAN help with old programs
-Java https://helpx.adobe.com/dreamweaver/kb/dreamweaver-java-se-6-runtime.html can help
Install CS5 on Mac 10.11 https://forums.adobe.com/thread/2003455 can help (also for others than CS5)
-also a TEMPORARY security change https://forums.adobe.com/thread/2039319
-the guardian https://support.apple.com/en-au/HT202491
Maybe you are looking for
-
Need drivers of Windows XP Home for Satellite L30
Hello I was wondering if someone could help me. I bought a Toshiba Satellite L30 - 10V recently which came with Vista installed and ran incredibly slow. I installed a version of XP on it. Could someone provide me with the XP drivers for this laptop o
-
Hello, please I have a new Canon 70 d and I am a user of semi-professional hobby. Could you please recommend me a Macro lens to buy? Don't want the most expensive/professional but has some great ideas to create great photos of some insects and flower
-
Taste versehentlich einen (Acer Aspire VN7)
ICH habe heute eine aus dem Acer Aspire VN7 einen taste. Nun Habe ich das problem dass ich sie nicht wieder reinbekomme. Konnte mir bitte someone tell wie ich die einbaue taste? Um Hilfe, ich ware really very thankful.
-
We have two ACS 5.2. could put us primary ACS to secondary AEC in large office and AC (they connect to WAN)? So in this case, we have still the wan between HQ and branch primary failure or failure to use ACS for authentication in branch Thank you Duy
-
Conference CME v9 SLBA Adhoc (more than 3 games) for SIP phones 99xx
HI, does anyone know if MultiPary Adhoc Conference for more than 3 parties for SIP phones (like 9951) is supported in CME v9? I have a GUY working with CSPC and SIP phones. Conference to several ad-hoc (with more than 3 parties) works perfectly when