12-10-2010 06:52 PM - edited 12-10-2010 06:58 PM
can someone explain to me what is suppose to be the parameter of the show() method of a dialog?
the examples in the documentation are not clear:
Note: In the last line of the code snippet above, the window group ID is passed into the show method: .show(IowWindow.getAirWindow().group); This ensures that the dialog will be modal for only this application. In other words, the application can still be minimized when this dialog is active.
i understand what the purpose is, but what is a window group ID?
Solved! Go to Solution.
12-15-2010 03:32 PM
Same question here. Where do I get the IowWindow?
12-15-2010 03:33 PM
It's not a required parameter. Leave it off for now. I am certain it is needed for some more advance use of the dialog sub-system that has yet to be documented or disclosed.
12-15-2010 07:39 PM
I don't recall where I read about it, but you can get IowWindow with
import qnx.display.IowWindow;
01-28-2011 10:19 PM
If I add the IowWindow to my MXML Mobile application i get a runtime error.
VerifyError: Error #1079: Native methods are not allowed in loaded code.
at flash.display::MovieClip/nextFrame()
at mx.managers:
ystemManager/deferredNextFrame()[E:\dev\hero_priva
at mx.managers:
ystemManager/preloader_preloaderDocFrameReadyHandl
at flash.events::EventDispatcher/dispatchEventFunctio
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders:
reloader/timerHandler()[E:\dev\hero_private_beta\f
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Does anyone know why i would get this?
Regards
Anthony
01-29-2011 12:13 AM
@peter's right about the import.
@Omnipitence Are you testing it in the simulator or as a desktop app? If in the simulator then I'm not sure, if a desktop app then run on the simulator.
03-26-2011 11:14 AM - edited 03-26-2011 11:18 AM
fix for VerifyError: Error #1079: Native methods are not allowed in loaded code.
as in Flash Pro, you need to import entire air folder from sdk. problem is that this entire folder content of swc's will be Merged into code.
so to fix the error with VerifyError: Error #1079: Native methods are not allowed in loaded code.
you need to link to each swc file and qnx-air.swc needs to be external.
Heres a screenshot, this swc is only one linked as external, all others are Merged into code
and to show alertdialog i use this:
var alert:AlertDialog = new AlertDialog(); alert.title = "Warning"; alert.message = "This operation may harm your computer. Do you still want to proceed?"; alert.addButton("OK"); alert.addButton("CANCEL"); alert.dialogSize= DialogSize.SIZE_MEDIUM; alert.addEventListener(Event.SELECT, alertButtonClicked);
alert.show();
notice show() has nothing in it, just call for show() and you will be good
04-07-2011 07:52 PM - edited 04-07-2011 08:01 PM
[DELETE MESSAGE]
02-28-2012 04:59 AM
Hello friends i still get the problem when i click on button and push the dialog then it gives the exception PPSChannel not found please help me
thanks in advance
suraj
02-28-2012 03:32 PM