I'm having trouble opening one of the 2 Disclosure.
Attached below is what trying to achieve this and when I add the static prop it keeps it open indefinitely.
Just Pass the defaultOpen props to Disclosure.
<Disclosure defaultOpen>
Related
I created a Quasar dialog component to show errors to users in the form of popups. I maintain a variable for q-dialog to show up (i.e., <q-dialog v-model="show">, where show is a reactive and set to true in setup()). I use this component from another component as such <Error v-if="movieChoiceStatus.error" :textContent="movieChoiceStatus.errorText" :show="true"/> where movieChoiceStatus is a reactive as well. The problem is Error component shows up only once. It won't pop after initial one. Does anybody have an idea?
It looks like you're using a prop for your dialog model. I can't be sure without seeing more of the code, but you might try removing the "show" prop, and just having it as a ref in the Error component set in the setup.
Issue is related to not getting back the focus to the progress application after closing the dialog screen using .cls programs and last accessed application is sitting on top. As I have tried all the option like , getting the frame handle, processid of application and browser handle for make the progress app on top after closing the child window.
I have tried the below methods for this issue:
Senerio 1
Used handle of the selected program and apply entry to window.
Steps used to achive this senerio as follows:
1.) Define CheckMainFrame as PUBLIC STATIC PROPERTY for get and set in TabFolder.cls.
2.) Setting the program handle in oplauncher.p after calling the selected program .
FolderForm:CheckMainFrame = hLaunchProc.
3.) Getting the handle in method CheckWindowClose after closing the dialog and apply entry to window container.
Senerio 2
Used handle of the viewer and apply entry to browser.
Steps used to achive this senerio as follows:
1.) Define CheckBrowser as PUBLIC STATIC PROPERTY for get and set in TabFolder.cls.
2.) Setting the browser handle in CreateRenderedBrowsers where its looping throught the folder pages and when its find
the browser and getting the bowser handle.
TabFolderForm:CheckBrowser = hColumn.
3.) Getting the browser handle in method CheckWindowClose after closing the dialog and apply entry to browser.
Senerio 3
Used viewer widget handle and applying entry to first field, cursor is getting the focus.
Steps used to achive this senerio as follows:
1.) Define CheckViewer as PUBLIC STATIC PROPERTY for get and set in TabFolder.cls.
2.) Setting the viewer handle in CreateRenderedBrowsers where its looping through the folder pages for viewer
widgets and when its find viewer and getting the first widget handle of viewer and setting the handle to
public property of viewer.
TabFolderForm:CheckViewer = hViewerWidget.
3.) Getting the Viewer handle in method CheckWindowClose after closing the dialog and apply entry to Viewer.
Senerio 4
Used process id of the application and apply back focus to the application.
Steps used to achive this senerio as follows:
1.) Defined a method GetCurrentProcessId in Win32.cls program to ge the process id of application .
2.) Windows.API.Win32:GetCurrentProcessId(OUTPUT ProcessId).
Getting the processid in method CheckWindowClose after closing the dialog and called the method
THIS-OBJECT:MouseClick(ProcessId).
Forcing Mouse click events as some example below:
Windows.API.Win32:PostMessage(hWidget,
Windows.API.WinUser:WM_SETFOCUS,
0,
0) .
Windows.API.Win32:PostMessage(hWidget,
Windows.API.WinUser:WM_SETCURSOR,
0,
0) .
Windows.API.Win32:PostMessage(hWidget,
.Windows.API.WinUser:WM_MDIRESTORE,
0,
0) .
Can anyone suggest me on this?
While executing a selenium script, we are getting a overlay (like popup) which is asking to confirm yes or no.
In this case the main problem being the Overlay popup does not come at a constant place,instead it comes at differen places.
example :- consider we have 4 pages to navigate some time it comes in first page and some times it comes in second page, and sometimes
it comes in the same page while we are accessing different elements.sometimes we are not getting overlay.
please let me know how to solve this issue, Thanks in advance
You can handle that through driver options, at least in Internet Explorer. This is how I do in Selenium.NET binding
var options = new InternetExplorerOptions { EnableNativeEvents = false };
options.UnexpectedAlertBehavior = InternetExplorerUnexpectedAlertBehavior.Dismiss;
It will force close any unexpected pop up.
Not sure that this is correct solution, but this must solution of your task.
You can create simple function(method) that checks for existence of this popup with some timeout. And put in in all possible places.
Or you can check it by some timer in another thread(with pause of main thread)
I have a main application calling several ViewStack states, each with popup windows. If I don't open any popup windows, I can move between states fine. If I open a popup window then try to change the state using currentState=... I get the error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at spark.components::Scroller/focusInHandler()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Scroller.as:2139]
at flash.display::Stage/set focus()
at mx.core::UIComponent/setFocus() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:9905]
...
I see others having the same problem, for example here:
http://forums.adobe.com/thread/1031531
http://forums.adobe.com/message/2767130
http://forums.adobe.com/message/3448443
http://forums.adobe.com/thread/655749?tstart=-1
http://forums.adobe.com/thread/801149
http://flex4examples.wordpress.com/2011/05/05/skinnabletextbase-focusmanager-runtime-error-popup/
http://bugs.adobe.com/jira/browse/SDK-32036?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
But I haven't figured out how to implement the recommended solution. It sounds like I should just include:
import mx.managers.PopUpManager; PopUpManager;
inside my main application and it should work, but it doesn't work for me.
My application has each view state in a different file, each defined using <views:View>. Also, all of the popups are separate files defined as <s:TitleWindow>. Each file includes this line:
import mx.managers.PopUpManager;
I wonder if this means each file is using a different popup manager(?), when it's a singleton and only one should be used for the whole app (how to set that up?).
The code I use to call a popup is:
var _popupName:MyTitleWindowFileName = MyTitleWindowFileName(
PopUpManager.createPopUp(this, MyTitleWindowFileName, true));
_popupName.addEventListener(MyAppController.CLOSE_POPUP,onClosePopUp);
PopUpManager.centerPopUp(_popupName); // call popup
Note that when the main application (the one defined as <s:Application>) runs, the ViewStack states have not been loaded yet (since they get loaded when they are used the first time). Not sure if that has any cause/effect here.
I've tried to follow Adobe's example code in the "Passing data to and from a Spark pop-up window" section here:
http://help.adobe.com/en_US/flex/using/WS6c678f7b363d5da52e8f1ca1124a0430dcf-8000.html#WS6c678f7b363d5da52e8f1ca1124a0430dcf-7ffe
Any ideas much appreciated.
Based on your comments, it seems like the error occurs because the focus remains in the popup. I would expect the PopUpManager and FocusManager classes to handle this better.
One thing I can think of is that the FocusManager may be trying to handle this. But since the state changes, the item that originally had focus (in the view stack child, before the pop up was opened) may no longer be there when the view state changes. Just a hunch, w/out seeing your code.
Here's some things you can do to either work around the problem (or better) further debug it to understand what is happening:
Use FocusManager.setFocus() to move the focus back to an object in the view stack child before closing the pop up
Use FocusManager.getFocus() to debug and see where it thinks the focus is at various stages (before opening popup, before/after changing state, and before/after closing pop up).
It appears this is the situation I'm experiencing:
Adobe Air: scroller throws error when changes focus between different applications
It's an Adobe bug. Solution from Adobe is:
This bug is easily fixed by changing Scroller to do a null pointer check on focusManager before using it.
which is what the first link above attempts to do.
Another link: http://forums.adobe.com/message/3812805
I have a flex 3 application that creates an Image from a canvas which the user draws on. I use the ImageSnapshot class to create the image
var imageSnap:ImageSnapshot=ImageSnapshot.captureImage(myCanvas);
var imageByteArray:ByteArray=imageSnap.data as ByteArray;
I want the user to be able to print or save the image. I can use the following code to print the image but flex does not provide good control over printing across multiple pages
var printJob:FlexPrintJob=new FlexPrintJob();
printJob.start();
printJob.addObject(myCanvas, FlexPrintJobScaleType.SHOW_ALL);
I would like to display the image in a browser window so that the user could print it using the built in browser functionality or right click on the image and save it. Can this be done without requesting server side code to do it?
I know that flash player 10 and flex 4 allow you to save files locally but for now I am stuck with player 9 and flex 3
You can still use the new features of FileReference (the save() and load() methods) in Flex 3 as long as the application is running in Flash Player 10. But if you are definitely stuck with Flash Player 9 then you will need to push the image up to the server first. If you are looking for a good way to push that data up to the server, please reference my solution in this question:
Flex: Render an unrealized UIComponent to BitmapData?
I don't believe you can do this, as it would violate the sandbox. For example, if this worked, it means you could put arbitrary code (analogous to an image) on the user's machine without their consent or knowledge.
I'm not sure if this will work, but try this:
Show a link to the image (file://path/to/image/img.ext) and set window.htmlLoader.navigateInSystemBrowser = true;