×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    4

    How to detect when EDrag out of window area?

    I use CreateWindow() to create a new window for controls.
    See this PointerEvent process : EButtonDown -> EDrag -> EButtonUp
    when I move finger out of the range of this control's window, all of the PointerEvent(EDrag, EButtonUp) will be lost.
    I don't how to capture event when drag out of the window area, so that I can make all of the codes under EButtonUp work correctly

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: How to detect when EDrag out of window area?

    You can make a check for whether you are going out of window area or not.

    if (WindowRect.Contains(aPointerEvent.iPosition))
    {
    // it means your pointer event lies in the window
    }
    Regards,
    Shafali

  3. #3
    Registered User
    Join Date
    Aug 2009
    Posts
    4

    Re: How to detect when EDrag out of window area?

    thank for you reply, but i think it cannot work

    when the window not contain the point, the PointerEvent cannot be capture, so where can I put these codes to check whether the point is out of range?

    my problem is that pointer is out of CONTROL's window (created by CreateWindow()), not any rect within the window.

  4. #4
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    146

    Re: How to detect when EDrag out of window area?

    Have you tried using ClaimPointerGrab(ETrue) and/or SetPointerCapture(ETrue)?

  5. #5
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: How to detect when EDrag out of window area?

    A window can capture pointer clicks from outsides it's visible area. In order to do so it has to call the function RWindowBase::SetPointerCapture(). Various values can be passed as a parameter to this function allowing for example: no capturing to take place, capturing of all events from within the windows window group, capturing of all events from within all groups. If several windows request events to be captured then the window server will do some arbitration.
    Regards,
    Shafali

Similar Threads

  1. how to detect appearance of FEP word selection window
    By tarn in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-05-14, 06:14
  2. how to detect appearance of FEP candidate words window
    By censhuo@ in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-09-17, 14:17
  3. Detect editor window in focus
    By mew1979 in forum Symbian
    Replies: 5
    Last Post: 2007-08-17, 13:38
  4. Drawing outside CCoecontrols Window area
    By krishnaramram in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-10-13, 10:44
  5. About window views
    By thodime_guru in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-06-17, 18:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×