in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Only Allow New Words To Specific Custom Dictionary

Last post 07-19-2007 4:05 PM by MatthewB. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-18-2007 1:12 PM

    Only Allow New Words To Specific Custom Dictionary

    In my application there are 2 custom dictionaries. One is downloaded from a database at runtime that is used for all users. These words are maintained by the application administrator. They are downloaded to a temporary file and deleted on application close. The second one is user specific and is stored locally for the user. The problem is the user can change the dictionary from the one I default them to, adding the words to a temporary file that is deleted when the application is closed. In other words how do I remove the dropdown that contains the path to both dictionaries as the user shouldn't have a choice?

  • 06-20-2007 4:30 AM In reply to

    Re: Only Allow New Words To Specific Custom Dictionary

    Hi,
     
    you can't remove the dropdown. Try to use WhichCustomDict property to select an index of a default dictionary so user would not need to choose it manually.
     
    Regards,
    Sergey.
    <MatthewB> wrote in message news:195945@test.componentone.com...

    In my application there are 2 custom dictionaries. One is downloaded from a database at runtime that is used for all users. These words are maintained by the application administrator. They are downloaded to a temporary file and deleted on application close. The second one is user specific and is stored locally for the user. The problem is the user can change the dictionary from the one I default them to, adding the words to a temporary file that is deleted when the application is closed. In other words how do I remove the dropdown that contains the path to both dictionaries as the user shouldn't have a choice?



    http://home.componentone.com/cs/forums/195945/ShowPost.aspx

  • 06-20-2007 9:13 AM In reply to

    Re: Only Allow New Words To Specific Custom Dictionary

    Sergey,

    I currently do this.  The problem is that application users always know better than a developer how they want to save things.  Is this something that could be exposed to allow me to force the proper location.

    Matt

  • 06-20-2007 9:23 PM In reply to

    Re: Only Allow New Words To Specific Custom Dictionary

    You can try to replace standard C1SpellDialog with your own.
    Examine CustomUI sample, it shows how to do it.
    Sergey.
    <MatthewB> wrote in message news:196009@test.componentone.com...

    Sergey,

    I currently do this.  The problem is that application users always know better than a developer how they want to save things.  Is this something that could be exposed to allow me to force the proper location.

    Matt



    http://home.componentone.com/cs/forums/195996/ShowPost.aspx#196009

  • 07-19-2007 4:05 PM In reply to

    Re: Only Allow New Words To Specific Custom Dictionary

    Sergey,

    I took a look through the process of creating a custom dialog.  That really seems like overkill for what I am needing.  How does one request that a property be added allowing me to display=true/false?

    Matt

     

     

Page 1 of 1 (5 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.