Subapp over subapp issues
[color:#006600]Overview:
Project runs from a main app.
Parts are opened in subapps "above" the main app.
Everything happening is handled by the main app. Subapp sends info via Shared object to main app and stuff happens.[/color]
Now I have an info subapp (a test version) which can be called from any subapp and opened via main app displaying over current subapp. The problem is that some of it's buttons shows up completely transparent (see pic) and all buttons are non responsive.
[img:center]http://bytiny.com/click/sub.jpg[/img]
Running the info app in main app works fine though.
I've tested different settings (maybe not all possible combinations) on the info subapp to no avail.
Any suggestions appreciated.
Oh, and I have read lots of posts about subapps after doing a search but couldn't find anything similar.
Re: Subapp over subapp issues
Is the sub app set to a pop up window then make sure modal is not selected.
I had this similar problem.
Re: Subapp over subapp issues
Thanks Horn.
I'm getting the same result with or without it set to Pop up. Buttons are transparent and it's non responsive. Two buttons are visible for some reason.
With modal the whole thing freeze and I have to close the runtime through task manager.
Re: Subapp over subapp issues
I've tried setting up a couple of tests similar to your described problem, but I can't trigger anything like this. Could be that I'm not understanding how your app is setup.
Perhaps you can upload a stripped down version of your mfa, so we can take a look?
Re: Subapp over subapp issues
I'll try to strip it down. Might find the reason while doing it too. :)
First I'll make new buttons and see if that makes any difference for the "button holes" that are showing now.
Re: Subapp over subapp issues
Often the option Clip Siblings in Sub-App Settings helps out and maybe in this case too.
Re: Subapp over subapp issues
I made an example from scratch.
One zip file contains the built exe and ccn files.
Second zip contains the mmf files.
Hope I got them all.
When the subs open I don't get any buttons showing and the little "info app" doesn't respond at all.
You may wonder why I don't show the little app directly in the subapp? It's because it'll be used everywhere in teh game and would be better if it could be launched by the main app nomatter where one is.
I hope I explained it enough otherwise just ask. :)
File one
File two
Re: Subapp over subapp issues
This is an issue because of multiple subapps (related to you calling them as external ccns). MMF seems confused about which is active and which is not.
While I cannot tell you exactly how this bug occurs, you can fix it by:
in main.mfa
select the properties of sub 2 window and make that a Popup window.
This should fix your example.
Re: Subapp over subapp issues
Thanks Burfelt. :)
I have tested that too but I then get any animated or moving AO from the sub behind showing up through the info sub, poke holes one could say. Any click will also be picked up by the sub below.
Modal doesn't fix this either plus I get even more issues using that.
I am testing another approach. I'll have the info app bigger and covering the screen (it's not as pretty but not much to do about that...). When calling the info app from a subapp I'll save the subapps name and frame # then when info app is closed the other sub will open again. Hopefully without too many blinks and glitches. :)
Re: Subapp over subapp issues
Quote:
but I then get any animated or moving AO from the sub behind showing up through the info sub, poke holes one could say.
This sounds weird and doesn't happen to me. Hmm... perhaps I should upload the example after I changed it, to be sure we aren't doing something different.
Re: Subapp over subapp issues
Quote:
Originally Posted by Burfelt
perhaps I should upload the example after I changed it, to be sure we aren't doing something different.
Good idea.
Oh and do you also see the buttons on both the subs at runtime? I don't.
----------- edit 2 ------------
I hope my project isn't corrupt and that's why it's acting up because I wouldn't know how far back it happened.
I noticed the subapps in the example were not set to internet apps which they of course are in the "real" project. I was distracted by guests arriving in the middle of it all.
Aaanyways, I am testing another approach on this. I'll fill the screen with the info sub, save name and frame of the sub beneath, close it, and restart it when the info sub is closed. It's not as pretty as I'd like it though.
BTW, I'm using build 249 and not the HWA version.
Re: Subapp over subapp issues
Went with calling the sub from each sub. More work but this way I can have it small and pretty. :)