[comp.sys.amiga.tech] NotePad WINDOW= ToolType

news@csd4.milw.wisc.edu (Net news owner) (02/28/89)

icons and add tooltypes.  While testing this program I came up with some
strange results when I editted the WINDOW= Tooltype of NotePad icons.  For
some reason NotePad was finicky parsing the string and would only open the
specified window size if I had spaces between the first two parameters.
WINDOW= 10, 10, 400,150   (would work)
WINDOW= 10,10,400,150     (would not work, opens with default window size)
From: trantow@csd4.milw.wisc.edu (Jerry J Trantow)
Path: csd4.milw.wisc.edu!trantow

My question is: Does Notepad have some strange spacing requirements in parsing
the WINDOW= Tool?

Am I free to edit the Tool strings or do I need to do an ADD and DELETE 
Tooltype?

One last question.  When I do a PutDisk() my updated values go onto the disk.
How do I tell WorkBench to update the icons in the window? (right now I open 
and close the window to get the new settings)


Ok, Ok, this article probably belongs in .tech

_____________________________________________________________________________
Jerry J. Trantow          | What infinite delight would there be in conversing
1560 A. East Irving Place | with the dead in another world and asking 
Milwaukee, Wi 53202-1460  | questions! In another world they do not put a man
(414) 289-0503       | to death for asking questions, assuredly not! Socrates
_____________________________________________________________________________

papa@pollux.usc.edu (Marco Papa) (02/28/89)

In article <1318@csd4.milw.wisc.edu> trantow@csd4.milw.wisc.edu (Jerry J Trantow) writes:
|>icons and add tooltypes.  While testing this program I came up with some
|>strange results when I editted the WINDOW= Tooltype of NotePad icons.  For
|>some reason NotePad was finicky parsing the string and would only open the
|>specified window size if I had spaces between the first two parameters.
|>WINDOW= 10, 10, 400,150   (would work)
|>WINDOW= 10,10,400,150     (would not work, opens with default window size)
|>From: trantow@csd4.milw.wisc.edu (Jerry J Trantow)
|>Path: csd4.milw.wisc.edu!trantow
|>
|>My question is: Does Notepad have some strange spacing requirements in parsing
|>the WINDOW= Tool?

Nothing strange. It just wants is EXACTLY as your second example.  This is
documented in the 1.2 Enhancer Software manual.  In fact according to the docs
there should be no space between the = and the first digit.  This is the 
syntax:

WINDOW=<num>,<num>,<num>,<num>

<num> is a 3-digit number; No spaces are allowed.

|>Am I free to edit the Tool strings or do I need to do an ADD and DELETE 
|>Tooltype?

Feel free to edit the Tool strings, as long as you respect the proper syntax.
The FONT= and FLAGS= have their specific syntax, too.

|>One last question.  When I do a PutDisk() my updated values go onto the disk.
|>How do I tell WorkBench to update the icons in the window? (right now I open 
|>and close the window to get the new settings)

That's the right way.  WB won't update icons that are "currently displayed"
if you've changed their corresponding .info files.  You must make WB read 
them again from disk. Opening a closing a WB window will do the job.

-- Marco Papa 'Doc'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
uucp:...!pollux!papa       BIX:papa       ARPAnet:pollux!papa@oberon.usc.edu
 "There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=