CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2008
    Posts
    1

    Question cursor direction of system

    hello everyone..

    i m new at this forum- so will be glad if u will help me in a small thing..

    i need to get the cursor direction of the windows system.

    meaning - at a right moment - does the cursor is left-to-right or the opposite?

    i found function in c# that do something similar, but it won't return the rtl or ltr.

    if u are knowing of some code that i can run on my computer (visual studio) , it will help me a lot. i'm searching on the internet for couple of hours... and nothing.

    thanx in advance...

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: cursor direction of system

    Sorry, I don't understand what you mean by "left-to-right or the opposite" cursor.
    Is it just the way how the text is displayed (left-to-right or right-to-left)?
    If yes then have a look at the extended window style:
    :
    WS_EX_RTLREADING
    Displays the window text using right-to-left reading order properties.
    Victor Nijegorodov

  3. #3
    Join Date
    Jan 2008
    Posts
    48

    Re: cursor direction of system

    You must use one of the 3 System L. Apis
    See Adv. Win32 api ng
    news://194.177.96.26/comp.os.ms-wind...ogrammer.win32
    where it has often been discussed..

  4. #4
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: cursor direction of system

    May be there is a confusion in terminology here ? If you are talking about cursor, it is the thing that moves around with the mouse location change. If you are talking about the blinking thing that prompts you to write in edit controls, for e.g., it is called a caret and not a cursor. My understanding from what I read is, you are referring to the caret.

  5. #5
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: cursor direction of system

    Quote Originally Posted by MeitalKadria
    hello everyone..

    i m new at this forum- so will be glad if u will help me in a small thing..

    i need to get the cursor direction of the windows system.

    meaning - at a right moment - does the cursor is left-to-right or the opposite?

    i found function in c# that do something similar, but it won't return the rtl or ltr.

    if u are knowing of some code that i can run on my computer (visual studio) , it will help me a lot. i'm searching on the internet for couple of hours... and nothing.

    thanx in advance...
    Have they completely given up on teaching English in schools? Please at least make an effort to write correct and coherent English. You're getting ready to enter the real world. It will be required. Now's a good time to start.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured