Custom field highlighting the problem

Hello

I have a custom field class that extends the field.  the custom class allows me to put a photo inside the field.  The problem I have is when I give him a click event, it accentuates not.

I overrided onUnfocus() drawFocus() onFocus() and object;

I tried to use super.drawFocus () inside the drawFocus(), tried to use drawHighlightRegion with HIGHLIGHT_SELECT and HIGHLIGHT_FOCUS but no luck.

Anyone know what I need to do to give hightlight when the user touches the screen, or click?

OK, so as I said in the previous post, you can paint the blue highlight, but your bitmap image will then paint over clear tones.

So that the nail is visible, you must set a fill around the bitmap. In other works, the measurement of field must be slightly larger than the size of the bitmap.

You the best solution would have been to extend BitmapField (rather than field) and use the setSpace() method to set some padding.

Otherwise, you will need to adjust the measurement of field in your replacement of subLayout().

Tags: BlackBerry Developers

Similar Questions

  • Problem in designing a custom field for the display of paragraph

    Hello

    I need to develop a custom field that is supposed to act as a RichTextField with the additional of the hyperlink feature as seen in the web pages. I have a few paragraphs of text with an id associated with each of them. A paragraph may have link to another paragraph. I think that the hyperlink is actually like a button.

    My screen will consist of a single paragraph. If any hyperlink (id) in this paragraph is preesed then the screen reloads with another paragraph (id in a hurry).

    My problem is to develop a custom field for the display of this paragraph.

    Point: several lines of text without interruption. Some of the text may be bold, italic. a text can be the hyperlink.

    Now I'm stuck. I have no ideas how I can start with. Can someone give me please suggestions as to how I can start with?

    Thanks in advance

    Bika

    I have a different Suggestion.

    If you are using an ActiveRichTextField, you get two things:

    (1) the ability to shape a field using different fonts:

    Comment - formatting text in a RichTextField
    Article number: DB-00124
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800345/...

    (2) the ability to create "links" automatically using string models

    How to-to comparison models in the BlackBerry smartphone to provide a user experience integrated applications
    Article number: DB-00525
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    Using models of string, I think you'd be able to create ' hot-link in your text, which the run Menu item was able to process you want.

    Just an idea.  Hope this works for you.

  • Non editable field change to highlight the problem

    Hi all

    I have an edit non editable field in my screen. In order to make the difference between editable and non editable field, I put the bottom of the field cannot be changed to light gray as in the code below:

       Border nonEditableBorder=BorderFactory.createRoundedBorder(new XYEdges(5, 5, 5, 5),Color.LIGHTGRAY,Border.STYLE_FILLED|Border.STYLE_TRANSPARENT);
    EditField textField=new EditField(EditField.NO_NEWLINE|EditField.FOCUSABLE|DrawStyle.RIGHT);
    textField.setBorder(nonEditableBorder);
    

    Now the field cannot be changed when I scroll the wheel to the right or left the text gets highlighted in white as shown in the image below:

    I don't want the text to highlight. Can anyone help me please with this. Thanks in advance.

    Kind regards

    S.A.Norton Stanley

    Hello

    Thank you. Overridding method drawFocus() and nothing doing, emphasis has been disabled on the fields and the white highlight was not. But once I reached the first or the last field of the white selection screen gets drawn again.  But the border I also assign the background of the field edit as shown below, and this solved my problem.

    Background bgNonEditable = BackgroundFactory.createSolidBackground(Color.LIGHTGRAY);
    textField.setBackground(bgNonEditable);
    
  • Customizing fields using the BC & DW form builder

    I've created a form, "pre-order" as follows:

    1. CRM > extend CRM database, where I created the CRM data fields
    2. Web Forms > Add Web form > I added the form default CRM 'contacts' fields in the form BC Builder
    3. I then downloaded the form using DW and customize the fields; example: changed "at home" to "delivery address", removed the 'cell phone' field, changed "telephony" to "primary phone"...

    After pressing this form dates back to BC, I tested the form and the fields that I had custom data not in the CRM.

    Can someone help me with this problem?

    Thank you

    Catherine

    Thanks for your reply. In fact the form of CRM data works (data capture to CRM). His section of default contact form, where I customized fields that does not work. I now work with my 3rd BC tech on it as I write this response.

  • How to set the custom fields in the form submission email?

    Here's what I mean...

    Here is a screenshot of the form online for my client. Most of these fields are "custom".

    Screen Shot 2015-02-27 at 9.41.50 AM.png

    Here's an email from test of what the email looks like when it come in.

    Screen Shot 2015-02-27 at 9.41.25 AM.png

    As you can see all my custom fields list as just that, custom.

    When a patient fills this out it is difficult to say what it applies to that.

    How do I change these fields that say "customized" to say what really is the field?

    Hello

    It appears that you have disabled the 'label' for each custom field.

    Please select the field and go voluntarily, as shown in the screenshot.

    Please check the 'label' > shoe, this will be you the label to the form field as "Custom", rename it according to your requirement and disable the label again.

    Re-upload the site and you should be all set.

    Concerning

    Vivek

  • Table of contents to highlight the problem

    Hello

    I use RH8.0.2.

    When I click on the text of the hyperlink it navigate to the correct page, but in the content of the table of contents section that appears is not highlighted. Then there's the page where he was selected remains highlighted.

    For example: as in Fig1, if I click on the "TMD PDU" it navigate to the page on the right as in Fig. 2, but fake 'E - UTRA RLC Messages Overview' remains enabled. Ideally in TOC "TDG PDU" page should be highlighted.

    How to solve this problem?

    fig1.jpg

    Fig1

    fig2.jpg

    Thank you and best regards,

    Rahul

    Hi Rahul

    There are a few things you need to check here. I will assume from the images, you create the CHM files.

    First, open the project set-up pod and expand the Windows folder. Change the properties of your CHM window, and then make sure that the option to synchronize the table of contents has been activated.

    Once you've done that, change the properties of single Source available and click the change... button. This should open another dialog box where you must click on the Styles tab OCD make sure you check the option always show selection .

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 times now - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcererStone blog

    RoboHelp EBooks

  • To highlight the problem of update 15.2.1 for Android.

    I was very happy user of Adobe Reader for Android till yesterday. After update to 15.2.1 you ruined my life. I can't emphasize more. I'm trying to just tap tap text and nothing... You will set for me?

    Hello

    This problem has been fixed in our latest update. Could you please update the Adobe Reader application and confirm that it works well for you now?

    Thank you

    Adobe Acrobat team

  • Question regarding setExtent and getPreferredWidth for the custom field

    I am trying to understand the difference between getPreferredWidth and setExtent, which relate to the width of a custom field.

    I create a field that may be greater than the width of the screen. The field is made up of cells (for example columns and lines or cells, such as a table). The cells contain text, shapes, lines, color, etc. When I display the field I only paint the visible columns on the screen and allow the user to use the trackball to accomplish the columns out of the screen.

    At present, getPreferredWidth returns the total width of the field without all the empty columns, is longer than the width of the screen. I use the same value in setExtent for width. GetPreferredWidth must return the size of the field that is painted on the screen - the total width less the width of the columns out of the screen? I have the same question about setExtent - width either in total, longer than the screen width or the width of the part of the field that is painted on the screen?

    If I use the width of what is painted on the screen or the other of these methods, then the width changes when the user scrolls through the field. As the user scrolls, I calculate the number of columns will agree to a width of the screen and paint these columns. Is it a problem to have the PreferredWidth and the setExtent change width? I read that setExtent is called only when the Manager sets this field, so that the changes will not be recognized.

    It seems to work in two ways in a few simple tests, but I was just curious as the value of width that is right.

    Thank you!

    Mark

    When a field has changed in a way that requires the update of the screen (for example, after scrolling offset changes), simply call invalidate() from this area. That will eventually lead to paint (Graphics) for the field. At this point, you return the update field. (If only part of a field - as a single cell - needs to be updated, there invalidate() versions that accept arguments where, for efficiency, you can limit the update for just this part.)

    If I understand your needs, you can achieve the effect desired in the paint method. You can use the current dimensions of the field, the cutting of the graphics area, and your internal roll compensates to decide what to paint and what to delete. Let your custom field leave white space where you decide of doesn't make is not part of a cell. There is no need to change the scope of the field.

    If you go about it by changing the dimensions of the field, and then you ask the system to play much more work he has to do. If the custom field is the only field on the screen, it won't make much difference in the behavior (although there may be performance). With more than one field, it can be weird effects. For example, suppose that your custom field is one of several fields in a HorizontalFieldManager and you change the field width. When the HorizontalFieldManager recalculates its own layout, it will change the horizontal position of the fields to the right. The effect on the user, I think, would be really confusing: as the custom field parade, parties to the right of the screen could bounce left and right as the changed width field. I can't imagine that's what you want.

    Here's another way to think about this: absent some bit of style, your custom field would prefer be exactly wide and high enough to show all without scrolling. So the width and height would be based on adding the appropriate cell widths and heights, regardless of what actually is on the display. (It's also a long time that you do not have something fanciful.) If the optimum height is a function of the width available - as with sheathed on the line of text - you would implement this logic in the layout method. You then have no use for autonomous preferred width and height).

  • Is it possible for 2 or more FxV strike filters to change the same custom field?

    Hello

    is it possible to have 2 (or more) FxV hit update the same custom field filters?  I know that the filters 2 or more successful can update the same metric, but not what I need.

    I have a filter tube set for each stage of a procurement process of several steps (such as beginning, calculateOrder, processPmt).

    In the first filter of success, I have extracted something similar to a username.  That the same info is in the other two hit filters for each step of the process.  If the FxV user performs a search on the 3rd filter, that is processPmt, then in results research they won't see all of the data that in are extracted by the first hit (start) filter.   So I tried to add a custom field to the 3rd hit filters which also extracts the data of the user ID and her add her to the same custom field, but it won't let me because this field is already used.

    ideas?

    THX

    "mark".

    Mark,

    I can be missing what you are trying to do, but you should be able to use a custom field in another filter of success.  You want to ensure that you choose the name already in use, as opposed to the 'new custom field".  So for the update/addition to hit the 'user name' field, you'd like this screenshot.

    You set the condition and choose setting the value to append or reset as you wish.  And then save the filter hit.

    Was what you were trying to do, or something else?

    Jeff

  • Reconciliation of the IOM is not updating after adding custom fields

    In Oracle Identity Manager 11.1.2 with connector

    Connector for Oracle Internet Directory version 11.1.1

    I close the IOM LDAP users, and after I add custom fields for the reconciliation of the target, and I try to update these users with the new event of reconciliation return of custom fields, this new custom fields poster in case page of reconciliation and not in the form user to LDAP.

    I already create the new form with the news of the custom fields associated with the application Instance.

    Solution:

    CVF (form Version Control Utility) comes with IOM that updates the form associated with existing users.

    With the help of the form Version control utility - 11g Release 2 (11.1.2)

    OR


    Update PROCESS_FORM_TABLE set PROCESS_FORM_TABLE_VERSION =(select SDK_ACTIVE_VERSION of the SDK where SDK_NAME = 'PROCESS_FORM_TABLE'); COMMIT; NOTE: Replace PROCESS_FORM_TABLE with process form real that is 'UD_XXX '.

  • using a custom field - noob

    Hello

    I'm quite new to Java programming, I followed some of the guides provided on how to create Blackberry applications, though.  However I followed a pdf document called development, which describes how to create custom controls/fields.  The problem I have is once the class has been created, how to use it?

    I created a class called customButtonField.java, I try to call to create a new field as follows,

    customButtonField customButton = new customButtonField ("click me", "SQUARE", 0);

    The error I get is,

    cannot find symbol

    symbol: method customButtonField (java.lang.String, java.lang.String, int)
    Location: class mainScreenStyleScreen
    customButtonField customButton = new customButtonField ("click me", "SQUARE", 0);
    ^

    It is what is in the customButtonField class

    public customButtonField (label As String, int form, long style) {}
    Super (style);
    _label = label;
    shape _shape =;
    _font = getFont();
    _labelHeight = _font.getHeight ();
    _labelWidth = _font.getAdvance ("_label");
    }

    Any help would be appreciated!

    Hi mabs.

    A problem that I found with your code is that the average parameter set in the CustomButtonField constructor is 'int form'. However, when you call create your new instance with the "new" statement, you pass the value "SQUARE". 'SQUARE' is a string. If you pass a string as a parameter that requires an int.

  • Create a virtual report machine include: Pool of resources with custom fields

    Hello

    I would like to create a VM report that includes the name of the virtual host computer and Discription, as well as the virtual machine Resource Pool belongs too.

    I would also report to query for custom fields, provide the names, values, and to give it in a format that works with export-csv.

    I have a start on the script and it included as an attachment.

    How should I go about adding custom fieldsvalues?

    How can I add the name of the Resource Pool of the report?

    Thank you in advanced for your help.

    Tim

    The problem with the CustomFields, is that I don't know how they are defined on a guest.

    It's a problem when you want to make an Export-Csv thereafter. The cmdlet can handle variable-length items in the table very well.

    That's why I put 1 CustomField in 1 rank.

    $report = @()
    Get-ResourcePool | %{
         $rpName = $_.Name
         $_ | Get-VM | %{
              $vmName = $_.Name
              $_.CustomFields | %{
                   $report += New-Object PSObject -Property @{
                        ResPool = $rpName
                        VM = $vmName
                        CustomName = $_.Key
                        CustomValue = $_.Value
                   }
              }
         }
    }
    $report | Export-Csv "C:\report.csv" -NoTypeInformation -UseCulture
    

    BTW, the Export-Csv cmdlet is a standard cmdlet. Has nothing to do with Dmitri.

    Note that the script in this format requires PowerShell v2 RTM

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Update custom fields in VC without using Get - VM

    Greetings-

    I am trying to determine a way to update a custom field in Virtual Center via powershell without using Get - VM.  I am able to extract custom using Get-View fields

    $VMView = Get-View -ViewType virtualmachine -filter @{"Name" = $input_machinename}

    return $VMview.customvalue [7] .value

    However, all of the examples I found related to the update/filling of custom fields requires the use of Get - VM.  While that's great and all, but everyone knows at this stage that Get - VM is something you want to avoid problems with speed

    http://communities.VMware.com/thread/206909;JSESSIONID=C3AC43115524E4F5F8608530367321B3?TSTART=0

    http://communities.VMware.com/message/1122166#1122166

    It is an example of the code snippet that I fight with in an attempt to update a custom field.

    #This is the line which takes about 2 minutes

    $VMName = Get-VM | {$_.name - eq "adv0010vpvc01"}

    $VMView = $VMName | Get-View

    $VMName.CustomFields.values [3] # prints the name of custom field

    $VMName.CustomFields.keys [3] # print the value of custom field

    $VMView.setCustomValue($VMName.CustomFields.keys[3],"10/10/2000") #Updates custom the field with the value "10/10/2000.

    Thank you very much

    The final alternative is to use the SDK method to set a custom field.

    Can you try this and see if it is faster?

    $input_machinename = 
    $CustomVarName = 
    $CustomVarValue = 
    
    $vm = Get-View -ViewType virtualmachine -Filter @{"Name"=$input_machinename}
    $vm.setCustomValue($CustomVarName, $CustomVarValue)
    
  • Need help with Custom Field Layout - getting wirer height value

    In the BB Simulator, I get a strange value placed in in my field layout() method custom. The width is 320, which is correct, but the height is 1073741823 and it takes 240 or less. In this test, my custom field is the only field in the Manager, so I expect to 240.

    I tried two different simulators - BB curve and the 8800. I use JDE 4.5.0 in Eclipse 3.4.1. This is the code for my method of layout:

    Protected Sub layout (int width, int height) {}
    s long = getStyle().
    If ((s & USE_ALL_WIDTH)! = USE_ALL_WIDTH) {}
    width = Math.min (width, getPreferredWidth());
    }
    If ((s & USE_ALL_HEIGHT)! = USE_ALL_HEIGHT) {}
    height = Math.min (height, getPreferredHeight());
    }
    setExtent (width, height);
    model.setExtent (width, height);
    Model.Scroll (0, 0);
    }

    I expect the value of the screen height, or less, if the domain is configured correctly.

    I'm upgrading my custom field in a VerticalField Manager with the following attributes:

    Super (VerticalFieldManager.USE_ALL_WIDTH
    | VerticalFieldManager.USE_ALL_HEIGHT
    | VerticalFieldManager.FIELD_HCENTER | VerticalFieldManager.FIELD_VCENTER);

    Is this a bug in the Simulator, or I understand the API correctly? Is there a way to 'reset' the Simulator - I tried to get out of Eclipse and restart Windows, but I always get the same value.

    Thank you!

    Mark

    A VerticalFieldManager comes, I think, with default VERTICAL_SCROLL.  If you do not want to scroll through this particular Manager, add VerticalFieldManager.NO_VERTICAL_SCROLL to your forests of style and it will be laid out with only the height and the actual width.

    Also, since you setExtent() by yourself, USE_ALL_HEIGHT and USE_ALL_WIDTH are redundant, I think.

    Hope that helps,

    Arkady.

  • LOV cascading if I don't have only one table with the customer name and the name of the product in the ADF.

    Hi Please help me how to use cascade, if I don't have only one table with the customer name and the name of the product in the ADF... I use Jdeveloper 11.1.

    For the client, I used customer VO with client list to fill but to populate the product that I use bind variable PrODUCT_NAME select distinct from TABLE where client_name =: bindCustomer

    so first of all, I need to set the variable of liaison on behalf of the selected customer.

    Can you please tell me how to set this variable binding in this case.

    After you set the LOV to your product attribute, correspondting VO in the LOV will appear under view accessors.

    Change the accessor of the view, you will see the variable binding. Set its value to the customer field of the parent object.

    Visit this link: https://www.youtube.com/watch?v=nXwL2_RP7AQ

    Kind regards

    Elias.

Maybe you are looking for

  • My iPhone partners asking for my details.

    Hi Fellow of Apple nuts,. I got my wife a new iPhone 6, she already had a 5 c that we used my ID to get all apps and the music I had on my account. During the passage to 6 we saved the 5 c to my iCloud and so moved this back up to the 6. My wife has

  • Fonts in iMove import or a work-around.

    Is there a way to import fonts in iMovie?, perhaps a work around as import in file iMoves fonts?, I have no ideal how do. I have this huge selection of fonts, but iMovie uses very little of them. Thanks for your time Hey Kirk you still autour?

  • Setting up file sharing: ⁄ iMac MacBook Air two 10.11.4

    I really messed up things and don't know what sharing arrangement I should or can enter. The Finder sees different another Mac, but that's all. Maybe I should start from scratch - but back to a 'clean slate '? I would be grateful for any comments. TH

  • I get a message saying startup disk is almost full and to delete files. How can I go about it?

    I have a macbook air and a message comes up saying that my boot drive is almost full and delete files to make more space. What files and where? Thank you.

  • ON wrt54g "access restrictions".

    Hi all: at the expiration of the duration of the rule. It will not apply to another rule during the series. For example, I put up one of those computers allowed to access the internet between 07:00 ~ 11:55. This PC can access the internet after 11:55