form1... contains a richtext box with some words
form2... contains two lists with some group of words saperated by an empty field
for example
list1
ocean
The Deep
Marine
choose
decide on
Pick
list2
22
66
87
57
93
11
how can i assign apopup menu for wach word in form 1 with the valus of these lists
as folows
the first word in text is (sea)
popup menu will be
ocean <22>
The Deep <66>
Marine <87>
then if the user select one of these options (sea) will be replased by that option
the second word in text is (select)
popup menu sholud be
choose <57>
decide on < 93>
Pick < 11>
if the user picked ocean <22> in the first case and decide on < 93> in the second case
the text will be shown as
ocean<22> decide on< 93>
why are u using listboxes for these word?
how many "choices" will there be? (is it going to be more than sea and select)??
why have a second listbox that has the numbers in it?
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
these two words and the numbers are just to simplyfy the idea
because the actual project deals with arabic text
as u see in the URL
....from the beging i choose to extract the options of each word as you told me and put them in a list box then i did the same thing to get the english translation for each option and put them in another list
.... i don't know the number of words in the text, it is different text in each run
my questions now :
is it possible to divide the list box and convert it to a popup for each word?
can i merg the two lists each row togather ?
how can i replace the choosen option with the original woed in the text?
here is a sample project. .it is using the Lookup word as the possible match from the rich textbox... let me know if u want it to use the input string...
this will build a menu for the highlighted word... then replaced if clicked.
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
ok replace the code in the sample project with the code below..
a few notes....
1 (sorry the sample had a listbox and command button... leftover from testing)
2 I cannot test since the "INPUT string" is in arabic, I cant check it, only shows ????? in my test files.. so hopefull it will work for you
3 either select the word, or click in it then right click, menu should appear
Hi Static...
I used you code in replay #12, because I have in my program PopUp menu that appear by right click with some words (translation words), when we select the word from menu it is show next to the word in RichTextBox and if i select another word it show also next to it.
But I want to delete the first word i selected and print the second word i select it from menu.
How can I do that?