Standard Widget Toolkit ( output on table/Text is different from console )

First of all, i would like to apologize if the question regarding SWT isn't suppose to ask in this place.
I'm building my program using eclipse, swt is chose to be my GUI.
Problem :
String x = "A Tray of Ice Cubes" + "\n" + "WW and an ice cube ";
this string when output inside the 'console' , the both 'Ice' and 'ice' will be align at the same place like :
... Ice ...
... ice ...
but when i put the inside a table/Text then the 'ice' and 'Ice' will not be align at same place.
It's happen like that because each character width is not the same such as character " W " will take much more bigger width than ' a '.
I already trying to find inside google on how to set all the character/ ascii to be the same width, and i failed.
Anyone that has encountered this problem before and has solved it please help me.
Kar Hong.

Thanks a lot BoBear for giving me some idea about where should i start so that i can achieve the output which i prefered.
The code i'm using is :
StyledText styledText = new StyledText(shell, SWT.H_SCROLL |SWT.V_SCROLL);
Font font = new Font(display, "Courier New", 10, SWT.NONE);
styledText.setFont(font);
I used "Courier New" instead of monospaced because when i use monospaced, it still not aligned together when i output into my styledText.
I would like to thanks BoBear for the help !!!!

Similar Messages

  • Why is the font of text fields different from document-text

    I am using forms in my pdf.
    I am inserting Text-Fields in the pdf-form.
    I set the color and size of text as the same as the document text as calibri 9.
    1) Why is the font different between the text-field and document content eventhough both are black font of size 9 and of type calibri. The font in the text-field is more gray and blurry. It doesnt look the same as the text in the rest of the document.
    2) why do the document-text font options differ from the text-field font options.
    One has only sizes with even numbers like 8, 10, 12. The other has odd numbers also. Why does the calibri font have 2 different size ranges for the text-fields and document-text/content.

    Yes you are correct, it is with the setting of the properties.
    Where do i report this then if it is not with the SDK but the manual setting of properties.
    Also, how do i alter this ussue with the SDK, what are the commands, does it have to be done only by Javascript?

  • Header text is different from Sales order to dElivery

    Hi all,
    Can you please help me regarding this?
    I have created a delivery with different sold-to and ship-to.  And then, I entered the text manually.  But when created a delivery, different text appears.  How can this be?
    I have checked the determination, it seems behaving ok but why it has gotten a different text.  I have checked the sales text of the ship-to party, it has no text maintained.
    Please help.

    Hello Rumar
    I guess you entered the text manually in the sales order. The Ship-to may not be having any text, but the Sold-to may be and it may be coming from sold to.
    In transaction VOTXN, check the access sequence for the text type id and see which one takes precedence - one from customer master or from the order by checking the order of accesses.

  • Text format change from iWeb to browser

    Has anyone else had a problem with their text looking different (in both Safari and Firefox)? In one place, the font switches from 14 to 12. On another page, my indentations don't line up. Overall, I'm pleased with the software, but it is irritating that my website doesn't look as clean as it does in iWeb. Thanks.
    --Patrick

    Yes, and it can be much worse looking at a page from a Windows browser. I'm currently struggling with "white space" at the bottom of the text box on the blog page. The amount of space is very noticeable, especially if the background of your text box differs from the page background. In this case it has to do, I believe, with font settings, type, size, justification, and line spacing, even inserting pictures into the text box.
    Unfortunately, there isn't much that can be done. Every browser renders pages differently. It is rather appalling that the iWeb team can't even get their WYSIWYG to match what is seen in Safari, but what can you do? You can either keep things simple or design for a particular browser audience. Something like 85 perent of people use Internet Explorer for Windows, so I tend to think that's the best solution, if an unappealing one.

  • Adding field in standard SAP transaction output results.

    Hi,
    I have to add a new field in standard SAP transaction output results.
    Can any one tell me what are the ways (brief explanation) that I can do this?
    If using exists - then what kind of exists I have to use? And how to find out the possibility with user exists?
    Thanks for your time.
    Thanks.
    Chris.

    Hi,
        There are so many ways to find out the user exits.
    Hi,
    To see SAP Exits -> Use Tcode SMOD
    To See create a project for Customer Exits -> Use Tcode CMOD
    There are projects to which Exits are assigned. Selects the relevant projects.
    What is User Exit:
    http://www.sap-img.com/abap/what-is-user-exits.htm
    How to find then:
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    All Exits List:
    http://www.easymarketplace.de/userexit.php
    Do a search on SAP Exits, Customer Exits, enhancements, etc
    Step 1 :- Execute transaction
    step 2 :- Click on Status Menu
    step 3 :- Double click on the program (screen) __?????___
    Step 4 :- Search source code for the 'Customer-Function' string using the find button. Remember to select 'In main program'.
    Step 5 :- A list of search results should be displayed indicating where all function exits can be found.
    You can now double click on each of them to go to its position in the source code. This also
    allows for the insertion of breakpoints so that you can test if the exits are called in the
    appropriate place.
    Step 6 :-Once you have found the Function Exit within the source code (Find Function Exit) you need to
    access the actual function module it executes. This is done using the following steps:
    Step 6.1 :-
    Step 1
    Locate desired 'Call Customer-function' statement within source code.
    Step 2
    If code is not within main program (module pool) e.g. SAP* then you will need to find this
    out by selecting 'Main Program' from the 'GOTO' menu. The Main program for transaction
    Step 3
    The actual function module name can now be calculated based on the information retrieved,
    it is defined by the following format:
    EXIT_<Program name>_<Exit number>
    eg :- 'EXIT_SAPLMR1M_004'.
    Step 7.1:-
    Once you have found the Exit function module
    Step 1
    Execute transaction CMOD
    Step 2
    Select 'SAP Enhancements' from the 'Utilities' menu.
    Step 3
    Select 'All selections' from the 'Edit' menu.
    Step 4
    Now populate the Component name field with the exit function module and press
    the execute button.
    Step 5
    A list of all Exits(Enhancements) containing that function module should now be displayed.
    Step 5
    You can now double click on the desired exit to display a detailed description of its uses and a list of all
    components contained in it.
    Implementing Function Exit
    This is required in-order to activate Function exit:
    Step 1
    The first step is to enter source code into function module in the usual way i.e. via SE37.
    There will already be an include declaration within the code with the following
    format: Include zx*.
    Double click on this to create it, source code can then be entered within here.
    Although it is good practice to create another include with this to store your
    code, this allows separation of difference enhancements allowing them to be easlity
    removed without de-activating the enhancement.
    Step 2
    Execute transaction CMOD and create new Enhancement. Enter name and press the create
    Button.
    Step 3
    The following screen should be displayed, enter short text then click on the 'Enhancement
    Step 4
    Now enter the Exit name (enhancement) which contains the desired Function Exit.
    Step 5
    Return to initial screen of CMOD and press the activate icon. The exit is now ready for use.
    Please Mark The Helfull Answers & close the thread.
    regards
    dj
    reward for all useful answers.

  • How to Transport standard text in scpits from 1 client to other

    HI I am veerendra,
    Can you please tell me,
    How to Transport standard text in scpits from 1 client to other
    THanks,
    Veerendra

    Hi veerendara,
    1. a little tricky
    2. goto se09 and create a new
    customizing rqeuest.
    3. after that
    in the object list,
    go in edit mode
    and a new window will come
    where u can add the objects(in table control)
    4. there u put
    program id = R3TR
    object type = TEXT
    object name = TEXT,YHRS_FNF_LTR,YHR1,E
    where
    TEXT = TEXT
    YHRS_FNF_LTR = name of standard text
    YHR1 = TEXT ID
    E = english language
    regards,
    amit m.

  • Output and sales text maintainenance

    Hi Experts
    Please advise me on these chnage requests
    1. How to assign a sales dcounem type to a output type here the Docuemnt type Debit memo request
    a, How and where to assign  the default printer
    b.what changes need to assigned to a output procedure
    Please advise the whole process
    2. sales text has to printed in the quotaion output
    a. I know some changes have to be made in the Form ,besides this what all the functinal changes have tobe made
    b. Should we maintain the text in Material master sales text view , does this automatically take in  the Form print the Output
    c. what confirguration changes needs to be followed Pls advise
    3.For a consolidated invoice to  get we have the Spilt criteria in standard SAP , diffrent ship to Parties with the regionall code
    Pls advise me to get the consolidated Invoice
    Should we write a routine in the copying controls and write a new routine Please advise how to get consolidated invoices
    Thanks in advance for your patient replies

    Hi there,
    1. To assign a sales document type to a output type goto T-code V/43 and assign the necessary output procedure and output type.
    1. a)  Goto T-code NACE select your document type and goto condition record ( if already maintain it , then go in change mode) select the necessary combination of which you want or you maintain the record, filed out the necessary fields and click Tab : Communication" and in Output devices column provider your printer details * if you want immediately print do not forget to check the box "Print immediately".
    1. b)  Goto your output procedure and add your output type condition with necessary requirement field.
    2. a,b & c) Sales Text is printed from Material Master , if you maintain any text in Sales Text tab here, it will be printed on every sales document. For Qoutation also it will print from Material Master, but maintain proper copy control so that it can be populated in the preceding documents also. Ensure other necessary requirement to be maintain in Smart Forms. No other configuration required other then this.
    3. To get a consolidated invoice you need to have following creterias:
    i) Same Payer
    ii) Same Billing document type
    Also you can use the T-code VF21 for consolidating your invoices into one invoice list it is already there in Standard SAP
    Hope I met your requirement revert me back
    Regards
    Abdullah

  • Standard driver programs,output type ,scripts,smartforms for SD reports

    hi experts,
                  Can any one list all the standard driver programs,output types ,scripts,smartforms for SD reports.
    mani

    Hi,
    Check this out
    NACE
    You can track the form and the print program used for that form
    The Tcode NACE is used to link the Standard SAP forms (SCRIPTFORM or SMARTFORM) or the customized form or the new form to its respective print programs. Also the output types, Form entry are linked with their forms and print programs. In short term, i can tell u that configuration or customization of forms to print programs, assigning output types, form entry to the forms are done using this Tcode.
    NACE is used to create output type while creating the output type you will mention forms, and driver program.
    that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.
    so check in NAST, TNAPR table
    http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm
    Condition records in NACE?
    and
    NACE is used for message control customizing.
    Take a look at the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
    and also
    NACE is used for message control customizing.
    Take a look at the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
    If it helps reward with points..

  • RT PID toolkit does not match standard PID toolkit for arrays

    Why is the PID toolkit from the RT installer different than the standard PID toolkit?  Attached is a VI that demonstrates that the RT PID toolkit acts differently for array inputs than scalar inputs.  You must have the RT PID toolkit installed; the PID toolkit from the "Toolkit Software" disk doesn't have this issue.  Run this VI, then click the "Auto" button.  Note that the single output response is correct, but the array output response gets "stuck" on the lower bound of the output.  Try multiplying the P tuning parameter by 10 (change it to -0.04) and note that now both PID loops respond - but they start at different initial values!  Now, add an element to the boolean shift register, and wire the "Auto" input of the PID VIs to the new second element - both PID loops now respond identically.  Install the PID toolkit from the "Toolkit Software" CD and these issues vanish.  What's going on here?  Which version of the PID toolkit should I use in my RT applications?  This is all LV 8.2 from the November 2006 Developer Suite CDs.
    Attachments:
    PID test.vi ‏23 KB

    Hi Luke, and thanks for your help.  I'm doubtful that the two versions are identical, even without the aid of "Compare VIs" - I've attached screenshots of the upper left corners of the two versions.  However I might be missing something buried in the deeper levels.
    This affects my application in that I have a system that can run in several modes; in some of them the controller is turned on, in others it is turned off.  When I switch to a mode in which the controller is turned on, I want to initialize the output to a specific value that corresponds to that mode, and let the controller adjust from there.  This is why I'm using the shift register: to turn on the controller one loop cycle after setting the manual output value.  I'm open to other suggestions but this has worked fine for me for years with previous PID toolkit versions.  Similarly I've never had problems before with clipping at one end of the range, and I don't think it's caused by the difference in value between the setpoint and process variable, since it's affected by the lower bound of the output.
    The Readme for the LabVIEW PID Toolkit 8.2 suggests that many changes were made in the 8.2 PID toolkit, including calling a compiled C library for the array version, although I haven't seen anything that suggests this is the case in either version of the PID toolkit from the 8.2 CDs.
    Message Edited by nathand on 04-05-2007 08:43 AM
    Attachments:
    PID toolkit.GIF ‏16 KB
    PID RT.GIF ‏18 KB

  • Not able to save report output in a text file and RTF file

    I am using Oracle Developer6.0 . I am facing problem with reports. I am invoking reports from form using run_product.
    1. I could not able to save the report in text file . Whenever i try to save the report output in a text file.It gives dump and application get closed.
    2. In RTF format , it execute the query which i have given at the design time while creating a report . But while running i am passing query either through lexical parameter or passing value of where criteria user parameters. It display the output for the specified value. But when i save this report output in rtf file . It execute design time query and save that in a rtf file.
    If any body is having any idea about it . Please let me ASAP . It is very urgent for me.
    Thanks in advance

    Try the following:
    Do not generate the report to .rep file, but rename/copy the .rdf file to .rep file and execute it.

  • Standard Data Source for FMGLFLEXT Table

    Hello Friends,
    The standard data source for the Financials New Legder is 0FI_GL_10 General Ledger: Leading Ledger Balances, which fetches the data from the FAGLFLEXT Table using the Extract Structure FAGL_EXTSTRUCT_LEAD. However there has been a migration of the FAGL table to FMGL table. And now the FAGLFLEXT is no longer populated with any FI postings data. And the new table which is getting the update is the FMGLFLEXT Table. GL Migration from FAGL to FMGL is a standard procedure. However I am not finding any Standard Data Source to fetch the data from the FMGLFLEXT Table.
    Can anybody let me know if there is any standard datasource for this or should we create a custom data source to fetch the data from FMGLFLEXT using the FMGL_EXTSTRUCT_LEAD Extract Structure.
    Appreciate help in this regard.
    VB

    Hello Sasi and Kirun,
    Thanks for your reply,
    The requirement is resolved by the following:
    If you want to use your own totals table (in this scenario FMGLFLEXT) as your basis, you first have to create the corresponding extraction structure using transaction FAGLBW01. In this way, all fields of the totals table are transferred into the extraction structure. Further In the OLTP system, call up transaction FAGLBW03 and Configure the DataSource and save your settings.
    http://help.sap.com/saphelp_nw70/helpdata/en/be/928f40f5767d17e10000000a1550b0/frameset.htm
    Regards,
    VB

  • OPEN DATASET FOR OUTPUT IN LEGACY TEXT MODE not working!

    Hi All,
    I need your expertise to help me with my problem.
    The program passed through the code OPEN DATASET ... FOR OUTPUT IN LEGACY TEXT MODE. Then it gave an error message "Error Accessing File /home/sap/sample.txt".
    I would like to know what are the causes of this error. Please explain to me further why the program gives an error message specified above because I'm not familiar in OPEN DATASET.
    Please reply asap since the issue need to be resolved immediately.
    Thanks in advance,
    Carina

    Hi Carmey,
    The Problem will u need toi get Open Dataset Authorisation from ur Basis Team from the Specified Path.
    Regards,
    Morris Bond.
    Reward Points if Helpful.

  • Maintain output condition table for billing documents

    Hi
    I need to create new output condition table for billing document with the key combination of "Billing type and Export Indicator". In Field catalog: Messages for billing documents I am able to find field Export Indicator but the same field i am not able to find creation of new condition table (V/63).. Kindly let me know is there any settings required to show the same in V/63.
    Thnaks
    Srinivas

    Hi Ram
    The filed already is there in in structure" KOMKBV3" ....
    Thanks
    RAO

  • I created a book in iBooks Author using the Photo Book template. When I rotate to portrait orientation, the photo or widget disappears and a table of contents appears with only the interactive media showing.

    I created a book in iBooks Author using the Photo Book template. When I rotate to portrait orientation, the photo or widget disappears and a table of contents appears with only the interactive media showing.

    Thanx for the prompt response, KT. I have indeed seen that thread, only just after I posted the question.
    I have spent hours on the phone with what I now know is a call center in Texas on this question.
    I think Apple could be a little more "hands on" with iBooks Author users, and it should also be pointed out that landscape photos will not display in portrait mode.
    In my case, I used gallery widgets to display vertical photos, since they look better in portrait mode.
    But instead of simply rotating, the page disappears and a TOC of interactive media appears. The gallery behaves as expected when tapped. This is not what I expected, but since the gallery works, I can live with it.
    Right now I have "tickets" telling me to "fix" this "problem or to disable portrait mode.
    I don't want to disable portrait mode.
    Will Apple accept the books if I tell them this is not an "error?"

  • Convert Script output data to Text(.txt) file & send mail with attachment.

    Hi All,
    Requirement: I shulb be able to conver th Script output data to Text(.text) file & send a maill with attachment with this text file. Formant of text file should be like output of Print priview.
    Plese sugget with Function modules to cover as Text file.
    I am able to converting the Script output data to PDF and sending mail with attachment. So I don't want PDF file now.
    Thanks in advance.

    Hi, Thanks for responst.
    We can convert the Scirpt output to PDF file by using OTF function module and the PDF file looks like Print Privew output.
    Same like this I want Script out in NOTEPAD (.txt). Is that possible, Plz sugget with relavent Function Modules.
    Thanks.

Maybe you are looking for

  • Grep query - optional character, leading zeros & shortening words

    I have recently been taught (thanks to this forum) how to use Grep searches (wish I'd known about it years ago!). I still can't get my head around some of the search strings - hoping someone can shed some light & explain what the components are doing

  • Problems in Assigning PDF form in dunning procedure

    Hi Gurus, I have created a z adobe form for dunning letter and would like to assign it to the dunning procedure in Tcode F150. I have gone through the path on SPRO.. Financial Accounting (New)->Accounts receivable and payable->Business Transactions->

  • I cannot close firefox to install a program have tried all recommended steps

    I am trying to install a new program, and it says to close firefox. I finally found how to do so on the site, and when through the procedure. I searched exactly as directed for the file to delete, but my search keeps coming up empty. I've spent 28 ho

  • Flash 10.0.2 Air Setting Dialog Doesn't Appear

    I can't seem to get the Air Setting dialog window to appear (Flash 10.0.2 with Adobe AIR 1.5) . All I see if the SWF exporting window which runs and disappears. However, I tested this on another machine (mac) which is running Flash 10.0 and Adobe AIR

  • Strange message when opening iTunes

    When I start  my iTunes, I receive the message "The Registry settings used by the itunes drivers for importing and burning CDs and DVDs are missing. This can happen as a result of intalling other CD burning software.  Please reinstall iTunes. I have