Page 1 of 1

Initiate a card without showing?

Posted: Wed Apr 24, 2013 10:15 am
by DevBoyLars
Hi,
is it possible to open/first initiate a card without showing it to the user?

Re: Initiate a card without showing?

Posted: Wed Apr 24, 2013 10:21 am
by Dixie
DevBoyLars...

Code: Select all

go invisible card x
Dixie

Re: Initiate a card without showing?

Posted: Wed Apr 24, 2013 10:48 am
by DevBoyLars
Thank you, but isn't it so, that the user will be on this card then and can't use the card he already is/was?

If I've got 3 cards, which I have to initiate at start, would I handle this like this via my Mainstack-script?

Code: Select all

go invisible card "a"
go invisible card "b"
go invisible card "c"

go to card "a"

Re: Initiate a card without showing?

Posted: Wed Apr 24, 2013 10:55 am
by Dixie
What do you mean by 'initiate' at start ?... Is it that you want to put some data into fields of these cards when you first run the stack ?
For example if you are at card "a' and issue the push command... pop card will take you back to card 'a' after going to cards 'b' & 'c'...:-)

Code: Select all

push this card
go invis card "b"
go invis card "c"
pop Card
Dixie

Re: Initiate a card without showing?

Posted: Wed Apr 24, 2013 11:08 am
by DevBoyLars
I'm trying to using mobGUI in the right way. I build my App with five cards and I'm using auto-geometry for the different screen-resolutions, but if I start the App and switch between the cards, I can see how the card changes the geometry to the device-resolution, This only happens the first time I go to this card, so I was hoping I can open all cards invisible at start once, that the user can't see the auto-geometry, if he visit the card by himself.

The push thing want work. If I put it in preOpenStack or preOpenCard the App hangs up.


I also tried this, which is also not working:

Code: Select all

on preOpenCard
   # mobGUIStart ---> Inserted by mobGUI plugin
   if "MobGUILib-123456789.123456" is not among the lines of the stacksInUse then start using stack "MobGUILib-123456789.123456"
   mobGUIPreOpenCard me
   mobGUIPreOpenCard "B"
   mobGUIPreOpenCard "C"
   # mobGUIEnd
end preOpenCard


Re: Initiate a card without showing?

Posted: Wed Apr 24, 2013 6:16 pm
by DevBoyLars
I found the solution with help of another post: I've to use a substack for every tab.

I don't know why, but this works fine :)

Re: Initiate a card without showing?

Posted: Wed Nov 06, 2013 12:44 pm
by Inibeater
Hi,
I have the same problem. What u did exactly to resolve it?
Thx.