Search the web
Sign In
New User? Sign Up
vbra · Visual Basic - Reliable Answers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Ligature and VB   Message List  
Reply | Forward Message #41 of 42 |
Hello,

In one of my VB project, I'm sending PostMessage API function
to send character of my desired value to control. e.g. If I
need to send character J to the keyboard, I'm using

dim s as Long
s = PostMessage(Text1.hwnd, WM_CHAR, 99, 0)

where 99 is the ASCII value of character J in my font.

Now, in certain languages e.g. Japanese, Hindi and other
Asian languages, characters are made by combining 2 or
more different characters. e.g. character N of devnagiri in
some font will be made by combining ascii values 120
followed by 201.

So, I've to send 2 Postmessage calls

s = PostMessage(Text1.hwnd, WM_CHAR, 120, 0)
s = PostMessage(Text1.hwnd, WM_CHAR, 201, 0)

Now, here the real problem starts. I've to used delete /
backspace keys twice and it should be used once. This is my
client's requirement as well as rules suggested in MSDN by
Microsoft.

What I've found on Net / MSDN / Books, this solution is under
complex scripts and / or making ligatures.

1. Is there any way to send 2 characters in PostMessage function in 1 statement
e.g. using Bitwise And
120 to binary is 11110000
201 to binary is 110010011

2. Any freeware activex control / dll to make ligatures of TTF file?


I hope you've understoof my problem now. Please send me your
valuable suggestion, if you can.


Thanks

Hoping for early and positive reply.

With Best Wishes
Bye!

Gopal Krishan




[Non-text portions of this message have been removed]





Tue Oct 8, 2002 9:08 am

mswordprog
Offline Offline
Send Email Send Email

Forward
Message #41 of 42 |
Expand Messages Author Sort by Date

Hello, In one of my VB project, I'm sending PostMessage API function to send character of my desired value to control. e.g. If I need to send character J to...
Gopal Krishan
mswordprog
Offline Send Email
Oct 10, 2002
6:30 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help