Custom RadioButtonField won't paint

Hi experts,

I have a custom radiobuttonfield and it is invisible on my screen.

I have a custom manager that overrides the touchevent.

So I can make sure I'm clicking, even when I see him.

Any ideas?

Thank you!

lucidbee

I just understand it, finally.

I found the answer in this thread:

http://supportforums.BlackBerry.com/T5/Java-development/radiobuttonGroup-related-problem-in-storm/m-...

I needed this in my layout of substitution:

Protected Sub layout (int maxWidth, maxHeight int) {}

int width = owner.get_Size () .getDimension () .width;

int height = owner.get_Size () .getDimension () .height;

setExtent (java.lang.Math.min (width, maxWidth), java.lang.Math.min (height, maxHeight));

Super.Layout (width, height);   ADDED TO THIS

}

Now, the radiobuttonfields are painted.

see you soon,

lucidbee

Tags: BlackBerry Developers

Similar Questions

  • Is there a way to save the custom color created in paint? Windows 7

    When you open Paint in Windows 7, it shows crates/palettes of colors. When you add a custom color, it appears in one of the empty boxes. When close the window and reopening, the custom color, I chose is now gone. Is there a way to save the color so that it is always there when I opened paint?

    Hello

    There is no way to save colors custom Paint in Windows 7.

    You will need to enter the color to RGB values and enter it again.

    You can use your favorite search engine to search for any third party for more features complete solution.

    NOTE: using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • Customer Web won't load no no vm summary

    Just did an update of 5.1U1 to 5.5U1 and I am trying to use the web client, but when I click on a virtual machine, the summary screen load simply never (so no access to the console). Make a right click on a virtual machine does not give me the console either. Same problem on Internet Explorer and Firefox.

    The Windows client works very well.

    I didn't really use the web client in 5.1 but I don't remember having this problem.

    clicking on a cluster or a host seems fine, it's just vms

    Any ideas?

    Thank you

    First thing, I'm going to see is if there is enough memory to vCenter. The memory requirements are increased from 5.1 to 5.5. Another thing I will try is to increase the size of the java heap for the Web Client VMware KB: settings of the configuration in VMware vCenter Server 5.1 and 5.5 Tomcat server . I normally increase to 3 GB compared to the default setting and at least my previous deployments, change this setting seems to stabilize the web client.

  • Customization of the insertion in a custom user interface palette

    Greetings,

    I am working on a custom for Teststand application user interface and I want to give the user the ability to edit files in sequence using a simplified subset of the predefined types step.  I based user interface custom off the Labview FullOI example in the teststand 4.2 folder.

    I found the context menu item 'Customize' out of the palette of insertion and who seems to get most of what I'm looking for (hiding like IVI and synchronization of files and the individual steps as the FTP files and call executable), but what I really want to know, is if I can remove it to the different symbols of 'top' that choose between adapters.  I wish that the customer must only see Labview and none and RID where hide the CVI, C/C++ DLL, .NET and ActiveX.

    Where, moreover, are the options that you set in the menu customize stored user interface custom compared to the sequence editor own right?  I want to make sure that I have a good list of all of my modified files I create a CD of deployment of work later on the road.  I'm assuming that to change the visible categories in the interface custom user won't change their visibility in the application of the sequence editor.

    Personalization step insert palette changes affect the sequence editor and the user interface. The settings are stored in testexec.ini in the cfg directory.

    You can hide the adapters using the card configuration window in the config menu

    You can simply keep separate versions of your testexec.ini, one for when you want the customizations and the other for when you don't have, assuming that you do not use the machine even for both. If you use the same machine for both you can implement some sort of automated way of switching on which version of the file that you are using.

    Hope this helps,

    -Doug

  • How to make all the widget lost focus on any scrolling event?

    Problem: my button tooltips are dragged himself upwards and downwards and reworked on the screen when the screen scrolls.   There is a listener of scrollevent screen that should fire when the scroll event is happening, but it's not.

    Inside of my listeners to focus and scroll I have code that hides the displayed all ToolTips are off widgets development.

    So, why my scrolllistener is not shot?  It fires up when I do scroll by dragging the screen upward if my thumb is on a widge who accepts the update, but not when the affected widget can't receive the focus.  I partially fixed this by adding a mask manufacturers field for mae them focusable - but this seems to be a bug, is there a better way?

    Here's my interlocutor of the screen:

    this.setScrollListener (new ScrollChangeListener() {}
    ' Public Sub scrollChanged (Manager, int newHorizontalScroll,
    {int newVerticalScroll)
    setFocus();
    getActiveToolTips () .removeAllElements ();
    ToolTipMainScreen.this.invalidate ();
    }
    });

    Thank you

    PS: I use eclipse 3.5.2 last plugin, java last Windows XP pro 32 bit, JDE 4.7.  Pack 5 SIM, sim 9530 and real device 9550.

    Screen can be like that.  It has a hierarchy of managers, and I never know who is involved in this operation.  I can only imagine scrolling listener must be set on the manager returned by getMainManager(), but I'm not sure.

    To be completely safe, you can:

    1. create your screen with the explicit NO_VERTICAL_SCROLL indicator.

    2. Add your VerticalFieldManager(VERTICAL_SCROLL |) VERTICAL_SCROLLBAR) directly on the screen.

    3. Add the rest of your fields to this VerticalFieldManager. You can still use setBanner, setTitle, and setStatus for their intended uses, but never add anything directly on the screen.

    4. set all your custom goodies VerticalFieldManager - ScrollChangeListener, paint the background, custom, etc.

    This way control you as much as you can and don't count on the potentially changing nature of the screen.

  • Personalized rectangle shape with good PasswordeditField

    Hello

    I try to write custom passwordField, because I want to add some border arround the password field as normal textfield in the form rect.

    How utiliserdans the graphics.draw... ?

    If I use the graphics.drawText ()... appear normal letters in the passwordfield...?

    How to display the *...?

    Thanks in advance

    Alternatively, if you are extending from PasswordEditField, once you have modified the method object to draw your custom border, call super.paint () to make the draw PasswordEditField the text.

  • TITLE BACKGROUND

    How can I change the background of the title in a screen? I want to put an image with transparent background and then set different background colors in the different screens. Is this possible?

    You can pass any type of manager in the setTitle method... If a Manager customized with your favorite painted background can be passed...

    See you soon...

  • How to group fields?

    I'm a few apps on BB 5 (e.g. Curve 8520 Simulator), and when you enter a date, you can see that the fields are well grouped (see attached photo). My question is: this part of the consolidation of the SDK (i.e. in some Java classes) or is it custom? I see it is not too difficult to implement through custom manager method to paint and play with a little padding, but is it already there? Thank you.

    It is customized. I have not seen a way to get an application to implement the default colours (apart from the theme colors) game.

    It's rather simple to implement in 4.6 + and requires a little effort in 4.5 below.

  • Style buttons on the pre 4.6 d?

    Hey guys, I built using the JDE 4.6 and I want to check my application is compatible with 4.2 + phones.  I noticed that it existed before BackgroundFactory and BorderFactory class that I use only started to 4.6 so I wonder what kind of style classes?  Is there an easy way to style of the border using the framework 4.2 and button?

    What is called to do the work for

    Like a lot of guys who have done this for a while, I have a collection of custom controls that allow me to change the colors, sizes, and layouts of the elements. None of the fancy stuff existed at the time of 4.0.

    We used to create borders using a custom Manager (with a painted background), forcing the UI component to a slightly smaller size to create the border effect. I'm sure you can find some old discussions on the subject, if you search the forum.

  • Small problem with scrollbars

    Hello

    I've implemented a custom Manager where I paint the scroll arrows myself.  It works fine on the touch non-ecran models, but when I try to scroll on the storm, the scroll bars are being developed faster than the screen is repainted, it looks like a big mess.

    Any ideas on how I can avoid this?

    I have attached a screenshot to illustrate the problem.

    FYI, my solution has worked.

    in the constructor:

    setScrollListener(this);
    

    Add this method in the handler:

    public void scrollChanged(Manager manager, int newHorizontalScroll, int newVerticalScroll) {
        invalidate();
    }
    

    I don't notice any effect on performance.

  • BasicEditField NO_NEWLINE does not?

    I have a BasicEditField where I want the key of entry ignored. I am that address both ways to make sure that I understand. First of all, I spend NO_NEWLINE in the constructor. Secondly, I intercept the ENTRY key in keyChar() and just return. Basically, I have reproduced the CustomKeywordField of the KeywordFilterField example. However, the Enter key is ignored (at least in the Simulator). I have space is added after the last typed character. This is expected behavior? Y at - it something I am doing wrong? Here is my class for completeness. Thanks for the help.

    static class final CustomKeywordField extends BasicEditField
    {
    Constructor
    CustomKeywordField()
    {
    Custom style.
    Super(USE_ALL_WIDTH|) NON_FOCUSABLE | NO_LEARNING | NO_NEWLINE);
                
    setLabel ("search :");
    }
            
    protected Boolean keyChar (char ch, int, int times State)
    {
    If (ch is "\n")
    Returns true;
                
    Switch (ch)
    {
    case Characters.ESCAPE:
    The keyword is clear.
    If (Super.getTextLength () > 0)
    {
    setText("");
    Returns true;
    }
    case Characters.ENTER:
    Returns true;
                    
    }
    Return super.keyChar (ch, status, time);
    }
            
    /**
    * Substitution of great to add a custom to our class paint.
    * @see net.rim.device.api.ui.Field #paint (Graphics)
    */
    protected void paint (Graphics graphics)
    {
    Super.Paint (Graphics);
                
    Draw the caret.
    getFocusRect (new XYRect());
    drawFocus (graphics card, true);
    }
    }

    Don't worry a keyListener, your code should work fine, as is.  I have a similar code, it will just check.

    I'm a little worried about it:

    If (ch is "\n")

    What is this for?

    Edit: just checked my code and tested, keyChar is not called if the field has been set using BasicEditField.NO_NEWLINE and the user presses the key .

    If you see keyChar invoked, can you confirm that you are using BasicEditField.NO_NEWLINE and what JDE/OS level you see this on.

  • Installation of the USB Modem problem

    I am trying to install a Telstra 4 G mobile USB modem on a Dell Ultrabook on Windows 7, keep this message ' VB Script run time for custom action ' won't complete installation

    Update your Windows and install the latest update.

    Visit the website of support if your modem and install the latest version of the driver.

    Contact the manufacturer support and discuss this matter with them.

  • designStandard Middle East version 5.5

    I have a degree in designStandard 5.5. but when I try to install it I have an answer that the serial number is not valid. Adobe customer service won't help

    I think that iIts because the app that I need is a version of the Middle East.

    Invalid License http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

    -http://helpx.adobe.com/creative-suite/kb/invalid-serial-number-cs4.html

    - and http://forums.adobe.com/thread/1038761

    Check your account to see what version your serial number is for

    https://Accounts.adobe.com/ , then click on Plans & products top

  • (SNES) How do to paste/brush one model with random angles while maintaining hard edges

    Hello! I tried to search around and was halfway to a solution to my problem, I hope someone can help me with the final bit. I make a container to go 3D and had a problem interesting, paint the texture to the rice on top.

    takeout.PNG

    rice_grain.PNG

    Above is the 3D model and the second image is the grain of rice, is a set of 4 x 7 pixels! (The UV map is 256 x 256)

    To do this, I thought that I would like to define a model of custom and then brush "paint" over the grains of rice with random angles and maybe a little of the size jitter. The problem is photoshop apparently only let's do you it with brushes, not the pencil tool. When I load the Brush preset in the pen, that there is no evidence, only when I use the brush. However since this is supposed to see pixelated contour hard I don't want the edges smooth gradients of a brush, I'm looking to keep the pixelated look, so I would use the pencil tool.

    attempt.PNG

    Here is my attempt with the Brush tool, it is not preserve edges hard and for some reason any left white out average as well. Is it possible to have layers, random collage of hard edge of a given model? Please let me know if you know of anyway. Thank you!

    4 x 7 pixels is really small! Anyway, with CS6 you must change the script to get rid of color variation. The engineer he planned like that, but few people do. I made a script that you can set the variables for the script of the decoration. In CC, the engineer made a better Interface. Here is my attempt with this pixel size of 4 X 7:

    You can get my script for free here:

    Script Fill UI - Photoshop CS6

  • Cannot add the secondary network card

    Hello! I bought specially for ESXi (Intel PRO/1000 MT Desktop Adapter, model number 8390MT) a new PCI Intel network card. It is listed as a supported network component. I have pluged it started, the host, went the networking, but I still see only one, the old network card. It would appear there automatically or must something needs to be done in the linux command line? I'm not good with linux, maybe I should just re - install the ESXi?

    Make sure that you add the NIC in the vSwitch. If you just go to the page of networking in the VShpere customer, you won't see the second NIC automatically connected to the vSwitch. Did you do that?

Maybe you are looking for