Leaving or hiding unnecessary screen

Hi everybody,
I have created some simple gui using only objects at runtime: they are accessible from a main dialogbox container. I want to display this, but there is always an empty screen behind which shouldn't be seen.
DATA: g_custom_container TYPE REF TO cl_gui_dialogbox_container,
      splitter_easy TYPE REF to cl_gui_easy_splitter_container,
      viewer TYPE REF TO cl_gui_html_viewer.
  CREATE OBJECT g_custom_container
    EXPORTING
      name  = 'CONTAINER2'
      width = 800
      height = 300.
  CREATE OBJECT splitter_easy
      EXPORTING
      parent        = g_custom_container
      orientation   = 0
      sash_position = 95.
  CREATE OBJECT viewer
    EXPORTING
      parent   = top
      saphtmlp = 'X'.
  doc_url = somelocalpath....
  CALL METHOD viewer->show_url
    EXPORTING
      url                  = doc_url
    EXCEPTIONS
      cnht_error_parameter = 1
      OTHERS               = 2.
When i call this piece of code (this is a sample of course) from the calling program, a new empty screen is created, and over the screen the desired gui is displayed. I also tried to associate object creations to a transaction type OO (calls a method from a class i previously defined trough class builder) and then calling trough, but the result is the same.
Does anyone know why this is happening, and hopefully how to solve it? Thanks in advance.

Hi Peppone,
Once i hav used this cl_gui_dialogbox_container class to generate a popup to display some additional
information in the selection screen...no blank screens!!... it worked fine for me...
check the below example...
Here the popup comes over the sel-screen( no blank screen ) and we can also enter values(try changing
rows and click pop-up again) in the sel-screen keeping the popup open....
*Example : *
CLASS lcl_event_handler DEFINITION.
  PUBLIC SECTION.
    DATA : lv_top    TYPE i,
           lv_left   TYPE i,
           lv_height TYPE i,
           lv_width  TYPE i.
    METHODS close_popup FOR EVENT close OF cl_gui_dialogbox_container IMPORTING sender.
ENDCLASS.                    "lcl_event_handler DEFINITION
CLASS lcl_event_handler IMPLEMENTATION.
  METHOD close_popup.
    PERFORM free_controls.
  ENDMETHOD.                    "destructor
ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
TABLES : sscrfields.
DATA : popup        TYPE REF TO cl_gui_dialogbox_container,
       splitter     TYPE REF TO cl_gui_splitter_container,
       transponder  TYPE REF TO lcl_event_handler,
       container1   TYPE REF TO cl_gui_container,
       html_control TYPE REF TO cl_gui_html_viewer.
PARAMETER rows TYPE i DEFAULT 2.
SELECTION-SCREEN PUSHBUTTON 60(10) name USER-COMMAND push.
INITIALIZATION.
  MOVE 'Pop-up' TO name.
AT SELECTION-SCREEN.
  CHECK sscrfields-ucomm EQ 'PUSH'.
  IF popup IS BOUND.
    PERFORM free_controls.
  ENDIF.
  CREATE OBJECT popup
    EXPORTING
      top    = 50
      left   = 600
      width  = 300
      height = 300.
  CREATE OBJECT splitter
    EXPORTING
      parent = popup.
  CREATE OBJECT transponder.
  SET HANDLER transponder->close_popup FOR popup.
  splitter->set_grid( rows = rows columns = 2 ).
  splitter->set_column_width(  id = 1 width = 50 ).
  container1 = splitter->get_container( row = 1 column = 1 ).
  splitter->set_border( '0' ).
  CREATE OBJECT html_control
    EXPORTING
      parent = container1.
FORM free_controls.
  FREE container1.
  popup->free( ).
  CLEAR popup.
ENDFORM.                    "free_controls
Cheers,
Jose.

Similar Messages

  • Whenever I leave the main VI screen, the data is no longer able to be read.

    I have a VI that I have used on and off on a test stand of mine for a year and a half. Yesterday, I ran it for the first time in about a month, and the VI had developed a peculiar problem. Whenever I leave the main VI screen and go back to it, data is no longer able to be read. By "leaving the main VI screen" I mean bringing up another Windows program into the foreground, or switching to the diagram screen of the VI I'm running, or even using one of the buttons on the main VI to bring up a sub VI screen. If I stop and then restart the VI, then everything is fine again. All data is read perfectly for hours on end until I leave the screen and then it goes nuts.
    I actually ha
    ve 4 boards that are being read by the program, and all of the inputs from one of the boards go haywire in this way. The inputs from the other three boards are always fine, and all inputs from the one board always aren't. The inputs include both pressure transducers and thermocouples. I also want to stress that the program worked fine for a year and a half until yesterday. Now, it doesn't. The board that has problems is an SCXI-1102, if that makes a difference, but I really get the impression that it is a software problem.
    I originally thought it might be that the sub VIs had been changed in such a way as to not allow them to close properly except that the problem persists even when I simply switch back and forth between the diagram and front panel. In this case, I haven't touched anything in the program! I also thought that there might not be enough disk space on the computer, so I just cleared 100 Meg off my hard drive yesterday, but the problem persists. Does this problem
    sound familiar to anybody?

    Interesting. I thought about posting the same answer, because I, too have had the same experience with video drivers. I wasn't sure if this was a problem that anybody else was having, but evidently it is.
    If you dig deep down into LabVIEW manuals, it does make a suggestion to drop the colors to as few as you need. My driver was having problems with 16 million colors, so I dropped it to 256. All my problems disappeared when I did this, too.
    Mark

  • New iPad 5 pixels getting stuck (Rewind, Play, Fast Forward) when using apple tv. Leave ghost buttons on screen. Do I return? Please advise.

    New iPad 5 pixels getting stuck (Rewind, Play, Fast Forward) when using apple tv. Leave ghost buttons on screen. Do I return? Please advise.

    edit: iPad 4

  • I'm unable to open the Finder as it keeps hiding behind screens., I'm unable to open the Finder as it kees hiding behind screens.

    Just upgraded my BacBook Pro to OS X ( 10.7.2) on a Macbook and unable to open the Finder Menu as it keeps hiding behind screens. Please help.

    Usually clicking on the Finder icon on the Dock brings up the Finder window to the front.
    Restart and try.

  • Does the keyboard leave smudges on the screen?

    Hi All,
    I just got a new 15 inch MBP w/ Retina display.  I'm wondering if I need to place a soft, thin cover on the keyboard to prevent the keys from leaving smudges on the screen?  When I got my first laptop many, many years ago, after a few weeks I noticed that the keyboard started to leave smudges on the screen because the keys would make slight contact with the screen when it was closed.  Ever since then, I've always placed a thin protective cover between the keyboard and screen every time I closed my laptop.  I did it with the above mentioned Dell and with my first 17 inch MBP.  Now that I've got this new 15 inch MBP, I wonder if I need to continue that OCD habit...what do you think?
    Mig190

    The only thing I can tell you is to test it!  If there are smudges, use the cover that came with the computer. 

  • Hiding selection-screen

    Hi All,
    I have a requirment to hide a selection-screen block based on the radio button option displayed in selection-screen.
    I am able to do this, but in this block there are some mandatory fields to be filled .
    So every time when i change the radio button , i have to fill the mandatory fields in order to hide it .
    Pls let me know how to hide a block without entering the mandatory fields in it .
    Thanks & Regards,
    Rajasekhar.

    Hi Rajasekhar,
    Either remove the 'obligatory' keyword from the syntax when you declare the mandatory fields, rather, check in your program, whether these fields are filled for suitable radio-button corresponding to that block, and if these are empty, give error message 'Fill in required fields'. Thus while hiding the block for a different radio-button You do not require to fill these fields.
    Else, just code some default values in the program to these mandatory fields, so that You need not enter the values to these fields before hiding the block.
    Regards,
    Birendra

  • Photoshop is leaving shadows on my screen

    I have an issue where in photoshop, opening a menu and clicking on something like, File > New or any other option, will leave a blue shadow on my screen, of that menu item. It persists over every program until I restart the computer, even if photoshop has been closed. This has only happened in the last week.
    Is this an issue with photoshop, or is it my computer?

    System type (Mac or PC)?
    If PC, video card type and display driver version?
    -Noel

  • Moving open windows leaves a trail across screen

    When I drag a window over another window the first window leaves a trail and remnants of itself across the other window. It also appears that the second window us redrawing slowly. I've tried everything and nothing seems to fix this. A lenovo tech guy in Korea claims that with the B575 this is an unavoidable problem because the hardware cannot keep up so he advised that I turn off the "show window contents while dragging" option in the Advanced System Performance settings.
    1. I do not believe that the B575 hardware is not capable of refreshing the screen fast enough to allow this to happen
    2. This does solve the problem of seeing a series of trail remnants but I think its a cop out and avoids fixing the real issue.
    Any suggestions?
    Brand new laptop had windows 7 home premium installed at the shop

    Open task manager, check your processes, its very likely you have some nasty bloatware or whatnot eating CPU cycles up in the background. My B575 does not have this problem.

  • Hiding of Screen Elements

    I have some screen elements which I hide.
    On hiding, however, the area appears as blank; i.e. there is an unwanted space between screen elements.
    Is there a way to eliminate the extra visible space?
    Regards,
    Abhinava

    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF  p_sab = 'X'.
          IF screen-group1 = 'GR1' OR screen-group1 = 'GR2'.
      <b>   screen-active = '0'.
            screen-invisible = '1'.</b>     
         ELSE.
            screen-active = '1'.
            screen-invisible = '0'.
          ENDIF.
          <b>MODIFY SCREEN.</b>
      Endif.
    USe active and invisible.
    regards
    vinod

  • Pop up illustrator windows leaving drop shadows on screen even outside of illustrator

    Hi,
    I've recently updated to Adobe Illustraor CC 2014 and there seems to be a new feature causing problems. The pop up character window initiated by the top docked toolbar is leaving a shadow on my screen, even outside of illustrator. The only way to get rid of it is to restart my computer.
    This is driving me crazy as i never had any issues with Illustrator CC. Thanks for any help!

    This issue seems to be with dual monitor setup where the 2nd monitor is 24HD Cintiq. Since the resolution of both the monitors is different the pop-ups from the control bar links are getting displayed detached/away (in the center of the screen) from the control bar.
    Illustrator team is looking into this.
    For the time being making both the displays duplicate resolves the issue when the Cintiq is not your main monitor.
    Please drop me an email if anyone else is encountering this.
    Thanks & Regards,
    Raghuveer
    [email protected]

  • FireFox Hiding on Screen

    Whenever I have FireFox open, and use another program at the same time, FireFox never comes to the front of the screen. It's always hiding behind the other open application(s). I'll try Show All, Expose, closing & reopening, etc. Nothing works.
    Anyone know what can be done or why this is happening? It never happened on my Power Mac G5...
    Thanks

    I have actually noticed this once or twice but it seems to only happen when the App is running a priority process like printing or while toast is preparing a dvd to burn. If the App does not go back to normal you just have to quit the app and launch it again. However this is kind of opposite to what you are saying. My experience was that a particular app would stay in front not stay in back. Just to verify that you have Firefox installed correctly, is it installed in your Applications folder? Are there any disk images left on your desktop that open up when you run Firefox?

  • Hiding unnecessary or unwanted updates

    Hi...I just upgraded to OS-X Mavericks yesterday...as soon as the system finally booted into the Mavericks start screen, I was advised of several updates for apps, one of which was iMovie...I initiated the updates and all of them went well except for iMovie.  When I click on the UPDATE link for iMovie, it starts for a few seconds then gives me an error message which says my video card does not support the new iMovie app.  That's OK with me because I don't use iMovie much at all.  However, when I click OK on the error message, it still wants me to update and keeps reminding me to update iMovie, but it can't do it because my video card does not support.  Is there a way to hide or remove unwanted or unnecessary updates in Mavericks?...I could in Mountain Lion and previous iterations of OS-X.
    Thanls,
    Larry

    Just tap the app and hold until it begins jiggling. Then tap the "X" in the upper left corener to delete the app. Pres the home button when done to stop the apps from jiggling.

  • Unnecessary screen touch during calls

    During a call, when the phone is near to my face, the screen display turns off but the screen can still sense the touch.
    I am busy on the call and the screen keeps on taking unnecessary commands by the touch of my face.
    Please suggest a solution.

    This is not normal,while the screen is off there shouldn't be any touch registered.Check if the same occurs in safe mode:
    http://talk.sonymobile.com/t5/FAQ/How-to-boot-your-phone-into-safe-mode/m-p/348008
    All we have to decide is what to do with the time that is given to us - J.R.R. Tolkien

  • Hiding selection screen fields upon clicking a button

    Hi .
    I have a requirement like we need to hide and bring back the selection screen fields upon clicking a button( Expand and collapse in the same button) .
    in ABAP Query,we can maintain this,  for the variant we created.
    We need this functionality on the selection-screen presently.
    How to achieve this in the selection -screen?
    Valuale pointers are desparately needful.
    Regards,
    SSR.

    Hi,
    SELECTION SECREEN (P_) Parameter
    (S_) Select Options
    SELECTION-SCREEN : BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001,
    BEGIN OF LINE,
    COMMENT (26) C1 MODIF ID XYZ.
    SELECT-OPTIONS : S_MATNR FOR MARA-MATNR MODIF ID XYZ NO-EXTENSION .
    SELECTION-SCREEN : END OF LINE,
    BEGIN OF LINE,
    COMMENT (26) C2 MODIF ID XYZ.
    SELECT-OPTIONS : S_MATKL FOR MARA-MATKL MODIF ID XYZ NO-EXTENSION .
    SELECTION-SCREEN : END OF LINE.
    PARAMETERS : R_MATNR RADIOBUTTON GROUP RAD1 DEFAULT 'X'
    MODIF ID ABC USER-COMMAND MAT,
    R_MATKL RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN END OF BLOCK blk1.
    INITIALIZATION.
    C1 = 'Product Code'.
    c2 = 'Product Group'.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-NAME0(7) = 'S_MATNR' OR SCREEN-NAME0(7) = 'S_MATKL'.
    SCREEN-INPUT = '0'.
    SCREEN-INVISIBLE = '1'.
    ENDIF.
    CASE SCREEN-NAME+0(7).
    WHEN 'S_MATNR'.
    IF R_MATNR = 'X'.
    SCREEN-INPUT = '1'.
    SCREEN-INVISIBLE = '0'.
    ENDIF.
    WHEN 'S_MATKL'.
    IF R_MATKL = 'X'..
    SCREEN-INPUT = '1'.
    SCREEN-INVISIBLE = '0'.
    ENDIF.
    ENDCASE.
    IF R_MATNR = 'X'.
    IF SCREEN-NAME = 'C1'.
    C1 = 'Product code'.
    C2 = SPACE.
    ENDIF.
    ENDIF.
    IF R_MATKL = 'X'.
    IF SCREEN-NAME = 'C2'.
    C2 = 'Product Group'.
    C1 = SPACE.
    ENDIF.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    Hope it helps.
    best regards,
    Nagaraj Kalbavi

  • REG hiding selection-screen comment

    Hi all,
    Cud any one tell me how to hide a selection-screen comment.

    hi chaitanya,
    see the example may be useful.
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(8) PWD.
    SELECTION-SCREEN POSITION 35.
    PARAMETERS: PASSWORD(8) MODIF ID AAA.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: PROGRAM(8).
    SELECTION-SCREEN END OF BLOCK BLOCK.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-GROUP1 = 'AAA'.
          SCREEN-invisible = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    reward if useful,
    thanks and regards

Maybe you are looking for

  • In cor2, components only first line item should be in editalbe mode and res

    Dear friends, My client requirement is , in cor2 ie change process order, in components, Except line item 1. rest of all the components needs to be in display( grey) mode. As far as my knowledge,  with the option of Screen Variant , we can make all t

  • IDVD crashing when attempting to change font in Theme

    Hi, all: I'm writing on behalf of my 13-year-old daughter, who with a friend used iMovie HD to make a movie for a school project, and then used iDVD '08 to burn that project to a disc. She's had to edit the movie a bit, and has shared the edited vers

  • Directshow9 and Quicktime 7 error

    I just upgraded to a 64-bit system, and am not experiencing problems importing videos into my presentations.  "A required system library did not install properly.  Please install directshow9 and quicktime 7 or higher..." error shows up; but I have bo

  • Mobile Preview

    I have a created a JSP page with the purpose of displaying on a mobile device. In the provider.xml page and I have put content type for both html as well as for mobile XML. When I view the page in the browser, it works fine, however when I click the

  • Is built in memory replaceable?

    I may have a faulty logic board or have a bad stick of ram. I think that it is the built in memory that has gone bad. just wanting to know if it is interchangeable with a new stick. also I want to know if anyone has ever been able to repair a power b