Change and set Focus of window

HI
Guys
I have encountered a problem while setting focus of my application's windows.
i found the way i.e. by
public void windowGainedFocus(WindowEvent wgf) {          
          if(this.isActive()){
               VWM.theVWMDetailWindow.setAlwaysOnTop(true);
               System.out.println(wgf.getSource());
     }by doing that there is errors came.....
but there is no effect on the window theVWMDetailWindow to have operation setAlwaysOnTop successfully functoned
Please help me out
Thanks

HI
Yannix
actually , i want to get the focus of my application window
and then perform the action on it..
The case is that::
I have a main window..then on it a menu bar...
when i click on one of the menu option then another separate window will be opened....and many other windows on different menu options....
SO now i want to control their focus..... rite
when my main window's focus lost means if i select another application
another related opened window's must also lost their focus at that time.and when i came back to the main window another window's already opened must be on top.....
So could you please suggest me some way , some solution to solve this
Thanks

Similar Messages

  • Activate - set focus on window no2

    I have opened a new window(no2) from my main window(no1). The both windows have lost focus and is behind another programwindow.
    If I then want to set focus on the mainwindow(no1) by clicking the tray icon I also want window (no2) to get focus and become visible.
    How do I do this?

    Hi Juli,
    My code edit text is in the first position. I am desperately trying to test Alexey's way of doing it, but SBO keeps on falling over.
    Alexey, should I do it when BeforeAction = False and ItemEvent = FORM_LOAD? UI Server shuts down here when I try to get the active form. Can I get active form at this point? Is the form already active.  I am trying different combinations, will let you know.
    As soon as I put something in the FORM_LOAD my add-on crashes. Is there something happening that I don't know of? My Code is for example:
    Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD
    oApplication.MessageBox("Load")
    Before "Load" message the UI server shuts down and I get the load message exactly 100 times???
    Must be something stupid I'm doing
    Thanks,
    Adele
    Message was edited by: Adele le Roux

  • Can you change and set your own defult midi sync project settings

    Hi All,
    Can you change the default Midi Sync Project Setting so they have your own settings everytime you start up logic Pro X?
    Preferences > Midi > Sync >MIDI sync project settings
    General Default:
    Frame Rate 25 fps
    Check auto detect format of MTC
    Default required:
    Set frame rate to 29.97fps
    check 'auto detect format of MTC'
    check Enable Separate SMPTE View Offset
    MDI Default is:
    MTC and MMC  all unchecked
    Default required:
    Check 'Transmit MTC'
    Check 'Transmit MMC'
    Check 'Listen to MMC Input'
    Any assistance would be appreciated.
    Regards,
               Gavin.

    No, that's not what I typed above.
    The rule is... Preferences are Global, changes made in Preferences affect all Projects.
    "Settings" are on a per song basis.
    In Logic 9 (and I imagine in X as well) there are two main areas to configure Logic.
    1. Is Preferences    Preferences settings are global and affect all projects.
    2. Is Settings          Settings are set for each project, they are not global
    You typed:  Preferences > Midi > Sync >MIDI sync project settings
    See what is says, MIDI Sync Project Settings.
    Preferences has forwarded you into the Settings area so no, the MIDI Sync options are not global, they have to be adjusted for each song, that's why I suggested setting up templates of your most used project setups.

  • How do I change and set the width of the Address and Search box

    Currently, the Address box crowds out the Search. I really don't need the Address box as much as I need the Search box. I recall a method of setting them using a routine in the Chrome folder but I sure can't find it. Can you help?
    Thank
    Ed

    Method 1:<br/>
    Using the resizer on the interface. See - https://support.mozilla.org/en-US/kb/search-bar-easily-choose-your-search-engine#w_moving-or-removing-the-search-bar (''second bullet item; done without entering customize mode.'' By default, Location and Search bars will occupy all available space on the Navigation toolbar in a 2 to 1 ratio, respectively.)
    Method 2:<br/>
    Add code to userChrome.css below the @namespace line.
    ''@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    See - http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files<br/>
    Adjust the width to your needs, no space before px
    *urlbar-container {max-width: 400px !important;}
    *search-container {max-width: 200px !important;}

  • Hide document window and set progress bar window in front...

    Hi everyone,
    We have created the batch script to generate artlink reports from multiple inx files and writing it into a text file.
    Our script will open each document from the selected folder and generating the art link reports. From starting to end of the process the progress bar window will takes place to show the status of the process. The concern is, the progress bar window has been sent to back after opening of each document. Is it possbile to minimize the documents window, so the progress bar window alone displayed in the screen as front most window.
    Can anyone look into this and help me out. Thanks in advance.
    Thiyagu

    Hi Thomas,
    Thanks for your kind help. Its working greatly. Sorry, past two days i was outstation so i am unable to reply you.
    Once again thanking you.
    Regards
    Thiyagu

  • How to change security setting to open windows share on intranet

    In Internet Explorer I can browse to windows shares like "\\server\share\index.html"
    In Firefix I can chage a preference (security.checkloaduri) to allow that
    Is there a way in Safari?
    Thanks
    -Marc
    Message was edited by: Mgibeault

    * System Preferences
    * Java
    * Click on Security
    * The site exceptions list Edit in list of sites ...
    * Enter the name of the site URL
    * Click on the add button
    * Click OK
    * Click OK and Done! already have close your browser and try to enter again.

  • Problem in getting and setting focus on an item in j2me

    hi all,
    i wanna get focus on an item when a user selects it can any one tell me is there any class in j2me for doing so
    thx

    Hi,
    :. It's not exactly what you want, but it can bring some light to the
    matter.
    const char *JstrToChar( JNIEnv *env, jstring jstr )
      if( jstr != NULL ) return (*env)->GetStringUTFChars( env, jstr, NULL );
      else               return NULL;
    int JarrLength( JNIEnv *env, jobjectArray oarr )
      if( oarr != NULL ) return (*env)->GetArrayLength( env, oarr );
      else               return 0;
    void freeJstr( JNIEnv *env, jstring jstr, const char *p )
      if( p != NULL ) (*env)->ReleaseStringUTFChars( env, jstr, p );
    JNIEXPORT void JNICALL showArray( JNIEnv *env, jobject self, jobjectArray jv_oarr )
      register int      iCt;
      jclass      jv_clsstr;
      jobject      jv_obj;
      int           iLen;
      const char      *content;
      iLen = JarrLength( env, jv_oarr );
      if( (jv_clsstr = (*env)->FindClass( env, "java/lang/String" )) != NULL )
        for( iCt = 0; iCt < iLen; iCt++ )
          jv_obj = (*env)->GetObjectArrayElement( env, jv_oarr, iCt );
          if( (*env)->IsInstanceOf(env, jv_obj, jv_clsstr) )
            content = JstrToChar(env, (jstring)jv_obj);
         fprintf( stderr, "Just testing. Param[%i]=%s\n", iCt, content );
            freeJstr( env, (jstring)jv_obj, content );
      else fprintf( stderr, "Error on finding class String!\n" );
    :. Meanwhile inside Java code...
    public native void showArray( Object[] arr );
    :. I sent an array of Objects instead of Strings, as you can see.
    Also the above sample was modified in a hurry, so it can bring small
    errors of typing. Hope it helps.Roque

  • Change GL Account and 'SET' EXKN

    I get the syntax error 'Null Value' where the code is commented below when trying to use the chosen interface. I am trying to change and  'SET' the value of  LS_ACCT-SAKTO, in the GL Account Number.  I know it thinks the interface doesn't exist. Is it possible to somehow create an instance of an interface? I am also thinking that I may be using the incorrect interface. 
      Thank-You.
    METHOD IF_EX_ME_PROCESS_REQ_CUST~PROCESS_HEADER.
      DATA: LT_ITEMS        TYPE MMPUR_REQUISITION_ITEMS.
      DATA: LS_ITEM         TYPE MEREQ_ITEM.
      DATA: LT_ACCT         TYPE MMPUR_ACCOUNTING_LIST.
      DATA: LS_ACCT         TYPE EXKN.
      DATA: LS_SET_SAKTO    TYPE MEPOACCOUNTING_DATAX.
      DATA: ZIF_ACCOUNTING_MODEL_MM TYPE REF TO IF_ACCOUNTING_MODEL_MM.
      FIELD-SYMBOLS: <FS_ITEM> TYPE LINE OF MMPUR_REQUISITION_ITEMS.
      FIELD-SYMBOLS: <FS_ACCT> TYPE LINE OF MMPUR_ACCOUNTING_LIST.
      CALL METHOD IM_HEADER->GET_ITEMS
        RECEIVING
          RE_ITEMS = LT_ITEMS.
      LOOP AT LT_ITEMS ASSIGNING <FS_ITEM>.
        LS_ITEM = <FS_ITEM>-ITEM->GET_DATA( ).
        LT_ACCT = <FS_ITEM>-ITEM->IF_ACCT_CONTAINER_MM~GET_ITEMS( ).
        LOOP AT LT_ACCT  ASSIGNING <FS_ACCT>.
          LS_ACCT =  <FS_ACCT>-MODEL->GET_EXKN( ).
          LS_ACCT-SAKTO = 'N500300'.
          LS_SET_SAKTO-SAKTO = 'X'.
          ZIF_ACCOUNTING_MODEL_MM->SET_EXKNX( LS_SET_SAKTO ).       "Null Value?
          ZIF_ACCOUNTING_MODEL_MM->SET_EXKN( LS_ACCT ).                     "Null Value?
        ENDLOOP.
      ENDLOOP.
    ENDMETHOD.

    Hi Tom,
    you already have a instance of ACCT interface ...i have changed your code a little bit ,let me know if you still facing any erorrs.
      LOOP AT LT_ITEMS ASSIGNING <FS_ITEM>.
        LS_ITEM = <FS_ITEM>-ITEM->GET_DATA( ).
        LT_ACCT = <FS_ITEM>-ITEM->IF_ACCT_CONTAINER_MM~GET_ITEMS( ).
        LOOP AT LT_ACCT  ASSIGNING <FS_ACCT>.
          LS_ACCT =  <FS_ACCT>-MODEL->GET_EXKN( ).
          LS_ACCT-SAKTO = 'N500300'.==>pass value in full length,i.e. 10char value...use alpha conversion.exit....
          LS_SET_SAKTO-SAKTO = 'X'.
          <FS_ACCT>-MODEL->SET_EXKNX( LS_SET_SAKTO ).       "Null Value?"Changed by Prabhu
         <FS_ACCT>-MODEL->SET_EXKN( LS_ACCT ).                     "Null Value?"Changed by Prabhu
        ENDLOOP.
      ENDLOOP

  • How to pass querystring value to swfobject and set it in adobe flash

    Hi,
    I must tell that I have not much knowledge about flash.
    I have a flash slideshow on my homepage which displays news by a xml file under http://bit.ly/q48UmE and I am using slideshowpro for it. That slideshow xml file path must be set within adobe flash program.
    Xml file path is under http://bit.ly/pBeaUX if you would add ?lang=en, it would output english version.
    What I need in here, when a language is changed from language selector at header, News must be set as selected language respectively. My question is how to get querystring value and pass it to adobe flash so it is changed and set according to the selected language.
          var flashvars = {
          var params = {
            bgcolor: "#000000",  
            allowfullscreen: "true",
            wmode:"transparent",
          var attributes = {}
              swfobject.embedSWF("swf/slideshowpro.swf", "flashcontent", "550", "400", "10.0.0", false, flashvars, params, attributes);
              //attributes.addVariable("dil", "<%=request.querystring("lang")%>");
    Any help much appreciated

    Since there are only two languages to choose from, you could simply use a Javascript document.write() function to write out the alternate object and embed section of that page when/if the user selects English. In any case, you don't want to use Flash vars(). There is no way to get the Flash movie to read a new value after the movie has loaded. You could store the language value change in a Javascript variable and then read that variables value from the Flash movie.
    If you are changing out the entire movie when the language is changed, I would use the first method: Javascript document.write(). If you have both the Turkish and English language content in the same movie then I would use the second method and have Flash read a variable from the language selector. You can use the ExternalInterface class for that.

  • Table Maintenance events and field focus

    Hi all,
    In event 01(save data) of table maintenance, I have the code to ensure some fields are not left blank:
    When testing the creation of table records in SM31, it gives me the error msg successfully, but after that greys out all fields in that row except the primary keys.
    - My primary keys are already filled.
    - The mandatory field that must be filled is not filled yet, but is greyed out after the error message is given.
    How can I avoid this and set focus on the mandatory non-key field?
    My code as follows:
    ***INCLUDE LZBUSICONNF03 .
    FORM CHECKMANDATORYFIELDS.
      IF ZPWHPO_INC-HPO_NAME IS INITIAL.
    *   Enter company code
        MESSAGE e100(ZBUSICONN_MSGCLASS).
      ENDIF.
    * Validation of COMPANY_CODE
    *  IF TABLEN-company_code IS INITIAL.
    ENDFORM.

    Hello,
    To check on not key fields, you can modify the "Maintenance screens". There you can use the logic as in any other dialog program and add you own check in a PAI module.
    Rgds,
    JP

  • On my Mac desktop I must have changed a setting so that now when I move the mouse the open windows fly off to the sides and I can't see them. They come back when I move the mouse, but it is so annoying. How can I make the windows not disappear like that?

    On my Mac desktop I must have changed a setting so that now when I move the mouse the open windows fly off to the sides and I can't see them. They come back when I move the mouse, but it is so annoying. How can I make the windows not disappear like that?

    Click on the Hot Corners..  button and look at the four definitions.  In the picture below, if you moved the cursor to the right top of the screen, it would slide all the applications off the screen as you describe and show the desktop.  Set it to "-" to deactivate.

  • When I play games in Mozilla on fb..some setting changed and now the pop up window that appears to send gifts to my friends only lists 3 ppl at a time some games i have a scroll down button others i dont..can u help m fix this please?

    When I play games in Mozilla on fb..some setting changed and now the pop up window that appears to send gifts to my friends only lists 3 ppl at a time some games i have a scroll down button others i dont..can u help m fix this please?

    Hi Winnie
    Unfortunately I have been sick and did not read the message before. I apologize.
    I have not received help beyond what is on the page. But when I get I tell you.
    I hope you can get answers. If you receive, I ask that you share with me.
    thank you very much
    best regards
    AC
    Date: Mon, 27 Feb 2012 09:33:10 -0700
    From: [email protected]
    To: [email protected]
    Subject: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        Re: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        created by Win_Form in Forms - View the full discussion
    Hi ACI wonder if you can share any responses on to your question above?I too have never used a script but, I have the same problems as you in regards to building a form. And wants to have the same 'protection' and message reminders for the end users. Any information, including a script and/or a contact email of experts you can share with me will help tremendously. Thank you so much in advance. Winnie
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4232307#4232307
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4232307#4232307. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Forms by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Changed e-mail password in windows live account - now cannot send email from iphone.  Have deleted the account from the iphone and reinstalled it - the password is correct - still no luck - any advice ?

    I changed the password in my windows live e-mail account.  My iphone now recieves but will no longer send e-mails.  I have deleted the account from the iPhone - reinstalled it and verified the password is correct.  I recieve a message that "Cannot Send Mail"  "the user name or password ... is incorrect.  Any advice ?

    Hello DRB1962
    Check to make sure that you validated the device within your account on webmail.
    iOS: Setting up Hotmail, Outlook, Live, or MSN email accounts
    http://support.apple.com/kb/HT1694
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Setting/Getting Parameter Values BEFORE and AFTER the param window loads

    Hi there. My name is William Sanchez. I posted this question on Brian Wheadon's blog because I'm not sure that what we're trying to accomplish can be currently done with 2008 Crystal Report Viewer  and was wondering if a future version will support this, or if we're just missing something. I've searched through the SDK and API and can't seem to find a solution. Here's what we're trying to accomplish
    In a nutsheel: we think we need to hook into Crystal Report Viewer's parameter window from our WPF app.
    What we need to do is to be able to pass a set of default values to our parameters AND, after that's done programmatically, still display the parameter window for the report. Currently, however, after you do:
    parameterFieldDefinition.ApplyCurrentValues(currentParameterValues);
    it's as if Crystal says: Ok, we got the value, there's no need to show the parameter window anymore. This makes sense, but we need to still be able to show the parameter window to the user because all we did (from our point of view) is to pass in a default "choice". If we were to call ApplyDefaultValues() instead, the actual choices for the parameter are overriden. We basically want to make a default choice for the user from the allowed values for that parameter. But we want to still present the parameter window with the default choice already selected, plus all the other choices available for that parameter. If the crystal report has parameter1 set to false as default, we might want to programmatically set it to true, but still show false as an option on the parameter window.
    Part 2 of what we'd like to accomplish is that after the user changes any of the parameter values, and clicks OK to view the report, we'd like to catch the new parameter values in code to do something with them.
    This is why we're thinking of hooking into the parameter window so that we can tell it what we want both BEFORE it loads and AFTER the user is done...just like we can hook into the CrystalReportViewer refresh button like this:
    CrystalReportsViewer.ReportRefresh += new CrystalDecisions.Windows.Forms.RefreshEventHandler(CrystalReportsViewer_ReportRefresh);
    Our app is a WPF C# .NET 3.5 desktop application. Any assistance or direction will surely be appreciated.
    Kinds Regards,
    William Sanchez
    Edited by: wsanchez78 on Mar 31, 2010 1:20 AM

    Good day Ted, thanks for your reply.
    I did try Parameter.Default value, but what it does is as I mentioned above. If I have Parameter1 as a boolean, with possible values of true and false, if I set Paramter1.Default = true, the parameter window does come up, but it removed the false option from the drop down. So this is not a way to pick one of the various values for Parameter1, but to default it to only one of the values. It's close to what we need, but not fully.
    Also, what are your thoughts about getting the parameter values after the user has made their changes to the CrystalReportViewer parameter window and click OK to pass them to the report. How can we programmatically get those new values?

  • Change Default Setting in PDF Set Up Window to RGB

    Is it possible to change the default setting in the FrameMaker 11 PDF Set UP window to RGB. The current default setting is CMYK.
    I have not been able to find a way to do this.
    Thank-you for your assistance.
    Brenda

    Thank-you. This solved the problem.
    I have another questions. I am importing xml feeds into a FM11 using an automated process. After importing, the xml feeds are translated into a formatted FM11 file. When I perform a Save As in order to save the document as Document 11.0 (.fm), I am noticing that the default choice is to save the  document as XML. I need to choose Document 11.0 (.fm) before saving. I checked the FrameMaker template and its default setting Save As setting is Document 11.0 (.fm). Is there a way for me to change a setting so that the imported file has a default Save As setting of Document 11.0 (.fm)?

Maybe you are looking for

  • CS4 Crashes when Loading Images in OSX Lion

    Hi, I'm having troubles with Photoshop since migrating to a new iMac with Lion and an SSD. Now when I attempt to load any file, PS crashes. I'll attach the errror report below as a seperate message. I have tried: * deleting com.apple.LaunchServices.p

  • How to build my own HDR photoshop plugin?

    Hi, I am a true fresh here and trying to build a HDR photoshop plugin, with an existing HDR merging algorithm in a static C lib. What I need to do is just to provide a file dialog to read in several images, then to process pixels of these images with

  • MySQL database relation question

    I'm setting up a site where registered users can catalog their Japanese Vinyl toys (i.e. vinyl kaiju). I have 2 tables: collection members members has an ID that is specific to each member (naturally). within collection I have kaijuID and userID. Wha

  • Listener Error Instance "cdeAS", status BLOCKED

    when I issue startup command as sysdba I get Error SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down. SQL> startup ORA-12528: TNS:listener: all appropriate instances are blocking new connections SQL> exit Disconn

  • GG Event Action

    Hi, We have tried to store the some token value in file , for that we have written simple shell script, When ever any insert happen in one of the table the optype and table name will be stored in text file. For that we have used the below parameters