Results 1 to 11 of 11

Thread: how i can done that???

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    14

    how i can done that???

    Hi every body
    I have project as book electronic and any words in this book I want translate it into more than one language .
    The idea behind this project is imagine page of any books wrote such as English language , the page's consist of paragraphs ,and the paragraphs consist of words.
    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.

    Which programming languages I can do that ?
    Are I can do it by c sharp language ?
    Given some idea about how done that project ?

    Pleas , I want help from experience body
    I sorry on my enghish , but I hope if cleared

  2. #2
    Fanatic Member
    Join Date
    Jun 2003
    Location
    Worcester, MA
    Posts
    782

    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:
    Attached Images Attached Images  
    C#.net, VB, C++, Java, VS 2005/2008
    Dont' forget to rate posts that are helpful to you.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    14

    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?

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    14

    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

  6. #6
    Fanatic Member
    Join Date
    Jun 2003
    Location
    Worcester, MA
    Posts
    782

    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.
    C#.net, VB, C++, Java, VS 2005/2008
    Dont' forget to rate posts that are helpful to you.

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    14

    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 :



    whereas this result not correct:



    this is my problem

  8. #8
    Fanatic Member
    Join Date
    Jun 2003
    Location
    Worcester, MA
    Posts
    782

    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.
    C#.net, VB, C++, Java, VS 2005/2008
    Dont' forget to rate posts that are helpful to you.

  9. #9

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    14

    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 .

  10. #10
    Fanatic Member
    Join Date
    Jun 2003
    Location
    Worcester, MA
    Posts
    782

    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
    C#.net, VB, C++, Java, VS 2005/2008
    Dont' forget to rate posts that are helpful to you.

  11. #11

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    14

    Re: how i can done that???

    how i can done that !!!

    i may lost my mind because of this project.
    probably we can't done that by c sharp , is right ?

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