Key capture within a ScrollView

I have a check that when I get a touch, I followed the touch() signal when the user moves upwards and downwards, to change the value there is a. Like in this video https://www.youtube.com/watch?v=aK0Mqxg89xc , but in the vertical direction.

If I put the control inside a ScrollView, control no longer works, because I get a TouchEvent Cancel.

I tried to change all the ancestors of TouchPropagationMode view touchPropagationMode:assThrough button down event and bring back them into the contact upwards / button cancel event (so the ScrollView should stop running events for the scrollbar, when this control has captured the touch event), but it does not work, and I keep getting the Cancel event.

I also had a look at this thread http://supportforums.blackberry.com/t5/Cascades-Development/block-scroll-view/td-p/2029435 , that he says makes the turn of events, but I don't understand leave a control within the view, but from the outside.

No hint of how to capture key events and prevent the ScrollView parent of during my control is the capture of the touch event!

Finally found a way to solve this problem. Sorry for the 'spam' in the forum :/

The path is the same used in the post I mentioned in my first post.

I put a signal handler for my touch event.

QObject::connect( counterLabel, SIGNAL( touch(bb::cascades::TouchEvent*) ),
                      this, SLOT( onTouchEvent( bb::cascades::TouchEvent* )));

So when I get a touch down in my counterLabel, I call the hijackTouchEvents:

void TouchCounter::onTouchEvent( bb::cascades::TouchEvent* touchEvent )
{
    TouchType::Type eType = touchEvent->touchType();

    if( eType == TouchType::Down ){
        counterUpdateTimer->start();
        initialY = touchEvent->windowY();
        counterUpdateIncrement = 0;
        timerIntervalAccum = 0;
        hijackTouchEvents();
        touchEvent->accept();
    }
}

and I get the "oldest ancestor" to install a touchCapture Manager and block all events key to its immediate children (save mode to restore them later).

void TouchCounter::hijackTouchEvents()
{
    blockedNode = NULL;
    capturingTouchesNode = this;
    VisualNode* next;
    while( (next = qobject_cast(capturingTouchesNode->parent() ) ) != 0){
        blockedNode = capturingTouchesNode;
        capturingTouchesNode = next;
    }
    QObject::connect( capturingTouchesNode, SIGNAL( touchCapture(bb::cascades::TouchEvent*) ),
                          this, SLOT( onTouchCaptureEvent( bb::cascades::TouchEvent* )));
    if( blockedNode != NULL ){
        blockedNodeOriginalPropagationMode = blockedNode->touchPropagationMode();
        blockedNode->setTouchPropagationMode( TouchPropagationMode::None);
    }
}

I also have the function to disconnect from the touchCapture:


void TouchCounter::freeTouchEvents()
{
    QObject::disconnect( capturingTouchesNode, SIGNAL(  touchCapture(bb::cascades::TouchEvent*) ),
                              this, SLOT( onTouchCaptureEvent( bb::cascades::TouchEvent* )));
    capturingTouchesNode = 0;

    if( blockedNode != NULL){
        blockedNode->setTouchPropagationMode( blockedNodeOriginalPropagationMode );
        blockedNode = NULL;
    }
}

And I call the freeTouchEvents function in the onTouchCaptureEvent, when I get a touch up or touch cancel event.


void TouchCounter::onTouchCaptureEvent( bb::cascades::TouchEvent* touchEvent )
{
    TouchType::Type eType = touchEvent->touchType();
    VisualNode* tgt = touchEvent->target();
    touchEvent->propagationPhase();
    if( eType == TouchType::Move && capturingTouchesNode != 0 ){
        float a = touchEvent->windowY();
        float diff = a - initialY;
        counterUpdateIncrement = getUpdateRateMilliseconds( diff  );
        if( diff > 10.0f ){
            valueDirection = -1;
        }else if( diff < 10.0f ){
            valueDirection = 1;
        }else{
            valueDirection = 0;
        }
        touchEvent->accept();
    }else if( eType== TouchType::Up || eType == TouchType::Cancel ){
        initialY = 0;
        counterUpdateTimer->stop();
        touchEvent->accept();
        freeTouchEvents();
    }
}

I hope this is help someone!

Tags: BlackBerry Developers

Similar Questions

  • After a reload of Windows 7 Professional, the product key required within a certain number of days

    I had Windows 7 Professional on my computer, downloaded the new beta version of Windows 8, reloaded WIndows 7 but lost the product key number when Beta 8 has been downloaded. Lost the email that had the product key as well. How can I get the return key?

    When I rebooted recently Windows 7 Professional, it asked for the key and gave me so many days to load. I left 7 days. I have the disc and the pkg he came, but the key is not listed here. What can I do?

    Find your key product if your purchase of Microsoft Store:
    http://store.Microsoft.com/Help/FAQ?Err=T2#AT2

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • I'm looking for my key product within the program?

    Don't know how long we had this program or how we was sold.  We have a new computer and need to transfer from the old to the new program and can not find the key.

    Hi amyv,

    Please see this document for combat information retrieve your serial number Adobe: quickly find your serial number

    Best,

    Sara

  • 2 keys have changed function, how do I fix?

    The @ key is now on "when it is used to update;" is now press 2 when used offset.  How it happened I have no idea and I can find no help on the web or by calling Microsoft.  HELP someone. Thank you.

    Your keyboard has one or two other input languages available, probably U.S. that alter the configuration of the keyboard. Additional keyboard layouts will probably be triggered from assigned access keys. You need get the Advanced key settings within the input languages and text Services.

    Certainly, it is hard to find dialogue. I had the same problem between US (in English), Canadian French and Canadian multilingual (standard). I left intact language, but removed the quick access keys.

    If you spot a small icon keyboard in the Bar of Notification (right part of the taskbar, just to the left of the clock and a few other icons), then right-click and select settings.

    If this isn't the case, you will need applet of the region and language Control Panel, dialog language and region , the button Change keyboards... thekeyboards and languages tab.

    Whatever it is, you should be at the service of text and input languages dialog box. Two options here:

    1. Remove all the languages that you do not want to stay on the system of the general tab.
    2. Click on the tab Advanced settings key . In the section of hot keys for input languages , use the Change Key Sequence button to remove any key Sequence that can interfere with your work. This includes the setting between the input languages (usually at the top of the list and probably the one causing your trouble).

    Click OK when you get out of each progressive dialogue in order to save the changes you have made.

  • Default keys to material function on spectrum XT touchsmart 15

    Hello

    I often use the keys function within software development IDEs like Visual Studio client. However on my touchsmart spectrum XT 15 material function default function key function. For example when I press F5 on ay other laptop computer running the program I'm developing; However on my spectrum XT he turns off the lights on the keyboard.

    I have to press the fn key first to make the funtion key as it should. Other laptops, you press this button first to get the function of equipment.

    Is it possible to reverse this function so I don't have to remember to press it all first all the time?

    Thank you

    Hello

    You can ignore the Fn key as mantioned in the following link:

    http://support.HP.com/us-en/document/c02035108

    Kind regards.

  • SHIFT key gives bad non-alphanumerique character keys

    I'm having a problem with the shift on Windows 7:

    After using a program for some time, the SHIFT key suddenly begins to produce the bad characters non-alphanumeriques key.

    It is the specific program - if I switch to another application, the shift key works fine. In addition, it disappears if I stop and restart the program.  But I've had this problem now in three unrelated applications, so that it looks like Windows 7, not the application.  In addition, it is a new feature of Windows 7, I never had XP or products previous (I skipped Vista!).

    It is not specific to one machine - I had it located on my desktop and my laptop (both machines to Windows 7 that I use regularly).

    It is quite possible that it is caused by pressing a combination of keys accidentally while I type, but I have no idea what could be the combination or how to restore normal operation.

    It is not a big problem because there are solutions, but it's getting boring!

    Any help appreciated.

     

    Canada, eh?

    Your keyboard has one or two other input languages available, probably the Canadian French and Canadian multilingual Standard which change the keyboard layout. Additional keyboard layouts will probably be triggered from assigned access keys. You need get the Advanced key settings within the input languages and text Services.

    Certainly, it is hard to find dialogue. I had the same problem between US (in English), Canadian French and Canadian multilingual (standard). I left intact language, but removed the quick access keys.

    If you spot a small icon keyboard in the Bar of Notification (right part of the taskbar, just to the left of the clock and a few other icons), then right-click and select settings.

    If this isn't the case, you will need applet of the region and language Control Panel, dialog language and region , the button Change keyboards... the keyboards and languages tab.

    Whatever it is, you should be at the service of text and input languages dialog box. Two options here:

    1. Remove all the languages that you do not want to stay on the system of the general tab.
    2. Click on the tab Advanced settings key . In the section of hot keys for input languages , use the Change Key Sequence button to remove any key Sequence that can interfere with your work. This includes the setting between the input languages (usually at the top of the list and probably the one causing your trouble).

    Click OK when you get out of each progressive dialogue in order to save the changes you have made.

    • "Have you tried it turned off then on again? '-'The IT Crowd' Roy (Emmy award-winning British comedy)
  • How can I activate the "Host key" for my sftp to the ISE Server?

    Hello

    I can't copy my files to upgrade 1.2 ISE to my repositories the.

    Here is a cut and paste of my CLI on one of my knots ISE after attemtping to copy from my workstation (running a SFTP server) to one of my nodes of ISE.

    XXX-ise-01 / admin # s copyftp: / //ise-upgradebundle-1.1.x-a-disque 1.2.0.899.i386.tar.gz.:.

    User name: Admin

    Password:

    % ERROR: backup failed due to one of the following reasons

    1 host option key is not configured

    2. the host key is removed due to the new image

    3 host key is removed from any other depositary having same ip/hostname

    % Please reconfigure the host key option

    % Error: transfer not possible

    I don't have whatever it is configured with the option "host key.

    I googled and searched, but cannot find references limited to the "Host key" command within Cisco. I tried various forms of it on the ISE node with no luck.

    I tried an FTP transfer, but it does not work.

    Any ideas?

    You can try to add a repository to your local configuration as an sftp server that should start the process host key.

    Thank you

    Tarik Admani
    * Please note the useful messages *.

  • ORA-01450: length maximum key (6398) exceeded in 12 c but not 11g


    Using this piece of code in a base of 12 c or 11g with character set AL32UTF8 yields different results:

    CREATE TABLE dunc_test (col_198 VARCHAR2 (198 CHAR), col_200 VARCHAR2 (200 CHAR));

    -Works
    CREATE INDEX ix_dunc_test1 ON dunc_test (NLSSORT (col_198, 'NLS_SORT = BINARY_CI'))

    -Fails in 12 c only
    CREATE INDEX ix_dunc_test2 ON dunc_test (NLSSORT (col_200, 'NLS_SORT = BINARY_CI'))

    Is this a bug in g 11 or 12 c? According to the doco, I suspect 11 g is more lax.

    OK, I found the reason. It is the side effect of activate varchar2 (32 k) (max_string_size = extended).

    The length of the key to a functional index on NLSSORT (for a ranking non - UCA) is calculated as MIN ( * 8 + 10, ).  If max_string_size = standard (11g behavior), maximum BRUTE size is 2000 bytes and an index on NLSSORT key is never longer than 2000 bytes and does never exceed the limits of index key for 4 k and large blocks. If max_string_size = extended (new 12 c), maximum size of RAW is 32767octets. With VARCHAR2 (200 CHAR) in AL32UTF8, the length of the column in bytes is 4 * 200 = 800. According to the formula of the length of the index key, you get 800 * 8 + 10 = 6410. Beyond 6398 bytes maximum indicated in the error message to your 8 tablespace block size k.

    According to the needs, one solution might be to create a tablespace with 32 k block size. The maximum size of key index within this tablespace is 26510 byte (Linux x 64). This gives you the maximum column (26510-10/8) bytes length = 3312 bytes = 828 AL32UTF8 characters.  You cannot index the columns more linguistically if max_string_size = extended.

    Note a difference in the behavior of NLSSORT: 11 g or if max_string_size = standard, if an ordering generated key does not fit in a buffer of size with the formula above, it is truncated silently, giving inaccurate results (indeed, the key to ranking is calculated for a prefix of the string). In 12 c with extended = max_string_size, ' ORA-12742: failed to create the key to ranking "is reported instead. We blocked the ability to create a snack imprecise when keys max_string_size = extended in the future to use the rating feature sensitive with specific mechanisms such as primary key constraints.

    In summary, this is an architectural limitation, not a bug.

    Thank you

    Sergiusz

  • Option ID CS5 key

    The option key does not work as a modifier with the text tool in ID CS5. I can't do a bullet (Opt-8). However, it works with the selection tool, because I can click on an image, hold down Option and drag to make a duplicate of the image. Everyone knows this? Solutions?

    Same question in PS CS5

    Apple against 10.6.8

    Edit > hotkeys... would be the way that you set up a customized together. I asked because this may be symptomatic of trying to use a game copied from an earlier version of the code.

    I think that if, maybe that's a different problem in your case. Is your browser or as open email? I have a vague memory of a problem with one or the other the key capture.  Are you patched to 7.0.4?

  • Key pairs generated HSM cannot be password protected.

    The idea of using an HSM is the key material existed only within the HSM, cannot be extracted from the HSM and therefore has a high level of confidence.

    I would like such, operating instructions to generate the key pairs within the HSM, in this way, they have never been available to the hand of the man of compromise.

    Only one problem: Luna SA HSM of SafeNet does not allow the password to protect the private keys generated in the HSM.  Documentation does not provide option for the password to protect the private key generated entirely in the HSM, and their customer support has confirmed this fact.

    I have two choices: create the keys entirely in the HSM so that the key material existed only within the HSM, but depend entirely on the HSM partition password to protect access to the keys, or generate the keys as firmly as possible outside the HSM with passwords, and then import them into the HSM.

    Thoughts?

    In rule generally, customers generate key pairs in the HSM, but both approaches that you suggest can be applied in a way that respects the rules of compliance for access to Flash.

  • Workstation 12 exclusive Mode

    Product: VMWare Workstation Pro 12

    Host: Windows 7 SP1

    VM: Windows 7 SP1

    Use of the VM: SCADA HMI - essentially the Kiosk Mode

    I'm looking for a way to have the virtual machine to start in exclusive mode automatically, essentially creating a kiosk environment.

    I am currently deploy 12pcs industrial workstation at the manufacturing plant. These computers are currently configured as follows

    • Automatic startup and connection of the host operating system
    • Autostart and VMware mode connection full screen
    • Automatic start of the SCADA software that has built-in filtering of CTRL, ALT, Win key for OS VM

    • Host operating system use Sharpkeys to turn off CTRL left and disable the ALT right as method of obfuscation to prevent accidental exclusive mode
    • The value to hide the edge of the toolbar of VMware
    • VMs will be protected to prevent changes to VMware

    If an engineer starts the system, they are asked to put the virtual machine in exclusive mode. Obfuscation prevents most operators to discover the correct method of CTRL + ALT key to take the virtual machine in exclusive mode. We can both sets of CTRL, ALT keys if necessary, but it is not the purpose of this post.

    However if the user reboots the machine, which they have been known to do, the virtual machine does not start in exclusive mode, which represents an opportunity for operators interested in search or access the desktop of the host. It's not supposed to be an analysis of standard operating procedures and documents indicating the operator don't not to 'play '.

    Is there an integrated method, or by the use of 3rd party software, by which we can ensure the virtual machine starts in exclusive mode?

    Workaround to exclusive mode and create a nickname Kiosk Mode

    Use vmware-kvm option.

    With VMware Workstation 12, you can run virtual machines with VMware KVM, which allows you to use

    shortcut keys to switch between the execution of virtual machines and the host, as if they were attached to a KVM switch

    By default, you will not have a toolbar. In the KVM mode preferences (run vmware - kvm.exe - preferences), you can disable the CTRL + ALT key capture, allowing you to host. Since it allows the switching key you will take care to set the key to something like F2 switch, then use a free program like Sharpkeys to remove the assignment of the F2 key on the host. This essentially locks the user in the guest operating system by trapping the F2 key to pass. You do even if you don't have that 1 virtual machine running as the default behavior is to switch to the host operating system.

    There is one last caveat, Ctrl + Alt + Del is always available. It will activate the host and guest OS Secure Attention sequence (SAS). This can be bad. Never fear there is ways around this problem. Registry keys using following you can disable/remove all options on the screen Ctrl + Alt + Delete.  The user sees only a Cancel button. You may need to do this in your OS invited also based on this software is running. I use Wonderware that allows only keytrap mechanisms so only the host was necessary for me.

    In this file (saved as a .reg) applying it will do the following:

    For the computer Local - all options enabled (do not want to lock other users, such as recording manually as an administrator)

    For the current user (assumed there is auto login user by default)

    Disable/remove the following options:

    • Hide the fast user switching
    • Disable Task Manager
    • Disable Lock Workstation
    • Disable change password
    • No logoff

    Windows Registry Editor Version 5.00

    ; This disables the CTRL ALT DEL Secure Attention sequence (SAS) options

    ; anti-pop filter

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem\\\]

    "HideFastUserSwitching" = DWORD: 00000001

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem\\\]

    "DisableChangePassword ' = -.

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem\\\]

    "DisableTaskMgr" = -.

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem\\\]

    "DisableLockWorkstation =.

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]

    "HideFastUserSwitching" = DWORD: 00000001

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]

    "DisableTaskMgr" = DWORD: 00000001

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]

    "DisableLockWorkstation" = DWORD: 00000001

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]

    "DisableChangePassword" = DWORD: 00000001

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

    "NoLogOff" = DWORD: 00000001

    You can also use sharpkeys turn off Ctrl, Alt, delete (6 total) function keys but you must do so within the host and the guest, and this could prove problematic.

    There are other ways to accomplish this as removing the shell from Explorer to the host operating system at startup and its replacement by the VMware - KVM.exe (it's another registry setting), Ditto for the guest operating system.

  • Essential B keyboard Qosmio G20

    Hi all

    I am a new user on the forum and I hope someone can help.
    I have a new laptop qosmio g20, I'm having a problem when I'm typing email or by using the word etc., when I use the key b within a word in a sentence, it moves the cursor and begins to enter the text remaining in a different place. For example, I typed this note as soon as I typed the word problem he inserted "lem after"I a new»»
    As I touch type do not notice until all the words are scrambled is driving me crazy.

    JO

    Are you sure you're not accidentally the track stick and causing a "click"? I had this problem until I disabled him "enable Tapping" for the mouse pad. Drove me crazy as well!

    Phil

  • The main features and strange characters

    I can no longer type E to get a question mark; E to get quotes; or e for a slash.  I guess that ites the language bar, I had tried hard but now I canet even find the language bar.  All Suggestionse

    Thank you.

    Your keyboard has one or two other available input languages and keyboard layouts more probably be triggered from assigned access keys. You need get the Advanced key settings within the input languages and text Services.

    Certainly, it is hard to find dialogue. I had the same problem between US (in English), Canadian French and Canadian multilingual (standard). I left intact language, but removed the quick access keys.

    If you spot a small icon keyboard in the Bar of Notification (right part of the taskbar, just to the left of the clock and a few other icons), then right-click and select settings.

    If this isn't the case, you will need applet of the region and language Control Panel, dialog language and region , the button Change keyboards... thekeyboards and languages tab.

    Whatever it is, you should be at the service of text and input languages dialog box. Two options here:

    1. Remove all the languages that you do not want to stay on the system of the general tab.
    2. Click on the tab Advanced settings key . In the section of hot keys for input languages , use the Change Key Sequence button to remove any key Sequence that can interfere with your work. This includes the setting between the input languages (usually at the top of the list and probably the one causing your trouble).

    Click OK when you get out of each progressive dialogue in order to save the changes you have made.

  • AnyConnect VPN

    Hello

    I have configured AnyConnect VPN with split tunneling, so my internal networks is in the tunnel and get internet directly (not via an internal network).

    But we want to access one of the public IP (8.8.8.8) through AnyConnect VPN tunnel.

    When we check the capture of packets on an external interface, trying to ping 8.8.8.8 showing the icmp-request package but not get icmp-response packages.

    Additional configuration required to access the ip address above by tunnel?

    We have activated the below configuration as well.

    permit same-security-traffic intra-interface

    permit same-security-traffic inter-interface

    Please find details of the capture below: 192.168.18.71 is my ip from the pool AnyConnect VPN system.

    114 extended access-list allow ip host 192.168.18.71 8.8.8.8
    115 extended access-list allow host 8.8.8.8 ip 192.168.18.71

    output interface of capture within the list of access-114
    Capture interface entering inside the access-list 115

    See the capture of xxx - ASA (config) # outgoing

    1: 22:13:24.001800 192.168.18.71 > 8.8.8.8: icmp: echo request
    2: 22:13:28.986139 192.168.18.71 > 8.8.8.8: icmp: echo request
    3: 22:13:33.970561 192.168.18.71 > 8.8.8.8: icmp: echo request
    4: 22:13:38.971156 192.168.18.71 > 8.8.8.8: icmp: echo request
    5: 22:13:44.080058 192.168.18.71 > 8.8.8.8: icmp: echo request
    5 packs shown
    XXX - ASA (config) #.
    XXX - ASA (config) #.
    XXX - ASA (config) # display incoming capture

    0 packets captured

    0 illustrated package
    XXX - ASA (config) # display incoming capture

    0 packets captured

    0 illustrated package

    Kindly help us solve the problem.

    Thank you and best regards,

    Ashok

    I like to use the notation NAT object instead.  So maybe try:

    object network obj-192.168.18.0  nat (outside,outside) dynamic interface
  • Impossible to get Clipboard to work using WINDOWS 7 HOME PREMIUM

    I can't get the Clipboard to work. I use... WINDOWS 7 HOME PREMIUM. I'm pretty calculates illiterate; but can share specific details of Neuropsychiatry. :)

    If anyone can help that doctor who has three masters degrees... but needs quite simple directions, I woud be very grateful.

    Thankx, ANANKA

    08/04/2011

    I don't know exactly what problem you are having with the Clipboard, but the following link can help for a potential problem.  If this isn't the case, answer with more details on what is the problem. Also, if you try to copy the screen to the Clipboard, know that, in addition to PrntScrn, Windows 7 has a key "capture tool" (type Snipping Tool in the search programs and files box immediately above the button Start.  http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_programs/where-is-the-Clipboard-on-Windows-7/3bf718eb-5c47-E011-90B6-1cc1de79d2e2  Re this thread, you can also just paste in a painting or another application to see what is in the Clipboard.

Maybe you are looking for