Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!news1.oakland.edu!news.concourse.com!ragnarok.oar.net!malgudi.oar.net!utnetw.utoledo.edu!robotics.eng.utoledo.edu!jreed
From: jreed@robotics.eng.utoledo.edu (John Reed)
Subject: Re: Smalltalk/X DrawTool
Message-ID: <D7K47M.JKs@utnetw.utoledo.edu>
Sender: news@utnetw.utoledo.edu (News Manager)
Organization: University of Toledo
References:  <3n605h$sh0@detroit.freenet.org>
Date: Mon, 24 Apr 1995 20:42:57 GMT
Lines: 64

In article <3n605h$sh0@detroit.freenet.org>, ac657@detroit.freenet.org (Thomas Gagne) writes:
|> 
|> I'm kind of new to Smalltalk, so the following baffles me:
|> 
|> Warning:
|> Error while launching ...
|> unhandled exception:  Launcher does not understand: startDrawTool
|> 
|> Debugger:
|> ** no method - no source **
|> 
|> 
|> -- 
|> Thomas Gagne

The problem is that there is no method defined for starting
DrawTool (and many other demos) in the demo version of ST/X.
Here is what I did to solve the problem:

If you go to the Launcher class, there is a method called initializeMenu
which, if you look at the source, has the various methods that are 
called when you select a menu item. For the DrawTool, you have:

	myMenu subMenuAt:#goodyMenu put:(
	    PopUpMenu labels:(resources array:#(

[stuff deleted]

                    'DrawTool'
		  ))
	   selectors:#(

[stuff deleted]

		     startDrawTool
		    )

When you select the menu labeled DrawTool, the message
startDrawTool is sent to Launcher. The problem is that
there is no startDrawTool method defined in Launcher (hence
the error - no method). So you need to add a method to
the Launcher class called startDrawTool like this:

	startDrawTool
	     "Open a DrawTool"

	      DrawTool open


and accept the definition. And that's it! Now go to the
Launcher menu and click on DrawTool and it should start
up.

Hope this helps,

-John

-------------------------------------------------------------
John A. Reed             | email: jreed@prince.es.utoledo.edu
Graduate Research Assoc. |
University of Toledo     | phone: 419-537-7835
Toledo,  Ohio  43606     | fax:   419-537-2907
-------------------------------------------------------------

