This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-29 09:16:13

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Help!

I am trying to make a draggable block palette for my mod (Sizzle), and So far I have succeeded in making the palette small. I am now trying to figure out how to make the block palette stay in front of the script editor. Does anyone know how to do this?


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#2 2011-07-29 09:24:31

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Help!

DialogBoxes stay in front of the interface, so maybe look into that class?

Offline

 

#3 2011-07-29 09:37:01

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Help!

LS97 wrote:

DialogBoxes stay in front of the interface, so maybe look into that class?

Somehow it's owner got changed from a ScratchFrameMorph to a PasteUpMorph.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#4 2011-07-29 09:41:01

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Help!

scratcher7_13 wrote:

LS97 wrote:

DialogBoxes stay in front of the interface, so maybe look into that class?

Somehow it's owner got changed from a ScratchFrameMorph to a PasteUpMorph.

So maybe that's what it is? you could try to make a simple control change owner too and see if it works, then try the real one.

Offline

 

#5 2011-07-29 09:52:17

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Help!

LS97 wrote:

scratcher7_13 wrote:

LS97 wrote:

DialogBoxes stay in front of the interface, so maybe look into that class?

Somehow it's owner got changed from a ScratchFrameMorph to a PasteUpMorph.

So maybe that's what it is? you could try to make a simple control change owner too and see if it works, then try the real one.

How do I change the owner? Every time I try to change it to ScratchFrameMorph, I get this error:

a ScratchFrameMorphNothing more expected ->()

Last edited by scratcher7_13 (2011-07-29 09:52:36)


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#6 2011-07-29 10:22:12

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Help!

scratcher7_13 wrote:

LS97 wrote:

scratcher7_13 wrote:


Somehow it's owner got changed from a ScratchFrameMorph to a PasteUpMorph.

So maybe that's what it is? you could try to make a simple control change owner too and see if it works, then try the real one.

How do I change the owner? Every time I try to change it to ScratchFrameMorph, I get this error:

a ScratchFrameMorphNothing more expected ->()

"a ScratchFrameMorph()" isn't valid code...
Besides, you need an instance of something to add a morph to it. I don't know whether there's a constant of PasteUpMorph available for this type of use -- try looking it up or asking someone more experienced.

Offline

 

#7 2011-07-29 10:31:33

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Help!

LS97 wrote:

scratcher7_13 wrote:

LS97 wrote:


So maybe that's what it is? you could try to make a simple control change owner too and see if it works, then try the real one.

How do I change the owner? Every time I try to change it to ScratchFrameMorph, I get this error:

a ScratchFrameMorphNothing more expected ->()

"a ScratchFrameMorph()" isn't valid code...
Besides, you need an instance of something to add a morph to it. I don't know whether there's a constant of PasteUpMorph available for this type of use -- try looking it up or asking someone more experienced.

I was inspecting the morph. Thanks, I think that I know what I need to do now.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#8 2011-07-29 10:34:25

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Help!

scratcher7_13 wrote:

LS97 wrote:

scratcher7_13 wrote:


How do I change the owner? Every time I try to change it to ScratchFrameMorph, I get this error:

a ScratchFrameMorphNothing more expected ->()

"a ScratchFrameMorph()" isn't valid code...
Besides, you need an instance of something to add a morph to it. I don't know whether there's a constant of PasteUpMorph available for this type of use -- try looking it up or asking someone more experienced.

I was inspecting the morph. Thanks, I think that I know what I need to do now.

Ah, inspecting the morph. Those are read only textboxes, but as you know every single textbox in Squeak accepts code. So all accepting does is check the code is valid (which it isn't).

Offline

 

Board footer