Jack said:

> Plus I just instantiate the crossword just the one time this way
and everyone's working from the same crossword; otherwise, wouldn't the first window have to pass the grid size info to the second (using global variables I guess), so that the second window could instantiate the crossword with the speciified dimensions?

I'm unclear what you mean here because I don't know the details of your approach, so I'll ramble. SetUp will instantiate a new Crossword instance, and pass the user defined parameters in a constructor or call an Init method belonging to Crossword. CrossWord will have properties that accept and hold these parameters, and methods to implement the puzzle configuration accordingly.

It's likely that CrossWord will enable a menuitem for SetUp when it opens so that the user can revise the configuration at this point, probably before providing input into the puzzle.

Your File menu may also have a New Puzzle menu item with a menuhandler in App. When this is selected you would instantiate a new
Crossword instance, using the current user settings from SetUp.


You're right that I'm going to want to add a NewPuzzle menu which will bring up the SetUp window.

I think I'm unclear just where the best place is to instantiate a new Crossword in my code. Right now it's in the SetUp window code, but then no other window knows about the created Crossword instance. Do I subclass Application, and instantiate the Crossword there when it activates, which I assume makes it available to the entire program?

Is that clear? I'm still new to the RB world so I'm a little fuzzy on things that may be obvious to y'all...

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to