Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor sukriti.sym's Avatar
    Join Date
    Apr 2009
    Posts
    62
    how can i get each co-ordinate as we drag stylus on screen and is their any way to store the co-odinate.

  2. #2
    Super Contributor shafali gupta's Avatar
    Join Date
    Nov 2004
    Posts
    1,009
    To capture drag there is EnableDragEvent() that you will have to call in constructL() and then in HandlePointerEventL() you will receive this event TPointerEvent::EDrag.

    These events are only received after button 1 is down. Button1down will provide you with the initial position and EDrag will give you the next pointerposition and when you lift your stylus EButton1Up wil be called.
    Regards,
    Shafali

  3. #3
    Regular Contributor sukriti.sym's Avatar
    Join Date
    Apr 2009
    Posts
    62
    Thanks for replying.

    I want each x and y coordinate of line from intial point to the point where i left it .
    can u tell me any logic to store that point.like in array ,can we fetch each point on array?

  4. #4
    Super Contributor shafali gupta's Avatar
    Join Date
    Nov 2004
    Posts
    1,009
    you can create an RPointerArray<TPointerEvent> of this type and can store all the pointer position from EButton1Down -> EDrag -> EButton1Up in this order.
    Regards,
    Shafali

Similar Threads

  1. Replies: 3
    Last Post: 2007-01-18, 11:27
  2. problem with Code Warrior 5.2
    By mayankkedia in forum Symbian C++
    Replies: 4
    Last Post: 2006-06-22, 08:26
  3. Carbide.c++ Express don't want build HelloWorld
    By azarov-it in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 7
    Last Post: 2006-04-09, 11:00
  4. code warrior problems
    By mayankkedia in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2004-10-25, 06:59
  5. problem with codewarrior 5.2
    By mayankkedia in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2004-09-27, 16:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved