Re: Note pad

1999-09-02 Thread Andu

I have struggled with something which probably is simple if you do the
right things. The problem is: I want a note pad to appear covering approx.
1/3 of the screen of the mainstack. I have tried toplevel, modal, palette,
lockscreen to true etc., before I ended up with the following script (in
MetaCard 2.2.5)

on åpneblokk
  put the topleft of stack "franpo" into tl --"Franpo" is the mainStack
  open inv stack "carnet"   -- the substack
  set topleft of stack "carnet" to tl
  show stack "carnet"
end åpneblokk

(The substack has a button to close it.)

Sorry to have bothered the list with my sloppy scripting. Thanks to Scott
Raney's reply I found a way out of it. Now I set the loc of both main and
substack in on openStack (the mainstack) and in the button I just toplevel
the substack.
However, I would like to block the possibility of clicking in the mainstack
which still shows on the screen, and thought that 'set the defaultstack to
"carnet"' would do the trick, but it does not. Any help appreciated.

Open the substack  with *modal stack "carnet"*.

Regards

---
1. amanuensis Signe Marie Sanne  e-mail: [EMAIL PROTECTED]
Romansk Institutttel:  +47 55 58 21 27
Øysteins gt. 1
5007 Bergen  http://www.hf.uib.no/hfolk/sanne/default.html
Norway
---


Regards, Andu




Re: Note pad

1999-09-02 Thread Signe Marie Sanne

However, I would like to block the possibility of clicking in the mainstack
which still shows on the screen, and thought that 'set the defaultstack to
"carnet"' would do the trick, but it does not. Any help appreciated.

Open the substack  with *modal stack "carnet"*.
Regards, Andu

Thanks a lot to Andu, now everything works perfectly!

Regards

Signe Marie


---
1. amanuensis Signe Marie Sanne  e-mail: [EMAIL PROTECTED]
Romansk Institutttel:  +47 55 58 21 27
Øysteins gt. 1
5007 Bergen  http://www.hf.uib.no/hfolk/sanne/default.html
Norway
---




Note pad

1999-08-31 Thread Signe Marie Sanne

Hello,

I have struggled with something which probably is simple if you do the
right things. The problem is: I want a note pad to appear covering approx.
1/3 of the screen of the mainstack. I have tried toplevel, modal, palette,
lockscreen to true etc., before I ended up with the following script (in
MetaCard 2.2.5)

on åpneblokk
  put the topleft of stack "franpo" into tl --"Franpo" is the mainStack
  open inv stack "carnet"   -- the substack
  set topleft of stack "carnet" to tl
  show stack "carnet"
end åpneblokk

(The substack has a button to close it.)


Then strange things happen: On the Mac:
When in Standalone the substack appears only after a second click).

On the Windows:
With the above script the loc of the mainstack changes to 0,0 while the
topleft of the substack remains in the right place.

Both in standalone and development:
When I click outside the substack (both), the controls of the mainstack
behave as usual, but sometimes the substack stays in front, at other times
it goes away.

In development environment the substack appears after one click, but the
message box pops up at the same time.

Any advice as to show the note pad (and block the controls of the
mainstack) is greatly appreciated. Thanks in advance.

Regards

---
1. amanuensis Signe Marie Sanne  e-mail: [EMAIL PROTECTED]
Romansk Institutttel:  +47 55 58 21 27
Øisteins gt. 1
5007 Bergen  http://www.hf.uib.no/hfolk/sanne/default.html
Norway
---