TouchEvent: Click versus UNCLICK problem

I'm having a problem with the management of events.

I have a BitmapField I want to receive the CLICK and UNCLICK for a key event.

This does not work because the extent of the BitmapField who received the CLICK

changes before the UNCLICK is generated. The UNCLICK finds himself nowhere,

Since no field mapping with coordinates.

I have custom Bitmapfields appears on the left of a custom list field.

When I click on a Bitmapfield, the touchEvent() for this field Manager

is called correctly and it sets the focus to this Bitmapfield. I see that,

for the BitmapField clicked,

-the XYRectangle returned by getContentRect()

and

-the XYRectangle returned by getExtent()

Describes exactly the same area (have the same coordinates).

My touchEvent handler is called correctly for the TouchEvent.CLICK.

BUT when the TouchEvent.UNCLICK goes, my field bitmap handler custom for this event is NOT called.

Looking inside, I can see that,

for the domain which has already received the CLICK

-the XYRectangle returned by getContentRect()

and

-the XYRectangle returned by getExtent()

describe the DIFFERENT areas (have different coordinates).

This has the result that the UNCLICK does not get associated with the BitmapField who received

the CLICK.

There is no visible change to the screen.

There are calls to rearrange the ListField between CLICK and UNCLICK.

Could he change my BitmapField extensions?

What is the difference between the contentRect of a field and its magnitude?

Any ideas on how to handle this?

Thank you!!!

lucidbee

I realized what was going on.

Field.getExtent () does not return a copy of the rectangle of the measurement field - but the rectangle extent itself.

So, if you have

XYRect r = this.getExtent ();

r.x += factor;

Then your field will be repainted in the wrong place. It will be a wrong x.

I think it is a bug or bad design, because this measure rectangle should be wrapped.

You cannot modify it via the interface of the method, you should not be able to change this way.

getExtent() should return a copy of this rectangle, in my opinion.

So I was something with measurement values, calculation without realizing that I was changing the coordinates of the field.

This calculation has changed the location of the BitmapField, so he did not receive the UNCLICK.

Tags: BlackBerry Developers

Similar Questions

  • Menu appears on touchevent click EditField. CONSUME_CLICK is not an option to the edit field.

    The Menu appeared on a touchevent click an EditField.  CONSUME_CLICK is not an option to the edit field.

    He always did, but I still have to figure out what caused change to happen.  Maybe because I went to GridFields.  Anyone has any ideas on how to avoid that the menu when I use a touchscreen device and click the EditField?

    Thank you!

    When you override navigationUnclick, return false - return super.navigationUnclick (status, time). It is a cleaner way to do it and it saved my day several times.

  • Programming with right-clicking/feedback button problem / hovering text?

    Context menu: http://i35.tinypic.com/33nc6td.png

    Capture your comments: http://i35.tinypic.com/4hs9kk.png

    Place of hover: http://i37.tinypic.com/33kd79w.png

    It turns out that context menu also applies to links and probably right click in general. The accident report thing happened more than 20 times and the problem of feedback is explicit.

    Now a new problem is all just... whenever I have pass on a link/image/highlighted object, it displays a square where the text should be. Link provided.

    Update: Wow! Crashed again. But here's a copypasta from the report that he sent to Mozilla. And he says this is b2 but my browser at the top said Firefox 4.0 beta 3! I have uninstalled/reinstalled the program from the link they gave me the Web page of comments too!

    BuildID: 20100720190347
    CrashTime: 1281866899
    FramePoisonBase: 00000000f0de0000
    FramePoisonSize: 65536
    InstallTime: 1280350444
    ProductName: Firefox
    ReleaseChannel: beta
    SecondsSinceLastCrash: 1951
    StartupTime: 1281865118
    Ramjet: 1
    URL: https://chat-support.mozilla.com:9091/webchat/transcriptmain.jsp?workgroup=support%40workgroup.chat-support.mozilla.com & chatID = 7b9uG3EtpE & fastpathID = 6muczw104433 & issue = Why % 20does % 20this % 20menu % 20show % 20up % 20when % 20I % 20right % 3F % 20click & helper = Dadaa & nickname = Paul & hash = 30cf2ded6b95578bb2047d2a992ab257dc05ffba
    Seller: Mozilla
    Version: 4.0b2

    This report also contains technical information about the State of the application when it crashed.

    These issues are usually caused by an extension of bad conduct.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).

    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.

    You can use "Disable all add-ons" window the startup of Firefox to solve the issues in Safe Mode to disable all extensions.

    You will need to close and restart Firefox after each change via "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

  • 15 - j078ca touch screen click on spam problem

    I'm having a problem with the touch screen on my 15-j078ca. I don't know if it's a hardware problem or a software/driver problem.

    What is essentially:

    1. I have the laptop running.

    2. I would like to disconnect the laptop.

    3. I was closing the lid (the value of doing nothing)

    4 look for my laptop and market in another room.

    5. open up the lid of the laptop and the touch screen would constantly spam clicks on the left side of the screen.

    I have to put my laptop to sleep, then wake up back for clicks to stop. It is a minor inconvience but I feel frustrated that I can't continue my work if I go with the laptop.

    Are there any suggestions to solve this, or is this a manufacturing defect?

    Hello BlueMinnow,

    Welcome to the HP Forums.

    I understand that your computer screen click randomly on the left side. I'll do what I can to provide information on this.

    Without adequate testing, it is almost impossible to know whether or not the issue is related to hardware or software. There is a very simple test to say: reinstall the operating system. If you reinstall Windows and the remains of the question, the hardware is defective. If reinstalling Windows solves the problem, it was a software conflict. This HP document allows you to find more information on how to reinstall Windows: How to run an HP system recovery

    This is the best advice I can give you for now. Please try that and get back to me with the results. Thanks for posting on the HP Forums. Have a great day!

    Mario

  • Right-click Windows Vista problem

    I have the following weird problems with the mouse right-click:

    1. sometimes, when right-clicking on a task in the task bar,

    • the shortcut menu appears, but I am not able to click one of its elements, or highlight it with the mouse. The context menu does not close even when you try to click on it.
    • the context menu is displayed in the upper left corner of the screen. In this case, I can click on its elements normally, however.
    • the appearance of the shortcut menu is weird: the element "Maximize" is written in bold and lacks the 'e' letter, showing as Maximiz. In this case, the element 'Close' isn't written bold. In addition, this case involves the first point (not being able to click on the items in the context menu).

    This problem only occurs when you right-click a task in the task bar, than that is if I right click on the taskbar itself, there is no problem. The system tray works too, and the quick launch.

    'Sometimes' means in fact very often. I might have to right click on a task several times until I get the popup to work normally.

    And now the problem (possibly) other:

    2. sometimes, when a right-click, context menu flashes quickly. As for the first problem, I have to click several times until the pop-up menu appears normally. Unfortunately, I can't describe exactly in what circumstances this kind of behavior happens. Most of the time right click works normally.

    I'd love to hear what could cause these problems.

    Thanks for the suggestions, Meghmala. I tried these methods, but the problem persisted.

    However, after investigating the matter further, I have concluded that the root of the problem is my mouse. Namely, by pressing the right button of the physical mouse often causes clicks two (or more) at a time. I checked this by reversing the left and right buttons in the Panel. After that, left click (right button even physical) was buggy, but the taskbar context menu worked perfectly. If I clicked on very quickly, the bug was less likely to occur.

    I tested clicks with this simple program: http://unixpapa.com/js/testmouse.html

    The real solution to this problem is to buy the new mouse. The things that I mentioned in the first post were after all the right symptoms - some programs this is confused at the rate of 2 clicks from almost simultaneously.

  • Microsoft Comfort Mouse 3000 mouse wheel click on the problem

    Hello

    I just got this mouse today and really like the shape and the weight of it, however I have a major problem - click wheel mouse only works to a certain (very uncomfortable angle) and even in this case, not all the time. I installed the drivers and all...

    .. sure you can not help me with anything whatsoever, so I'm going to exchange it for a different mouse to the store in the next few days, unless the problem disappears

    .. That's all :(

    Hi pas0003,

    If it works, try the steps and check them off below.

    (a) check the connection of the mouse. If the mouse is connected via a USB port, make sure that the cable is not loose. Push the USB connector to make sure it is sitting comfortably. If the mouse has an older serial port connection, make sure that the connector has not become loose and check the pins of the serial port for any signs of damage.

    (b) plug the mouse into a different port on the computer and test. The port may be damaged or the computer can recognize is no longer the mouse into this port.

    (c) inspect the cord of the mouse for signs of damage and make sure that the cord has not broken loose from the end of the USB connector or the mouse itself. If the mouse wire has been broken or the wires are are spare at each end, the mouse may need to be replaced.

    (d) clean the mouse. A mouse that uses a ball to track needs frequent cleaning. Unscrew the plastic ring on the underside of the mouse in the direction indicated by the arrows on the mouse. Remove the mouse ball and clean the ball and inside the mouse, paying special attention to the small roller inside the mouse. Use a cotton swab or a clean non fluffy towel and a small amount of rubbing alcohol. Let the parts dry, then reassemble the mouse. It should run more smoothly.

    (e) check the mouse settings. Click on the 'Start' button on the computer, and then click "Control Panel." Depending on the operating system, you may need to click "Settings" first go to the "Control Panel". Click on "mouse". Review the settings on the various tabs to see if changes are needed to solve the problems.

    (f) uninstall all hardware or software newly added. Check the performance of the mouse. If the problem is resolved, there may be a conflict with the mouse and the new program or hardware.

    (g) put end to the program you are working and you restart the computer. If a user clicks on the mouse too many times in quick succession, the memory of the computer may freeze, which in turn freezes the mouse.

    (h) examine the lock button for a mouse integrated on a laptop. If the mouse stops working, we can get key lock, usually located just above the mouse button. Press the button to unlock.

    If the previous step fails then you can go ahead and return the mouse to get a new one, as there may be a problem with the mouse itself because it is news.

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Click Navigation LabelField problem

    Hello

    in my application if I click a bitmap field I shows a popup screen with labelfields dynamic

    If this label field, click on I want to show the selected text in a text field to another screen

    Below the code I use in the pop up screen to create the label field

    at the moment I get a last element only if I select all...

    can someone tell me where to change to get the text of the selected item

        Vector v=new Vector();
                    v.addElement("515");
                    v.addElement("516");
                    v.addElement("517");
                    v.addElement("518");
                    v.addElement("519");
                    v.addElement("520");
    
                    for(int i=0;i			 

    Standard java error it.

    I think, but haven't tested that the evolution of this

    Create.table.setText (lbl.getText ());

    TO

    Create.table.setText (this.getText ());

    the problem will be solved.

  • How can I change the settings for my touchpad of Windows 8? Scroll and click on the problems.

    I have an Acer Aspire V5 - 571P and I don't like the operation of the mouse.

    I want to change the touchpad so that it doesn't click, I accidentally double - tap twice. (I want just one click to save when I click the mouse pad actually)

    I also want to make sure he that when I 'finger 2 roll' down a Web site or in the menus, it goes the same direction instead of reverse (currently, I drag it to go down and left to go right, I want 2 fingers down to go down and right to go right)

    I couldn't find it under the control of the settings panel and mouse. The only thing I saw was double clicking.

    Thanks for your help, I hope I'm not the only one having problems

    I had the same problem and was able to operate the momentum, but the only thing that works is the reverse of scrolling... my reverse option is grayed out so I can't uncheck it and it makes me crazy... Please help

    I found the answer in another thread! YAY it works for me now.

    That's what the answer was:

    "Go to the 3-rd - 'extra' tab - and choose the last option left -"effect of gesture '; There, change the setting of "ZoomPerfect" to "Microsoft touchpad modern experience." and then return to the 2nd tab (multi-doigt) and choose "Scrolling" again once and voila - now you will be able to change all settings here, including setting "Reverse"! »

  • Photoshop CS6 [command + click] layer selection "Problem" solved

    Good afternoon fellas,.


    I recently noticed something rare when working with Photoshop CS6 under Mac OS X 10.8.x.
    When I tried of course select a layer by the [command + click] (say) shortened, it failed. This little thing was driving me crazy, and I don't know that he must do some people without hair, too.

    Anyway (s), looking at another thread to read-only, I noticed the problem has not been resolved and received pretty lame recommendations. Luckily, I finally found the solution and was able to solve this small inconvenience that maybe we've all experienced. So here's the workaround solution, then maybe you never will consider downgraded to 5.5 again as I was thinking:

    (1) in Photoshop, make sure that the move tool is activated by pressing "V";
    (2) in the submenu of the tool, forget the selection/marking 'automatic selection '. I know that sounds nonsense, believe me;

    (3) Although, sure of 'sex' is selected next to the 'Automatic Selection' button and you should be as I am.

    I hope this can help some people! I would be very happy to know, since I just created this account to help you guys.
    I don't know if this problem has been resolved and already posted, I'm sorry. I want to just make sure that we will all be happy!

    See you soon,.
    "Let him go, Jack."

    I was wrong! The Cmd key override to always activate the automatic selection. She calls the opposite behavior from the setting.

    If the box is checked, Cmd will disable temporarily Autoselect.

    If the check box is cleared, Cmd will temporarily allow automatic selection.

  • Click activeX flash8 problem

    Hi all!
    I have a strange problem with my control ActiveX for Flash8. I have a flash, in flash 8, which has a few buttons and scrolling text boxes. For some reason any when I put it in my Authorware piece, I'm permitted in a "click" on the page and then it's just sits. No other buttons work with one click on. For example, I click on the scroll box to scroll down, and then I can't scroll to the top! Everything that is pressed before works only once and that's all, I have to restart to try another button/slider, etc..
    I know that it would be optimal to use flash 6 and avoid the ActiveX altogether, but it is not an option. We need some features of flash 8.

    I've tried everything I can think of, and I can't make it work. Works fine if just opened in my flash player, I can scroll as much as I want, hit the buttons as many times as necessary, without problem.

    I also tried some other flash 8, and ALL with buttons/clicks have the SAME problem.

    I thought I could use the wrong ActiveX control? I'm pulling my hair out over here.
    Any help would be greatly GREATLY appreciated!

    Thank you very much!
    -Serena J.

    Republish your file. See if it still makes the same publication.

    Steve

    --
    Adobe Community Expert: Devices, Mobile Flash and Authorware
    http://www.magnoliamultimedia.com

    You must go to MAX - http://adobemax2007.com/na/

  • Windows 7 server IP versus \\server problem

    I know this question has been asked several times, but NONE of the suggested fixes worked and its driving me crazy. I recently picked up a network of a computer programmer who was not a network expert, so there is some more to clean. Here is the outline and I hope someone can point me in the right direction.

    Running windows server 2008 r2 with DHCP and DNS with the DC from here.

    Second server is an old wobbly computer with windows 2000 server is installed, but does not run any server software I can say. It seems that it is just one part of the road.

    Customers are a mix of windows XP and Win 7

    The XP Clients work correctly.

    Windows 7 computers were a pain in the a *. All of Win7 clients had corrupt profiles. I managed to solve every problem annoying except,

    our 2008 Server are accessible through \\artserve, but the shared drives running 2000 are accessible to windows using using the static IP address and not \\chefserve.

    I emptied the DNS on all machines as well as reset the Server 2008. Of course, I can ping the servers very well. I tried to play with synchronization of the time for questions but who did not get any where, I can't do it properly.

    I have disabled the windows firewall and any software antivirus, don't know where to look. I also reset all the powers of management for win7 machines. I rechecked users groups and the share permissions on the win 2000 Server and its all together for everyone.

    Any suggestions?

    Hi Dan,.
     
    I appreciate the efforts that you put to publish the query on this forum.
     
    As you use Windows server 2008, I suggest you to publish the application on Microsoft TechNet forum because we have experts working on these issues. See the link to the request message:
     
    Please let us know if you need any other assistance on problems with Windows.
  • HP Pavilion dv9550eo (clicking sound) fan problem

    Two months ago I have vaccumed the fan, but don't forget to keep the fan. If the fan has got a very high SPEED while I vaccumed. When I started my PC after that the fan suddenly begins to make a "rattling noise" and the RPM is extremely high. I used my computer to much a game earlier, and rpm and noise were never like that. What can be the problem? Is the bearings in the fan broken? How can I fix?

    Can I buy a new fan or the need of a whole new radiator? The partnumber anyone so I can order a new part?

    Just the fan. http://www.eBay.com/ITM/170875020953

    Check fan game gently pulling back & comes on a slide with a pair of tweezers, bearing fan problem typical sounds as do many on HP laptops.

    Download the service manual for help on band & connection & use a good thermal paste like Artic ceramique2 because it makes a difference & lasts much longer than the cheap pasta...

  • Click and DoubleClick problem

    I currently trying to implement handlers for the two click and double click events, but only the function related to the click event is called. Two event listeners are simply attached to the stage exactly in the same way for example

    stage.addEventListener (MouseEvent.DOUBLE_CLICK, CancelSelection);
    stage.addEventListener (MouseEvent.CLICK, MoveObject);

    Yet the use of the command trace in each function reveals that the double-click function, CancelSelection, is never called.

    The code to cancel selection is simply:

    private void CancelSelection(evt:MouseEvent):void
    {
    trace ("Deselecting...");

    }

    And ideas of what's going wrong here?

    Try to including the following line of code before all this...

    stage.doubleClickEnabled = true;

    The default value is false, which explains why you do not automatically get double click operation.

  • touchevent is getrated every time I click on the screen of the blackberry java

    Hello friends,

    I am from the substitution of toucheven like this:

    Ematics bitmap = Bitmap.getBitmapResource ("onlbswth. PNG');

    Break of bitmap = Bitmap.getBitmapResource ("offldswtch. PNG');

    BitmapField switchOffField = BitmapField (switchOff) new

    {

    protected boolean touchEvent (TouchEvent message)

    {/ / TODO self-generated method stub}

    If (TouchEvent.GESTURE == message.getEvent ())

    {if(flag==0)

    {flag = 1;

    switchOffField.setBitmap (switchOn);

    } else

    {

    flag = 0;

    switchOffField.setBitmap (switchOff);

    }

    }

    Returns true;

    }

    };

    Once I click on bitmapfield, the event is genrated... next time whenever I click on screen event is again genrated...

    is there anything to add to this

    Here's some code I've used processes click on events.  It will be useful.

    protected boolean touchEvent (TouchEvent message) {}
    int x = message.getX (1);
    int y = message.getY (1);
    If (x < 0="" ||="" y=""> < 0="" ||="" x=""> getExtent () .width: y > getExtent () .height) {}
    Outside the scope
    Returns false;
    }
    Switch (message.getEvent ()) {}
    case TouchEvent.CLICK:
    button click (0);
    Returns true;
    }
    Return super.touchEvent (message);
    }

  • Problem blackBerry Smartphone screen click... Fixed! A must-read!

    Here is a fix is for the screen by clicking on the problems everyone is having... definitely a must read (even for Blackberry technicians!).

    Screen click Fix!

    Jay

    Yes... I couldn't believe the improvement!  Just make sure you adjust it... some have said they have waited until the next day and adjusted after that screen had settled!

    Jay

Maybe you are looking for

  • Operation of slow Mac after El Capitan! Report EtreCheck

    Anyone can identify possible issues, causing my macbook run ridiculously slow after upgrade! Same opening new tabs in safari take ages and gets the same turns beach ball by typing this message now Im getting gel between the words! EtreCheck version:

  • Delete the list of entire contacts on iPad

    I need to remove my contacts list whole on an old iPad without deleting apps or any content. Is it possible to do in addition to edit each individual entry in the address book?

  • Cannot get e-mail send or receive after a password change

    Send and receive email on my Ipad problems after changing a password. IOS 9.3.2

  • Update satellite P500 and Windows 7 in Australia

    Hi all [http://www.brightsideofnews.com/news/2009/10/19/toshiba-snafu-delays-windows-7-free-upgrade-to-december.aspx] Can someone confirm this deadline as a fact? If so, is it also for the Australia? See you soon Ben

  • Horizontal lines on start screen

    I started to get horizontal color lines when my computer starts. They sometimes completely hide the Welcome screen, but once I managed to log on all the normal functions are not affected. Someone told me it may be dust affecting the graphics card and