×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    Question know my current position in the screen..

    hi, i am using an application that will show me my current position of the mouse(X,Y) on the screen..my problem is that i cant see my cursor on the screen!!!!
    i have set mouse tracking to true but still cant see my mouse on the screen
    any idea about this problem?
    Thank you

  2. #2
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    Re: know my current position in the screen..

    Any help please?

  3. #3
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: know my current position in the screen..

    Hi Rondo,

    Do you want display Virtual Cursor on the screen......??

  4. #4
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    Re: know my current position in the screen..

    Quote Originally Posted by kis_spn View Post
    Hi Rondo,

    Do you want display Virtual Cursor on the screen......??
    hi kis_spn,
    i need to show a cursor on the screen, and when i click from the keyboard i want to display my current position where the cursor is...but i cant see the cursor on the screen
    Thank you in advance
    Last edited by Rondo23; 2011-03-02 at 07:26. Reason: typing

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: know my current position in the screen..

    Which phone model are you targeting or are you working on/with the emulator only? On touch-screen phones like the N8, there is no visible cursor and presumably no position until you press down somewhere on the screen.

  6. #6
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    Re: know my current position in the screen..

    Quote Originally Posted by petrib View Post
    Which phone model are you targeting or are you working on/with the emulator only? On touch-screen phones like the N8, there is no visible cursor and presumably no position until you press down somewhere on the screen.
    hi petrib,
    i am using the N97 device and i also tried on the emulator and both the same result

  7. #7
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    Re: know my current position in the screen..

    i also tried it on the E75 device and same result too

  8. #8
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: know my current position in the screen..

    Quote Originally Posted by Rondo23 View Post
    hi kis_spn,
    i need to show a cursor on the screen, and when i click from the keyboard i want to display my current position where the cursor is...but i cant see the cursor on the screen
    Thank you in advance
    Hi Rodo,

    Have a seen this code.....

    void CMyAppUi::CmdVirtualCursorChangeStateL()
    {
    // Virtual cursor-important to check against EOff, since there are three states
    // (EOn, ESuspended, EOff), ESuspended treated as cursor being on but suspended.
    TRect newArea;

    if(IsVirtualCursorOn())
    {
    newArea = iCursorAreaBeforeVC; // Member variable of type TRect
    iVCState = TEikVirtualCursor::EOff; // Member variable of type TEikVirtualCursor
    }else
    {
    iCursorAreaBeforeVC = iEikonEnv->WsSession().PointerCursorArea();
    newArea = ClientRect();
    iVCState = TEikVirtualCursor::EOn;
    }
    iEikonEnv->WsSession().SetPointerCursorArea(newArea);
    iEikonEnv->VirtualCursor().SetCursorStateL(iVCState,*iEikonEnv);
    }

    TBool CMyAppUi::IsVirtualCursorOn() const
    {
    // Virtual cursor-important to check against EOff, since there are three states
    // (EOn, ESuspended, EOff), ESuspended treated as cursor being on but suspended.
    return (iEikonEnv->VirtualCursor().CursorState(*iEikonEnv)!=TEikVirtualCursor::EOff);

    }

  9. #9
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    Re: know my current position in the screen..

    hi , i tried this code but getting few errors about the declaration of some parameters
    what should be the declaration of:
    iVCState , iCursorAreaBeforeVC, ClientRect, iEikonEnv(iCoeEnv)
    thank you again

  10. #10
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    Re: know my current position in the screen..

    i found some stuff concerning QScreenCursor,..i didnt knw what this should do and i am not able to know how to use it..
    is QScreenCursor related to my problem?

  11. #11
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: know my current position in the screen..

    If you connect USB mouse with your N8 phone, you can see the mouse and use it by the mouse

    Quote Originally Posted by petrib View Post
    Which phone model are you targeting or are you working on/with the emulator only? On touch-screen phones like the N8, there is no visible cursor and presumably no position until you press down somewhere on the screen.

  12. #12
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: know my current position in the screen..

    Quote Originally Posted by Rondo23 View Post
    hi , i tried this code but getting few errors about the declaration of some parameters
    what should be the declaration of:
    iVCState , iCursorAreaBeforeVC, ClientRect, iEikonEnv(iCoeEnv)
    thank you again
    TRect iCursorAreaBeforeVC ; // Define TRect Type
    TState iVCState; Type //include <eikvcurs.h >

    ClientRect // Gets the area of the screen available to the application for drawing // You can define own RECT
    iEikonEnv // include <EIKDEF.H> // include <EIKENV.H>

  13. #13
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    Re: know my current position in the screen..

    hi mahbub..all i need is to see the cursor on the screen and be able to move it from my keypad and when i click on my keyPad to see a msgbox with my current position(X and Y)
    i am able to see the position by touch(click on the screen) and it works great .. i need to do it by keypad , my problem is that i cant see the cursor to be able to change the position and click.
    any solution here please?!
    Thank you
    Rondo

  14. #14
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    Re: know my current position in the screen..

    Quote Originally Posted by kis_spn View Post
    TRect iCursorAreaBeforeVC ; // Define TRect Type
    TState iVCState; Type //include <eikvcurs.h >

    ClientRect // Gets the area of the screen available to the application for drawing // You can define own RECT
    iEikonEnv // include <EIKDEF.H> // include <EIKENV.H>
    i am still getting errors for TState...i included eikvcurs.h
    the error is: TState does not name a Type
    should i include anything else then eikvcurs.h ? i declared as following: TState iVCState;

  15. #15
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: know my current position in the screen..

    TState iVCState; Type //include <eikvcurs.h > I think you have copied this line Please remove Type........Only required eikvcurs.h header file

Similar Threads

  1. Replies: 2
    Last Post: 2010-08-13, 10:24
  2. Replies: 2
    Last Post: 2009-04-24, 04:38
  3. Replies: 10
    Last Post: 2008-07-24, 06:39
  4. How to know the current view is an Editable Screen
    By jobincantony in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-04-07, 07:00
  5. Replies: 2
    Last Post: 2008-01-12, 09:47

Posting Permissions

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