Hi...
in my project i have a function (translate()) it can translate a words frome notepade file to other notepade file, then i want to take the words in the second notepade to replace it with the words in popmenu.
(The popmenu appear when we click right click on the word we have it in RichTextBox)
hi..
when i do right click on the word in RichTxetBox, the word is highlight and the PopMenu appear with some words in it, So i want to replace (translate) these word in PopMenu with the word in NotePade.
Thanks
Hi gavio...
This is my code to what i say it before about right click on the word, So i want now to replace the word that appear in popup menu with the word i have it in notepade...
Is there any idea to do that?
VB Code:
Private Sub RichTextBox1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
Hi gavio...
i attach the form, But this is the second form the first form we called it main and in the main form we have textBox (txtFileText) we load in it arabic paragraph then we run in DOS (Buckwalter code),
After that it will go to that form (first) and get that paragraph to the RichTextBox, So when we do right click on any word we show a popupmenu with one word or more and these words in buckwalter transelation.
and i want to back these word in Buckwalter to Arabic (we have arabic word in translate() function)
for example:
if we do right click then in PopMenu we can find that:
$amasa
$amisa
$am~asa
$amos
$amos
we want to chang the above words with the below words and these words we can find it in translate function in (newoutfile.txt) NotePade file..
شَمَسَ
شَمِسَ
شَمَّسَ
شَمْس
شَمْس
can we make join between the PopUpMenu and the notepade in translate function..
thanks,