Subject: Re: Edit Model Help menu
From: Paolo Campo (paoloppa@yahoo.com)
Date: Thu Aug 19 2004 - 12:46:35 CEST
Hi,
Are you referring to the "About this model" and "How
to run this model" pop-up windows? If yes, you may
want to go to the model's scheduler and then go to the
level of 'CormasModel' in the hierarchy. Click on the
'Class' tab. There should be a protocol named
'description' which contains the following methods: 1)
'aboutIt', and 2) 'howToRunIt'.
the 'aboutIt' method would appear like this:
aboutIt
| txt |
txt := 'To be written... Sorry...' asText
emphasizeAllWith: #(#bold #large).
ComposedTextView open: txt asValue
label: 'About ' , self name
icon: (Icon constantNamed: #workspace)
extent: 200 @ 50
and the 'howToRunIt' method would appear like this:
howToRunIt
| txt |
txt := 'To be written... Sorry...' asText
emphasizeAllWith: #(#bold #large).
ComposedTextView open: txt asValue
label: 'How to run ' , self name , ' step-by-step
instructions'
icon: (Icon constantNamed: #workspace)
extent: 200 @ 50
You could define these methods at the level of your
model. And you could change the text within the
single quotations. You could also change the size of
the pop-window by changing the values of the extent.
You could also experiment on the other variables.
I hope this helps. By the way, I am still using the
2003 version of Cormas and I haven't downloaded the
2004 version so I am not sure if this has already
changed.
regards,
Paolo
--- Pierre-Marcel GORAL <corran_pmg@hotmail.com>
wrote:
---------------------------------
Hello everybody,
Does anyone know how to fill in the help topics of a
cormas model?
Apparently the cut paste method isn't working. ;-)
I have to explain, before publishing, how my model
works, and some economical principals.
Best regards,
Pierre-Marcel GORAL
---------------------------------
Bloquez les fenêtres pop-up, c'est gratuit ! Cliquez
ici !
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail