It is currently Wed Sep 08, 2010 5:03 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Addict 3.5 Spell with WPtools - topic split
PostPosted: Mon Apr 27, 2009 10:24 am 
Offline

Joined: Tue Apr 21, 2009 10:46 am
Posts: 4
Mr. Novak,

I am confused. WPTools has a WPSpell which I thought was separate from and different than Addict's wpaddict.pas.

Obviously the "SpellAsYouGo" is documented on Julian's site as you pointed out (thank you) but that only confuses what components are required from each of you as he makes no mention of wpaddict.pas and suggests the inclusion of units not mentioned in Addict documentation. They are part of his Spell solution, are they not?

If this weren't partially (mostly!) working already I'd be asking a different question.

For instance, I understand that except in unussual circumstances, more unussual than I am experienced to design, only one compenent should be on a form for the addict speller and addict thesuarus: either addictxxx or addictbasexxx,; thesaurusxxx or thesaurusbasexxx.
#1) The base sets are subsets of the other component, right?
#2) having multiples of one, or one each of the super set and subset would amoung other things create multiple ConfigFileName properties with unpredictable or potentially complicated (and undesired) behavior.

The problem we are having is this... When we add a speciallized dictionary to the active dictionaries through the dialogs by checking its check box, we get exactly the behavior we want: additional words are recognized as found (correctly spelled.)

The problem is that when we leave the program and rerun, we need to re-add the check mark to the checkbox. We need to have BOTH the ability to CHECK this box for the user's initial use, and KEEP it checked for future use, without messing up the rest of the usability.

If I failed to be clear, please ask for clarification. I appreciate your help.

David

Addict 3.5
WPTools v6
Windows XP (Vista for users)


Top
 Profile  
 
 Post subject: Re: Addict 3.5 Spell with WPtools - topic split
PostPosted: Mon Apr 27, 2009 11:53 pm 
Offline
Site Admin

Joined: Wed Dec 31, 2008 2:55 pm
Posts: 74
Quote:
WPTools has a WPSpell which I thought was separate from and different than Addict's wpaddict.pas.

Yes, you're right about this. Julian also sells his own spelling checker built specifically for WPTools, but both our spelling checker and his own integrate into WPTools in a very similar manner.

It sounds, however, as though most of your problems are in dealing with configuration issues...

Quote:
For instance, I understand that except in unussual circumstances, more unussual than I am experienced to design, only one compenent should be on a form for the addict speller and addict thesuarus: either addictxxx or addictbasexxx,; thesaurusxxx or thesaurusbasexxx.

You should have only a single Addict Spell component and a single Addict Thesaurus component in your application. If they are only utilized on a single form, the recommended position is on that form. If they are utilized on multiple forms, the recommendation is to place the components on a shared data module that is created before the form. If you're using any of our UI or menuing then you do not want to use the base versions, but only the normal versions. The base versions really only existed in V3 for use by someone wanting the spelling engine for a completely custom solution. Most people do not need them.

Quote:
#1) The base sets are subsets of the other component, right?

All functionality in the base component is available in the full component.

Quote:
#2) having multiples of one, or one each of the super set and subset would amoung other things create multiple ConfigFileName properties with unpredictable or potentially complicated (and undesired) behavior.

Correct. You do not want to do this as you'll have two completely different instances of configuration "fighting" one another.

Quote:
The problem we are having is this... When we add a speciallized dictionary to the active dictionaries through the dialogs by checking its check box, we get exactly the behavior we want: additional words are recognized as found (correctly spelled.)

The problem is that when we leave the program and rerun, we need to re-add the check mark to the checkbox. We need to have BOTH the ability to CHECK this box for the user's initial use, and KEEP it checked for future use, without messing up the rest of the usability.


If I were to guess your problem here, I'd probably guess one of the following:

* You're using multiple instances of the spelling component (or a normal and a base component) all in the same application. This effectively leaves the configuration in a last-writer-wins situation where the configuration that wasn't changed can overwrite the one that was.

* Your application is leaking the Addict spelling component (it's never being freed). As mentioned in your other thread, by default the configuration is saved on component shutdown...

* The configuration is setup in such a manner that it fails to write -- unreachable filename, etc...

This should be a good starting point for you to examine...

Thanks,
Michael Novak
Addictive Software


Top
 Profile  
 
 Post subject: Re: Addict 3.5 Spell with WPtools - topic split
PostPosted: Tue Apr 28, 2009 12:11 pm 
Offline

Joined: Tue Apr 21, 2009 10:46 am
Posts: 4
Thanks, we seem to have dodged the bullet on most of those.

#1) I'm still unclear how Julian's commands are working for Addict, to turn Addict on and off reliably. Does this make sense to you?

#2) The other exception is the issue of freeing the Addict components(Spell and Thesaurus and Thesuarus control?).

The code base I'm working with is written without explicit Freeings under the idea that everything is freed at application shutdown. Therefore I won't get local direction on where Free should be done, so I wonder if you can give me some leads to follow?

Thank you. -- David


Top
 Profile  
 
 Post subject: Re: Addict 3.5 Spell with WPtools - topic split
PostPosted: Fri May 01, 2009 6:47 pm 
Offline

Joined: Mon Jan 05, 2009 2:50 am
Posts: 131
Location: Kalgoorlie, Western Australia
Have you checked out the Addict 3 / WPTools Demos at:

http://www.addictivesoftware.com/addict3/3rdparty.htm

They may help point you in the right direction :)

_________________
Glenn Crouch support@addictivesoftware.com
Addictive Software Support
http://www.addictivesoftware.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Template made by DEVPPL Flash Games