Write text with cl_gui_dialogbox_container

Hi all,
I have a dialogbox container cl_gui_dialogbox_container and I need a way to write something inside of it(WRITE 'hello world'), without using alv classes.
Are there some classes to use?
Should i create a dynpro?
can you help me?
Thanks.
Tony

Hi Tony,
check sample code, which I have used to create a popup with text without creating a dynpro:
*       CLASS lcl_dialogbox_handler DEFINITION
* Definition of dialogbox event handler
CLASS lcl_dialogbox_handler DEFINITION.
  PUBLIC SECTION.
    CLASS-METHODS:
      close
        FOR EVENT close
        OF cl_gui_dialogbox_container.
ENDCLASS.                    "lcl_event_receiver DEFINITION
*       CLASS lcl_event_receiver IMPLEMENTATION
* Implementation of dialogbox event handler
CLASS lcl_dialogbox_handler IMPLEMENTATION.
  METHOD close.
* I will free textedit control and dialogbox
    CALL METHOD gr_textedit->free.
    FREE gr_textedit.
    CALL METHOD gr_dialogbox->free.
    FREE gr_dialogbox.
* finally flush
    CALL METHOD cl_gui_cfw=>flush
      EXCEPTIONS
        OTHERS = 1.
  ENDMETHOD." close
ENDCLASS.                    "lcl_dialogbox_handler IMPLEMENTATION
DATA: gr_textedit TYPE REF TO cl_gui_textedit,
      gr_dialogbox TYPE REF TO cl_gui_dialogbox_container,
        gt_text_data TYPE STANDARD TABLE OF char128.
* I will create a dialogbox for displaying text in textedit
  CREATE OBJECT gr_dialogbox
    EXPORTING
      width   = 800
      height  = 400
      top     = 50
      left    = 100
      caption = 'Close Window to end Display'.              "#EC NOTEXT
* I will create a textedit control to display text
  CREATE OBJECT gr_textedit
    EXPORTING
      parent = gr_dialogbox.
* Handler is necessary for closing popup
  SET HANDLER lcl_dialogbox_handler=>close FOR gr_dialogbox.
* I will set text to be displayed
  CALL METHOD gr_textedit->set_text_as_r3table
    EXPORTING
      table           = gt_text_data
    EXCEPTIONS
      error_dp        = 1
      error_dp_create = 2
      OTHERS          = 3.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
* I will make text read-only, changing it is meaningless
  gr_textedit->set_readonly_mode( 1 ).
I hope it helps.
Regards
Adrian

Similar Messages

  • How in Illustrator I write text with transparent background ?

    How in Illustrator I write text with transparent background ?

    that is correct. You open it in AI and you have an option to use area text, you first take the text tool and drag to make a text frame, which wors like it does in a layout program. Or you click the text tool any where on the canvas and just start typing if you want to make another line you either hit the return (enter) key or for  soft return use shift/return (enter).
    The default is a transparent background.
    All art i Illustrator is on a transparent background unless you add an object behind other objects that has a fill color.

  • R: (forte-users) How can I write numbers with 7 digit in aListView?

     

    here is the copy paste of PDF that I am working on:
    %PDF-1. 4
    1 0 obj
    << /Type /Catalog
    /Outlines 2 0 R
    /Pages 3 0 R
    >>
    endobj
    2 0 obj
    << /Type /Outlines
    /Count 0
    >>
    endobj
    3 0 obj
    << /Type /Pages
    /Kids
    /Count 1
    >>
    endobj
    4 0 obj
    << /Type /Page
    /Parent 3 0 R
    /MediaBox
    /Contents 5 0 R
    /Resources << /ProcSet 6 0 R >>
    >>
    endobj
    5 0 obj
    << /Length 883 >>
    stream
    %write text with size 14 helvetica font
    BT
    /F1 14 Tf
    145.417 347.529 Td
    ( This is text output ) Tj
    ET
    %draw line horizontal - with width 1
    0.5 w
    360 648 m
    144 648 l
    S
    %draw line vertical- with width 1
    0.5 w
    432 648 m
    432 504 l
    S
    %draw rectangle - with width 1
    0.5 w
    144 432 216 72 re
    S
    endstream
    endobj
    6 0 obj
    endobj
    q
    100 0 0 50 150 600 cm
    BI
       /W 5
       /H 5
       /BPC 8
       /CS /G
       /F /AHx
    ID
    0000000000
    FFFFFFFFFF
    0000000000
    FFFFFFFFFF
    0000000000
    EI
    Q
    xref
    0 7
    0000000000 65535 f
    0000000009 00000 n
    0000000074 00000 n
    0000000120 00000 n
    0000000179 00000 n
    0000000300 00000 n
    0000001532 00000 n
    trailer
    << /Size 7
    /Root 1 0 R
    >>
    startxref
    1556
    %%EOF

  • How to read and write Unicode text with MS Access?

    Hi all, I'm new to Java, so please forgive me if my question is too ... ^_^
    I'm writing a small program that read and write data with MS Access. However, when I insert Unicode text into the database, it has wrong encoding like this "h?y l? n?m".
    Please tell me how to fix this.
    Thanks in advance!

    The following forum thread might be enlightening:
    http://forum.java.sun.com/thread.jspa?threadID=573855&messageID=2870785
    I myself do not use MS Access, but a PreparedStatement is in general the best option.
    You can set parameters in the SQL which then get converted and even protected against SQL injection hacking.

  • How do you match the audio and text with the typer writer effect in Final Cut Pro?

    I am making a video and I want to sync up the text with the audio using the typer writer effect.  For example I want when the music makes a bing noise I want a letter to pop up.  How do you set the exact time for each letter that comes up instead of just choosing the duration.
    Thank you!!!!
    Virginia

    The most common cause is user error in understanding how these things are recorded in the acquisition system. You've got to first determine in it's easily solved by properly transcoding or if you're actually just seeing a display lag. Mismatched sync is based on different timebase scales so the offset gets worse the longer a clip plays.
    The most common solution is to unlink the components, time them precisely to the frame, and change the speed of one component to match precisely the length of the other. It's easy and usually results in a slight pitch change that is indiscernible.
    But you want to figure out the cause, not just he solution, so you can fix it in production instead of in post.

  • When using photo mail with PS12 I cannot write text on the mail page above the picture.

    can not write text on top of picture when I use photo mail with PS12 after entering the email address

    Why did you post this in a forum for Acrobat?

  • I am having an issue writing texts with Siri on iPhone 5 iOS 6.  When I do it just talking to the phone it works fine. However if I speak through the ear pod headphones or Bluetooth headset it only writes about 5 works before trying to send.

    I am having an issue writing texts with Siri on iPhone 5 iOS 6.  When I do it just talking to the phone it works fine. However if I speak through the ear pod headphones or Bluetooth headset it only writes about 5 works before trying to send.
    Does anyone know why this might be?

        Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • Why do i keep getting an error when trying to write text?

    how do i write text in a document? Everytime i click the 'T' text icon and click in my document it comes up with an error saying i can't use that tool do to a program error. i can't cut and pasted some pictures into my document, would that be why?

    sorry that meant to read i DID cut and paste some pictures into my document.

  • Unable to write text in Hindi Language in Flex running application

    I am not able to write text in Hindi in flex running application.
    I have installed Hindi font by window system CD and all I did for font installation.
    But still I am not able to write in Hindi in the running flex application by using Flash Player with all version.
    I am able to write text in Hindi in MS Word, even in the flex builder editor and all the place but not in the running application.
    Is Flash Player doesn’t support Hindi Writing?
    My running application support all other languages except Hindi.
    Please help me. It’s very urgent.
    Thanks In Advance

    Hello GargMoniKa
    even we are facing the same problem.
    we have a requirement of writing HINDI text using English Keyboard.
    you have mentioned above that you have implemented the other languages.
    can you please share the code so that we can try for other languages.
    i m really in need of it.
    thnk u in advance...

  • In InDesign, how does one determine the pixel size of a text box? Specifically, we need to write text to specifications of 600 pixel width, and have no idea a) how to scale a text box to specific pixel width, b) how to

    This may be a basic question... but in InDesign, how does one determine the pixel size of a text box? Specifically, we need to write text to specifications of 600 pixel width, and have no idea a) how to scale a text box to specific pixel width, b) how to determine what word count we can fit in, and c) how to do it in a table? Thanks!

    Set your ruler increments to pixels Preferences>Units & Increments. You can fill the text box with placeholder text Type>Fill with Placeholder text and get a word count from the Info panel with Show Options turned on from the flyout.
    From the Transform panel you can set a text box's width and height

  • Write Text Data Array to text file

    Greetings all. I hope someone can help me as I am really under the gun. The attached vi shows the basics of what I am trying to do. I have already written a vi that takes the Cal Data Array and prints it out in a nicely formatted report. My problem is that the powers that be also want the data saved to a generic text file that can be copied and printed out anywhere they like. As such, I need to save the data to a generic text file in column format such that it will all fit on one page in landscape mode. There are a total of 12 columns of data. I have been trying to create something that would format each column to a specific length instead of them all being the same. No luck so far. Basically, I need columns 1,2,3,8 and 12 to be length of 5. The rest a length of 9. I have tried to place the formatting part in a for loop with the formatting in a case, but it does not appear to work. I really need this quick so if anyone has any ideas, please help. As always, I really appreciate the assistance.
    Thanks,
    Frank
    Attachments:
    Write Cal Data to Text File.vi ‏21 KB

    pincpanter's is a good solution. Beat me to it while I was away building an example. Similiar approach using two for loops and case statement. Here is my suggestion anyway....
    cheers
    David
    Message Edited by David Crawford on 11-23-2005 09:37 AM
    Attachments:
    Write Text Data Array to text file.vi ‏31 KB

  • Write text to file produces error 1

    The attached vi attempts to write text to a text file. The file name is automatically created from the current date (no file dialog box shall be displayed). When I run the vi, I receive an error 1 and no file is being created.
    Attachments:
    Write_log_file.zip ‏60 KB

    Hi,
    To answer your question: The file path input of the Open/Create/Replace File.vi refers to a complete file path including the file name. I have modified your vi by concatenating the Location of Log File control with the Date string and using that as a file path. This runs perfectly without any errors.
    Regards,
    Ankita A.
    Applications Engineer
    National Instruments
    Attachments:
    Write_log_file_modified.vi ‏49 KB

  • How to write text file in Shockwave?

    Does anybody know how to write text file in Shockwave to
    user's disk?
    Thanks in advance.

    Those Xtras can wreak to much havoc when used with the wrong
    intent.
    What you can do is write with setpref and store a list of
    saves and the
    saves itself seperatly. Then you'd have to build your own
    save/open
    dialog to let the user:
    * pick a previously saved file to load or overwrite
    * have the user type the name of a new file to save.
    Only thing that remains is that the user cannot decide where
    the files
    are saved.
    Manno
    SiuLinda wrote:
    > Thanks a lot for your reply.
    > Yes, cookies is good but I have to write a program to
    save the text file in
    > where the user wants, user can open these files later if
    they like, like using
    > Filextra and Fileio, but I found all of these xtras seem
    to be not supported in
    > shockwave.
    >
    Manno Bult
    [email protected]

  • [AS][CS3] Finding text with character style

    Please help to tell me how to find text with a specific character style and then delete the text.
    I had no problem doing this with CS2 but its doing my head in now.
    Thanks,
    Andrew

    Here you go. This assumes that your character style is at the top level of the panel. If you're using style groups, you'll need to write code to get at the style you want to use.
    //DESCRIPTION: Delete text in named character style
    (function() {
      if (app.documents.length > 0) {
        deleteStyledText(app.documents[0]);
      function deleteStyledText(aDoc) {
        var cStyle = aDoc.characterStyles.item("CharStyleName");
        setupFindText();
        app.findTextPreferences.appliedCharacterStyle = cStyle;
        aDoc.changeText();
      function setupFindText(find, change, wholeWd, caseSense, foots, hidLayers, lockedLayers, lockedStories, masters) {
        app.findTextPreferences = null;
        app.changeTextPreferences = null;
        try { app.findTextPreferences.findWhat = find } catch(e) {};
        try {app.changeTextPreferences.changeTo = change } catch(e) {};
        app.findChangeTextOptions.properties = {
          caseSensitive:(caseSense == null ? false : caseSense),
          wholeWord:(wholeWd == null ? false : wholeWd),
          includeFootnotes:(foots == null ? false : foots),
          includeHiddenLayers:(hidLayers == null ? false : hidLayers),
          includeLockedLayersForFind:(lockedLayers == null ? false : lockedLayers),
          includeLockedStoriesForFind:(lockedStories == null ? false : lockedStories),
          includeMasterPages:(masters == null ? false : masters)
      } // end setupFindText
    Dave

  • Can i concatenate or add to the existing header text with new text  logic

    Hi,
    Is it possible to concatenate additional text into an existing text type? For example, would it be possible to write new logic where if certain conditions are met, the text in theheader detailswould be added to the existing Preparation Header text?
    I have on e delivery , i want to add the header text with with  date field (concatenate header text with date (godds issue date)in a single text
    please let me know.

    Venkata
    Unfortunately I am not aware of any such standard FM, I searched for it during my first reply itself, but no benefit.
    You can develop one if no std FM is available for this with the help of your technical g uy.

Maybe you are looking for

  • How to populate f4 values to standard pnp selection screen fields

    Hi Experts, my question is how to populate f4 values to standard pnp selection screen field. i am using LDB PNP for a report , it displays several fields with f4 values, i need to remove all the stadard f4 values and want to place my  f4 values in th

  • Synching iPad Calendar to MacBook Pro

    I am able to enter events in my MacBook Pro calendar and they show up on my iPad calendar, but not vice versa. I have run through set up twice, rebooted iPad, both calendars. Contacts went from iPad to MacBook, but not Calendar.

  • How to bring data from Oracle based Non SAP System to SAP

    Dear Friends, I have two servers, one is SAP and the other one is Non SAP with Oracle in backend. Please suggest how to take data from the NonSAP server to SAP server or how to connect the two. Please send the step-by-step configuration if possible.

  • Error when installing java se sdk  6.16

    Hi All, while installing java se 6.16 sdk I get this error: " Installer: Wrapper.WriteFile(In small chunks) failed with error 112: there is not enough space on the disk." I can not figure this out as my hard drive has 207Gb free. any help apreciated.

  • How to make a rectangle around activeDocument.selection?

    Hi,everyone! Recently I met a awful problem. I want to make a rectangle around current selection, but Not success. Could you help me or give some clues? Thanks!