Results 1 to 5 of 5

Thread: translating chars

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    how can i translate characters i receive in WM_KEYUP/DOWN in windowproc?
    i mean: if shift is pressed, i want the char to be uppercase, if not, lowercase, etc.
    buzzwords are the language of fools

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    cmon..no ideas??
    will have to write a *manual* one..which won't be good cos it won't take it into account locale.
    buzzwords are the language of fools

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    im not using forms
    im handling messages directly (window was made with createwindow)
    i want the API to translate it for me
    buzzwords are the language of fools

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Well maybe you should check out these api calls:
    Code:
    Public Declare Function CharUpper Lib "user32" Alias "CharUpperA" (ByVal lpsz As String) As String
    Public Declare Function CharLower Lib "user32" Alias "CharLowerA" (ByVal lpsz As String) As String
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    nope, i want a call that translates the keycode from WM_KEYUP message (the lparam) to either upper or lower case according to if shift is pressed and according to keybrd layout (US/europe numbers at top r different).
    buzzwords are the language of fools

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