1 Attachment(s)
Re: how i can done that???
So just to clarify. It sounds like you want to load the electronic book into your program, and then display the text. Once you have done this you want the user to be able to right click on a word and translate it. To do this you would add a "ContextMenuStrip" to your project. Then go to the ContextMenuStrip property of the control you are using to display the text, and set its value to the ContextMenuStrip you have added. Then you can modify the Strip to have a list of every language you want. Does this make sense?
So the program might look something like this:
Re: how i can done that???
If it's a book-ish application, I'd imagine that the presentation would occur in an embedded page or in a richtextbox or something similar. You could have a context menu as steve has shown you or make the difficult word a hyperlink which the user can click on to choose a language.
Re: how i can done that???
Quote:
Originally Posted by Steve_F
So just to clarify. It sounds like you want to load the electronic book into your program, and then display the text. Once you have done this you want the user to be able to right click on a word and translate it. To do this you would add a "ContextMenuStrip" to your project. Then go to the ContextMenuStrip property of the control you are using to display the text, and set its value to the ContextMenuStrip you have added. Then you can modify the Strip to have a list of every language you want. Does this make sense?
So the program might look something like this:
thank you guy, your post useful me and closed of my idea
I am tried to do that but conn't , I am don't know why ?
and are you do link on word inside control or on control?
how you make links , is depended position word inside controls?
Re: how i can done that???
Quote:
Originally Posted by mendhak
If it's a book-ish application, I'd imagine that the presentation would occur in an embedded page or in a richtextbox or something similar. You could have a context menu as steve has shown you or make the difficult word a hyperlink which the user can click on to choose a language.
thank you guy for help me ,
your idea is correct , maybe if I use richtextbox is best but my problem how i can do context menu on word a hyperlink?I can make hyperlink on word , which when user click on go to other place but I cann't set user click on to choose a language .
thank you on your idea but still my problem pending
Re: how i can done that???
So do you want to have the menu pop up like I showed you or do you want to have the word be a hyperlink?
If you tried my way could you tell me the steps you followed to try and do what I did? You need to make sure you create the ContextMenuStrip. Then there will be a property called ContextMenuStrip on each of your items... So go to your rich text box and set the value to the Strip you created.
Re: how i can done that???
Quote:
Originally Posted by kaloon
Hi every body
I
I need make links on some words and when users click on this word result on appear menus contain languages chooses . the user can translate word by click on it into language that selected.
now , my tried is successful , but i am want make hyperlink on some words not all word that mean i am not want translate all word in richtextbox .
this result is correct :
http://www7.0zz0.com/2008/07/22/19/646598374.png
whereas this result not correct:
http://www7.0zz0.com/2008/07/22/19/877040507.png
this is my problem
Re: how i can done that???
So you mean you want to have certain words that you will not allow the user to translate? If so, how do you want to store this list? In a database or something else? If not could you explain a little more.
Re: how i can done that???
Quote:
Originally Posted by Steve_F
So you mean you want to have certain words that you will not allow the user to translate?
yes is right
Quote:
Originally Posted by Steve_F
how do you want to store this list?
I think in databse best or what ?
in fact , I am not have exactly idea how do ? but I want any method can done it. the matter I can do it .
Re: how i can done that???
I'm not sure how efficient this would be but you could have it so that :
1. User right clicks on a word
2. The word is passed as a parameter to a stored procedure in your DB that returns a boolean as to whether or not it exists (this will be the list of words not allowed to translate)
3. if(!exists) show the menu of other languages the word can be translated into
Re: how i can done that???
how i can done that !!!
i may lost my mind because of this project. :mad:
probably we can't done that by c sharp , is right ?:confused: