Yves,

It wasn't clear to me that you don't open Dialogues immediately when Accueil 
opens. I had the impression Dialogues has to open automatically when Accueil 
opens.

You can do exactly the same trick in Accueil as in Dialogues.

on preOpenStack
  hide this stack
  send "initialiseStack" to me in 0 millisecs
end preOpenStack

on initialiseStack
  if the mode of this stack is "5" or the mode of this stack is "6" then
    show this stack
  else
    -- I don't know what you want to do here?
  end if
end inisitaliseStack

Keep these handlers in the card script.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.5 for LiveCode here http://qurl.tk/ce

On 30 dec 2010, at 23:11, Yves COPPE wrote:
> 
> re Mark,
> 
> the main stack : "accueil'
> the substack "dialogues"
> 
> the main stack :
> 
> on preopenstack
>  start using stack "mes scripts"
>  set the rect of this stack to "74,96,701,542"
> end preopenstack
> 
> 
> on preOpenCard
>  if the mode of this stack "accueil" = "5" then
>    if not the visible of stack "accueil" then
>      lock messages
>      set the visible of stack "accueil" to true
>      unlock messages
>    end if
>  end if
>  if the mode of stack "accueil" = "6" then
>    if not the visible of stack "accueil" then
>      lock messages
>      set the visible of stack "accueil" to true
>      unlock messages
>    end if
>  end if
> end preOpenCard
> 
> 
> 
> Greetings.
> 
> Yves COPPE
> yvesco...@skynet.be



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to