I am trying to make a few advanced squeak blocks,
[run code [ ] ]
(run code [ ] )
[ScratchFrameMorph run code [ ] ]
(ScratchFrameMorph run code [ ] )
but I need to know two things:
How can I add Enter to the ExpressionArgMorph?
How can I make something run code given through a textbox?
Offline
Billybob-Mario wrote:
I am trying to make a few advanced squeak blocks,
[run code [ ] ]
Compiler evaluate: t1 for: self logged: false
(run code [ ] )
^ Compiler evaluate: t1 for: self logged: false
[ScratchFrameMorph run code [ ] ]
Compiler evaluate: t1 for: ScratchFrameMorph logged: false
(ScratchFrameMorph run code [ ] )
^ Compiler evaluate: t1 for: ScratchFrameMorph logged: false
but I need to know two things:
How can I add Enter to the ExpressionArgMorph?
i'll need to investigate. you don't need it anyway.
How can I make something run code given through a textbox?
no clue what you're talking about
Offline
LS97 wrote:
Billybob-Mario wrote:
I am trying to make a few advanced squeak blocks,
[run code [ ] ]
Compiler evaluate: t1 for: self logged: false
(run code [ ] )
^ Compiler evaluate: t1 for: self logged: false
[ScratchFrameMorph run code [ ] ]
Compiler evaluate: t1 for: ScratchFrameMorph logged: false
(ScratchFrameMorph run code [ ] )
^ Compiler evaluate: t1 for: ScratchFrameMorph logged: false
but I need to know two things:
How can I add Enter to the ExpressionArgMorph?
i'll need to investigate. you don't need it anyway.
How can I make something run code given through a textbox?
no clue what you're talking about
You solved this above.
Thank you.
Offline
you're welcome. happy to help
Offline
I need enter because it makes you able to write long commands.
Offline
The flag is already designed for enter. Press enter and the flags pressed!
Offline
johnnydean1 wrote:
The flag is already designed for enter. Press enter and the flags pressed!
- . -
that's not what b-m meant
Offline
Billybob-Mario wrote:
I need enter because it makes you able to write long commands.
you don't really need enter, the commands are separated by a dot anyway. in fact,
self action. self beep. ^ 12.
is the same as
self action.
self beep.
^ 12.
Offline
LS97 wrote:
Billybob-Mario wrote:
I need enter because it makes you able to write long commands.
you don't really need enter, the commands are separated by a dot anyway. in fact,
self action. self beep. ^ 12.
is the same as
self action.
self beep.
^ 12.
Someone might want to make a long command. Also, it could be useful in other places.
Offline
I think that I'm done, and thanks for all the help, but if someone finds how to add enter, let me know.
Offline
I know what you mean, Billybob-Mario. You want to be able to do
[blocks] <key[ enter ]pressed?> [/blocks]
right? As far as I know, you can't.
Last edited by celloguy123 (2010-08-10 13:27:24)
Offline
celloguy123 wrote:
I know what you mean, Billybob-Mario. You want to be able to do
[blocks] <key[ enter ]pressed?> [/blocks]
right? As far as I know, you can't.
NO.
This person wants to be able to have an enter to type multiple lines of code. You need to read the posts above....
Offline
Billybob-Mario wrote:
LS97 wrote:
Billybob-Mario wrote:
I am trying to make a few advanced squeak blocks,
[run code [ ] ]
Compiler evaluate: t1 for: self logged: false
(run code [ ] )
^ Compiler evaluate: t1 for: self logged: false
[ScratchFrameMorph run code [ ] ]
Compiler evaluate: t1 for: ScratchFrameMorph logged: false
(ScratchFrameMorph run code [ ] )
^ Compiler evaluate: t1 for: ScratchFrameMorph logged: false
but I need to know two things:
How can I add Enter to the ExpressionArgMorph?
i'll need to investigate. you don't need it anyway.
How can I make something run code given through a textbox?
no clue what you're talking about
You solved this above.Thank you.
Glad to help the person who helped you! :D
Oh, and, you can make an ExpressionArgMorph subclass which uses MultilineSctringMorphs or ScrollingStringMorphs instead of StringFieldMorphs.
Come to think of it, this isn't really an advanced Squeak block. And advanced Squeak block wouldusually have something to do with the creation of classes from your code.... >:D
(I think I've ended every post today with that smiley)
Offline
nXIII wrote:
Billybob-Mario wrote:
LS97 wrote:
Thank you.
Glad to help the person who helped you!
![]()
Oh, and, you can make an ExpressionArgMorph subclass which uses MultilineSctringMorphs or ScrollingStringMorphs instead of StringFieldMorphs.
Come to think of it, this isn't really an advanced Squeak block. And advanced Squeak block wouldusually have something to do with the creation of classes from your code.... >![]()
(I think I've ended every post today with that smiley)
The first thing I tried was adding a subclass called LongExpressionArgMorph (it's still there) from MultiLineStringMorph, but it didn't work. I moved one method and a few variables over to ExpressionArgMorph to see if that would work. That didn't work either.
I view these blocks as advanced because they let the user input and run squeak.
Last edited by Billybob-Mario (2010-08-10 17:00:03)
Offline
nXIII wrote:
Make an ExpressionArgMorph subclass
----------
60 seconds
-0 seconds
-- seconds
---seconds
----econds
-----conds
------onds
-------nds
--------ds
---------s
----------
I did and I gave it the stuff that MultiLineStringMorph had and put it in a block, then I couldn't even view the category.
Offline
i'm trying to make it before panther gets released so that it doesnt seem i copied
Offline
i'm trying to make it too
Offline