Problem in displaying customized flex window.

0
Hi I've created a customized settings sub-window, with an AIR application and facing a problem in displaying it more than one time from the application, i.e for the first time i select option from context menu then the settings window is displayed but if i try for the second time it doesn't come again. The code is attached for the called function where 'toastWindow_2' is the refrence for customized settings window:
public function showOptionwindow(event:ContextMenuEvent):void
                var check_label:String = event.currentTarget.label;
                var toastWindow_2:options_db = new options_db();
                toastWindow_2.open();
                if (check_label=='List videos'){
            toastWindow_2.settings_windowtab.selectedIndex=1;
                else if (check_label=='Feedback'){
            toastWindow_2.settings_windowtab.selectedIndex=2;
                else if(check_label=='Settings'){
            toastWindow_2.settings_windowtab.selectedIndex=0;
Please suggest the solution asap; Thanks in advance.

Hi there,
A fast suggestion would be to use the debugger and see what's happening. Note down the stuff that is changed when you first click the button and the window opens and see if the stuff is the same the second time ( or if the method is even triggered ). In such situations, the debugger is your best friend.
With best regards,
Barna Biro
Blog: http://blog.wisebisoft.com

Similar Messages

  • Problems to display a 2nd window using multithreading

    I would like to know how is it possible to display a second window where I can enter a text while the main window continue to display on a graph acquired data - Thank you very much in advance

    > I would like to know how is it possible to display a second window
    > where I can enter a text while the main window continue to display on
    > a graph acquired data - Thank you very much in advance
    There are two ways to get parallel execution. You can use the VI
    Server's Run method to pretty much push the Run button of the VI. This
    isn't the same as a subVI call because it runs in parallel and doesn't
    need to complete before the Run method node returns.
    Another way of doing this is to put the code in parallel and don't put
    them in a loop that has to wait for both to finish.
    Greg McKaskle

  • Problems with displaying tables from windows software in Powerpoint

    I have been having some problems with powerpoint presentations that include tables from specific windows software. These tables were produced with the software package called SPSS for windows. The font that's used for these tables is Tahoma. The powerpoint presentations were made on a windows operated computer where the tables were pasted into the slides as pictures.
    When opening these presentations on my MacBook these tables are presented in a way that is impossible to read. The tables are mostly empty while some unclear symbols are inconsitently divided over the table. The original table existed out of a combination between text in the first row and collom and numbers in the other cells.
    Has anybody had any experience with this problem or something similar? Any suggestions on what to look for when trying to solve this problem?
    Thanks in advance!!
    Regards.
    Jochem

    Depending on the software you use to display the presentation on your Mac I suggest posting your request either here
    http://discussions.apple.com/forum.jspa?forumID=1191
    or here
    http://discussions.apple.com/forum.jspa?forumID=774
    If you are using a non-Apple-software (e.g. NeoOffice or OpenOffice) I suggest the support forums for the specific product you use.
    You will hopefully get more helpful answers in these forums as you would get here, as this issue is not a Windows/Mac OS X compatibility issue but a Powerpoint compatibility issue.

  • Display PDF document in Flex Windows application

    Hi,
    I am creating a flex windows application using action script and mxml script.I need help in displaying a PDF document in that windows application.I tried google search it is giving me some open source projects with IFrames.But,they can be only used for browser applications(web).So,anyone please suggest me how could i accomplish this task with winows application.
    Thanks,
    adi2010

    Hi Everyone,
    I got the solution for my issue.We need to use HTMLLoader to load the PDF documents in Windows aplication for Flex.

  • Display PDF from flex windows application

    Hi,
    I am creating a flex windows application using action script and mxml script.I need help in displaying a PDF document in that windows application from a netwrok drive or local pc.I tried google search it is giving me some open source projects with IFrames.But,they can be only used for browser applications(web).So,anyone please suggest me how could i accomplish this task with winows application.
    Thanks,
    adi2010

    Hi ,
    The solution for the thread is
    <mx:HTML id="pdfHtml" location="test.html" width="100%" height="100%" />
    var pdfFile:File = File.applicationDirectory.resolvePath(pdfHtml.location);
        pdfFile = new File(pdfFile.nativePath);
        var fileURL:String = pdfFile.url;
        pdfHtml.location = fileURL;
    Thanks,
    adi2010.

  • Custom SSIS Source: How do I make it create a new connection manager and display its properties window?

    I am writing a custom SSIS source that uses a standard SSIS Flat File Connection Manager. I have got a working UI that shows all usable connection managers in a dropdown list and allows the user to pick one. I would like to be able to have a button that
    the user can click on to create a new connection manager, and it would open the properties window for the new connection manager so it can be set up.
    Abridged code:
    Public Class MyNewSourceUI
    Implements IDtsComponentUI
    Private MetaData As IDTSComponentMetaData100
    Public Function Edit(ByVal parentWindow As IWin32Window, _
    ByVal variables As Variables, _
    ByVal connections As Connections) As Boolean _
    Implements Microsoft.SqlServer.Dts.Pipeline.Design.IDtsComponentUI.Edit
    Dim UIwin As New MyNewSourcePropertiesWindow(MetaData, connections)
    Return (UIwin.ShowDialog() = DialogResult.OK)
    End Function
    Public Sub Initialize(ByVal dtsComponentMetadata As IDTSComponentMetaData100, _
    ByVal serviceProvider As System.IServiceProvider) _
    Implements Microsoft.SqlServer.Dts.Pipeline.Design.IDtsComponentUI.Initialize
    MetaData = dtsComponentMetadata
    End Sub
    End Class
    Public Class MyNewSourcePropertiesWindow
    Inherits System.Windows.Forms.Form
    Private _metadata As IDTSComponentMetaData100
    Private _cnxions As Connections
    Public Sub New(ByVal ComponentMetaData As IDTSComponentMetaData100, ByVal connections As Connections)
    InitializeComponent()
    _metadata = ComponentMetaData
    _cnxions = connections
    ShowConnections()
    'Setup Existing Metadata '
    End Sub
    Private Sub ShowConnections()
    Me.cboConnection.Items.Clear()
    Me.cboConnection.Items.AddRange((
    From i As ConnectionManager In _cnxions _
    Where CType(i.Properties("CreationName").GetValue(i), String) = "FLATFILE" _
    AndAlso CType(i.Properties("Format").GetValue(i), String) = "Delimited" _
    Select i.Name).ToArray())
    End Sub
    Private Sub btnNewConnection_Click(ByVal sender as Object, ByVal e as System.EventArgs) Handles btnNewConnection.Click
    Dim newconn As ConnectionManager = _cnxions.Add("FLATFILE")
    ShowConnections()
    Me.cboConnection.SelectedItem = newconn.Name
    End Sub
    Private Sub btnCancel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCancel.Click
    Me.DialogResult = DialogResult.Cancel
    Me.Close()
    End Sub
    Private Sub btnOK_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOK.Click
    'Store any metadata changes '
    Me.DialogResult = DialogResult.OK
    Me.Close()
    End Sub
    End Class
    That's what I've got so far. I had assumed that adding a new connection would automatically display the properties window to the user (right?). However, in my tests, what actually happens is that it creates the new source with a random GUID for a name and no
    other properties set up, and puts it in the connections pane, and that's it. Not real useful.
    Obviously, something else is required to make the properties window appear, but I can't find what it is. There's no ShowUI() member on any of the classes I have, and I haven't been able to find out the name of the UI class that's used by the flat file source.
    Does anyone know how this is done? I know it can be done, because such a button exists in the normal Flat File Source UI.

    Yes, you need to drive the UI creation. I see you create a custom connection manager, in this case on how to build its UI please refer to http://kzhendev.wordpress.com/2013/08/07/part-2-adding-a-custom-ui-to-the-connection-manager/
    Arthur My Blog

  • Problem with display of JScrollPane

    I have made a small GUI.
    It has a JFrame and four JPanels are added to the frame.
    The placement is done by program and hence layout manager is set to null.
    Two of the panels contain JScrollPane.
    One scroll pane is associated with a JList.
    Another scroll pane is associated with a JTextArea.
    I am creating panel components in their respective paintComponent() method.
    Now my problem is whenever I run the code, the behaviour of the display of the GUI is erratic. Sometimes it appears perfectly fine other times the JList contents and JTextArea along with their scroll bars don't appear. I have tried running the code on different platforms and different systems. On some systems it works perfectly fine, on some it behaves erratically.
    Moreover my experience is that it is giving problem on somewhat lower configuration systems (low RAM and CPU) and running fine on higher configuration systems.
    I ran it on my laptop with 512MB RAM and centrino duo processor. (Both on windows and ubuntu it gave the same problem, random display behavior)
    I ran it on a desktop with 1GB RAM and higher processor (Both on windows and ubuntu it displayed fine)
    Does this problem relate to insufficient painting time or something of this sort? Why is this problem is coming and what's the solution?
    Thanks in advance.
    Also if anybody has encountered similar problem please do share so that I could at least say this is not a unique one.

    The placement is done by program and hence layout manager is set to null.That is (probably) your first problem. Learn to use use LayoutMangers, they save time in the long run.
    Sometimes it appears perfectly fine other times the JList contents and JTextArea along with their scroll bars don't appearProbably because preferred sizes are not set correctly. Since you are not using a layout manager that is your responsibility. Easy solution is to use a proper combination of layout managers.
    I am creating panel components in their respective paintComponent() method.That is (probably) your second problem. paintComponent() is for doing custom painting, not creating new components dynamically.
    I suggest you start by reading the Swing tutorial for example programs.

  • How does one define a default style for a custom Flex component?

    How does one define a default style for a custom Flex component?
    hello
    I created a new set of Flex component library slib.swc (Flex 4.5). Would also like to have a default style. defaults.css file, making it the default style of the component library.
    Like flex the builder install directory of sdks \ 4.5.0 \ frameworks out \ libs directory has a spark.swc file, open with Winrar will see defaults.css this file. Defaults.css file defines the default style of the flex spark components.
    How can it be achieved?
    As follows
    slib.swc contains a CLabelEx components, and a defaults.css file
    defaults.css source file as follows:
    @ namespace s "library :/ / ns.adobe.com / flex / spark";
    @ namespace mx "library :/ / ns.adobe.com / flex / mx";
    @ namespace cn "http://os.slib.cn";
    cn | CLabelEx
            styBackgroundAlpha: 1;
            styBackgroundColor: # 569CC0;
            styBorderAlpha: 1;
            styBorderColor: # 569CC0;
            styBorderWeight: 1;
            styCornerRadius: 3;
    In slib.swc the application MyLabel.mxml of the source file as follows:
    <? xml version = "1.0" encoding = "utf-8"?>
    <s: Application, the xmlns: fx = "http://ns.adobe.com/mxml/2009
                               xmlns: s = "library :/ / ns.adobe.com / flex / spark"
                               xmlns: mx = "library :/ / ns.adobe.com / flex / mx"
                               xmlns: cn = "http://os.slib.cn
                               the minWidth = "955" The minHeight = "600">
            <fxeclarations>
            </ fxeclarations>
            <cn:CLabelEx x="67" y="112"/>
    </ s: Application>
    I hope CLabelEx default use cn | CLabelEx, style to display its appearance.
    I refer to above approach, but failed to achieve. Can you please re-Detailed
    Thanks!

    dj is right. Any Folder can be a picture folder.
    Create a root level folder and add it to your Pictures Library in Windows.  It will show up with all the scattered pictures from other programs. It can even be a different dirve if you like.  You  can even specify one to be the default save location for pictures in this dialog.
    Navigate to Pictures in your Libraries in Windows Explorer Right Click and select Properties.
    Message was edited by: Rikk Flohr forgot the instructions...

  • Satellite A100 (PSAA9) Display Driver for Windows Vista

    Hi Everyone,
    This link doesnt work so I didnt install my display driver for Windows Vista and system performance look really terrible. I wondering nobody use Satellite A100 (PSAA9) and Windows Vista. Because I was searching this driver on internet but i coudnt fint it anywere. This situation made me so sick.
    How can I warn or send e-mail to Toshiba customer support about broken link. Or anyome know direct download address for Vista driver? Please help me asap :(
    15/02/07 Display Driver nVidia Windows Vista 97.54
    Thanks for your help,
    Mehmet from Istanbul

    Hi Daniel,
    Thank you for post and advise. I downloaded Satellite P100 (PSPA0E) nVidia display driver but it doesnt work. Its look same but problem is doesnt support my display card. Its really strange and Toshiba doesnt fix yet :S
    15/02/07 Display Driver nVidia Windows Vista 9.7.5.4 World Wide
    http://support.toshiba-tro.de/tools/vista/nvi/display-vista-9754.zip

  • Running Windows XP service pack 3. Updated Firefox from 8.0 to 9.0. Now when Firefox opens "The URL is not valid and cannot be loaded" is displayed in a window and no home page appears. What's wrong?

    Running Windows XP service pack 3. Updated Firefox from 8.0 to 9.0. Now when Firefox opens "The URL is not valid and cannot be loaded" is displayed in a window and no home page appears. What's wrong?

    That issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Hp officejet 4620 series doesnt display on my windows 8.1 to connect to scan

    This is a new printer purchased in 2014 hp officejet 4620 series doesn't display on my windows 8.1 to connect to scan.It does detect in HP AIO Remote app in windows 8.1 as seen on left but when i click on scan there it open hp scan and capture app and says unable to contact device as shown on right. I do restart my printer and PC at those times but sometimes also restart my wireless router. my internet has high speed  of 115Mbps with Comcast. There is no problem with the internet provider problem should be with the printer it doesn't show up wirelessly in the laptop or else problem should be with the hp scan and capture app for not detecting the printer either way i didn't get any solution. This is always the same problem i face daily. Someone please do help in solving this its so frustrating when the device doesn't get detected to print and scan.

    Hi @reshmi,
    Welcome to the HP Forums!
    I am sorry to hear about your frustration you are having with your HP Officejet 4620 not being able to scan on Windows 8.1. But I am happy to help you with this issue!
    Are you able to make copies with your printer? (This way we know the hardware is functioning properly.)
    I would recommend the following guides:
    A 'No Computer Detected' or 'Connection Error' Message Displays When Scanning for HP Officejet 4610 ....
    Printer Does Not Maintain Wireless Connection. 
    (Even though the guide titles may not match your issue, I believe the solutions will help.)
    To verify if this is an issue with your HP Scan and Capture app, please try one of the alternate methods of scanning in this how to scan guide, Scan from Windows 8 With the Full Feature HP Software for HP Multifunction Printers. Select How to scan without HP software, and let me know if one of those methods work for scanning or not.
    Thank you for posting, and have a good day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Authorization problem when displaying icons in BW Report

    Hi All
    I have the following problem when display BW Report as iView: The report data itself is displayed perfectly but to display the icons (like DrillDown arrows, Hierarhy level open arrows) the Windows login message "Connect to <my BW server.com>:8000" appears and I have to enter BW user name and password explicitly. The system for BW is defined, the user is mapped, UIDPW method is used. Again, the report data itself is displayed, the problem is only with icons. I can see that the path to icons is like:
    http://<my BW server>.com:8000/sap/bw/Mime/BEx/Icons/s_b_up.gif
    How could I rid of this authorization request?

    Thanks! I already did this and it helped for most of icons. But for five remaining icons i still get authorization request althoug these icons are in the same path. The icons are:
    http://<server>.com/sap/bw/Mime/BEx/Icons/cascading.gif
    http://<server>.com/sap/bw/Mime/BEx/Icons/checked.gif
    http://<server>.com/sap/bw/Mime/BEx/Icons/separator.gif
    http://<server>.com/sap/bw/Mime/BEx/Icons/marked_right_35.gif
    http://<server>.com/sap/bw/Mime/BEx/Icons/loading.gif

  • Native resolution problem on Boot Camp running Windows 8.1 on Macbook PRO 15 (2011)

    Hello
    Couple days ago I purchased a DELL U2414h display, and I came across some problems while trying to use it with Windows 8.1 on Boot Camp.
    Everything works like a charm on MAC OS X and I get 1680x1050 resolution on my 2011 15 inch Macbook PRO, and 1920x1080 on the external DELL display.
    The problem starts when I run Windows 8.1... I get my native resolution on the Macbook, but the maximum usable resolution on the external display is 1776x1000. There's an option to choose 1920x1080, but when I do that, the screen looks blurry. Is there any way to overcome this problem?
    I'm using HDMI Adapter, and I installed all the drivers which were downloaded while installing the Boot Camp
    Cheers
    Patryk

    No I haven't, but could it be the case? The same display with the same adapter works fine while running the MAC OS X.
    But yeah, the adapter converts the mini display port to HDMI (as far as I know)
    Thanks for the reply

  • Problem with photshop cc on windows 8.1 and 4k monitor at 3840x2160 resolution

    can anyone help
    i have a problem with photshop cc on windows 8.1 and 4k monitor at 3840x2160 resolution when i lauch photoshop cc everything is very small and i dont know how to get the program at the right size

    Search the forum for similar topics dealing with high-DPI displays. 4k is insane, though. I don't think even CC 2014 is up to it.
    Mylenium

  • Display only 3 windows in second page onwards.

    hi,
    i have 6 secondary windows in a smart form.in the first page i have to display all windows second page onwards need to display only 3 windows. i have given condition sfsy-page = 1. for the 3 windows. problem is i am getting blank space above the main window  second page onwards. i need to remove this.
    points will be given to useful answers.
    thanks.

    Create a new page by copying the existing page and keep only the three windows you want to display and delete the rest. In next page attribute of first page give the second page name and second page attribute next page should also be second.
    close the thread once your question is answered.
    Regards,
    Sairam

Maybe you are looking for