Changing SAPGUI Font programmatically

Hello,
   I require to control the font (Font name, font style, font size) programmatically in ABAP program. (I require this to control the font in the document overview in Enjoy transactions ME51n, ME21n etc. This on SAP R/3 4.7, basis version 6.20.)
   This can be done manually via the button in the application toolbar -> "Customizing of local Layout" and then choosing the option Font(I18N).
   I tried SAPGUI Scripting, but this button was not recognized by the hit test in the Script development tool.
   Kindly let me know if there is any Function Module or a Class or any other alternative way to achieve the same. Thank you very much.
Sachin C Anantha

Hello Abdul,
Could you kindly guide me with an example on how to achieve the font change programmatically. Maybe a link to a tutorial or help site would help. Thanks a lot in advance.
Sachin C Anantha

Similar Messages

  • How to change the font color in a strict type def programatically

    Could someone suggest a way to change the font color of a string indicator in a strict type def cluster programmatically? The cluster contains a label that is color-coded to match the function of the data channel represented by that cluster.  The function of each channel is not predetermined, so the font color needs to be changed programmatically.  To represent all channels, I have arranged a large cluster that contains 100 instances of the control.  This makes it essential that the control be strictly type defined in order to change the layout of the clusters uniformly.
    Can anyone suggest either a method by which I can let the control remain a strict type def and change the font color, or a method by which I can programmatically change the control from a strict type def to a type def?  Currently, I am saving the control as a strict type def every time I make a change and then saving it again as a type def when I am ready to run the program.  This works fine, but just seems inelegant.  This color-coding is used throughout the program in various indicators, so a neat solution would be greatly appreciated.

    As mentioned in my Nugget on Type definitions you can create strict type-defs that contain type-defs.
    If you make your data definition a type and put that definition in a strict type-def (one of each flavor) you can use the appropraite strict type where each is required.
    Yes the data structure will have another level of nesting so if you are "too far gone" you may not like this idea.
    Otherwise you can write a VI that opens the typed-def and do a "save as..." and use it everytime you edit the type-def.
    I hope something helps!
    Ben
    Message Edited by Ben on 10-06-2008 10:26 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Strict_of_Typedefs.PNG ‏30 KB

  • How to change label font

    i am in the final stages of making an iphone app in xcode. i am now working on changing the font of each of the labels in my app. i have gone to interface builder and selected each label. then, in the inspector, i changed the font to the one i wanted. however, the change doesn't show in either interface builder nor when i run it. the font i picked only shows when i double tap the label in interface builder and highlight all of the text.
    if anyone knows why this could be happening and how to fix it, i would be ever so greatful.
    thanks in advance!

    Try to change the label font style programmatically using the statement
    "myLabel.font = [UIFont fontWithName:@"Zapfino" size: 14.0];"
    may it works......

  • How can I change the font when creating an e-mail in Outlook's web-mail mode?

    I am new to Firefox. When I go to a web-mail server, I can click on sending a new message. While there, I cannot find any way to change the font, font size, or color of the text. All of these options were available in a toolbar at the top of the message window when I am using Internet Explorer 9 or IE8. I have looked through all of the help files provided by Firefox, and found nothing about changing fonts, etc.
    Thanks for trying to help

    Hi Jaime,
    Are you saying, you are getting junk characters in the email attachment? Then pls check the following. Since you want to send Japanese fonts, please pass language 'J' in both  objpack-obj_langu = '3' & doc_chng-obj_langu  = '3' instead of '3' please replace it with 'J'.
    Another thing which you may have to check is the SCOT device type. As I understand from my basis colleague, this may also affect your attachment fonts since the emails are sent through SCOT. Go to transaction SCOT-> Settings-> Device types for format conversion. Check whether wrong device type is defined for Japanese there. Hope this helps
    Regards,
    Gokul

  • Change the font color of a text field in a table by key-combination

    I want to change the font color of a text field in a table (single cell only) on pressing a key combination. Does anybody know how to do this.
    I have a lot of data in a table. During an evaluation of the data in a meeting I want to change the color of the text depending on the result of the meeting. (for example: High risk = CTRL+R makes the text red).
    I know how to change the color using a button, but I do not want to add a button after each cell. For this reason I would like to do it on a key combination that alway refers to the active cell.
    Many thanks for your help in advance.
    Marcel

    Hi,
    I don't think you can use the ctrl key like that as those shortcuts will be intercepted by Reader (ctrl-R toggles the ruler display on / off).  You also might have trouble updating the color while you still have focus on it.  You can use the shift key in a similar way, so if you only have lower case characters in the text fields then you can do something like;
    if (xfa.event.shift)
        switch (xfa.event.change)
            case "R":
                this.fontColor = "255,0,0";
                break;
            case "O":
                this.fontColor = "255,102,0";
                break;
            case "G":
                this.fontColor = "0,255,0";
                break;
        xfa.event.change = ""; // ignore character
    If you need uppercase characters maybe you can have one button to set "review mode" and test that on the if (xfa.event.shift) line.  But again it wont take effect until you have tabbed out of the field.
    Regards
    Bruce

  • How does one change the font size for folders and/or file lists in the Bookmarks Library?

    How does one change the font size for folders and/or file lists in the '''Bookmarks''' Library?
    Since the upgrade to version 9.0.1 of Firefox, the Bookmarks feature changes are confusing me. They seem to be confusing themselves as well. The list of bookmarks has changed. The font size is so small that my aging eyes cannot read it without fogging the screen with my breath. Some folders are out of alphabetical order (where I know they were previously good), and some are missing altogether (folders to which I frequently add references).
    As for missing or deranged files or folders, was there something that I should have done or now need to do to recover those after the upgrade (or before)?
    With regard to font size,
    1. there is no “Edit Bookmarks” or like option to edit the list in this version
    2. the “zoom” option in the “view” list of functions is greyed out when in “Show All Bookmarks” window
    3. expanding the browser window has no effect on font size
    4. “Preferences” settings for font size has no effect in that window either, including advanced settings
    5. “Help” offers none that I can find.
    Can any of you Help?!?

    Maybe this extension helps:
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • Unable to change default font in Themes

    I have been trying unsuccessfully to change the default font in a theme. When I change the font in one of the master slides and click the Format/Advanced menu item, the "Save as Default for Current Theme" is grayed out, as all all the other options in the Advanced menu. I've tried the same thing from a slide in the presentation [not a master slide] and the same thing occurs.
    Any ideas as to what is going on and how I can access this command? Otherwise I'll have to go through each and every master slide and make the change [and that might still not work]. Thanks for any help.
    Dan

    Look at this
    http://forums.adobe.com/thread/428185

  • In portal branding change the font colour of the popup dialog box

    hi all,
    I created  a theme of mine and changed the portal body colour to a dark shade. The porblem i am facing is..whn i click on the "Logout" button of the portal,it displays a popupbox saying "Are you sure you want to logg off?"...i want to change the font color to white as it is black in clour and not reaadable in the dark background colour.......can somebody help me in this ..
    Awaiting for your response..

    Hi.
    First solution is customizing logoffConfirmMsg.jsp (com.sap.portal.navigation.masthead.par) for your personal needs, but some coding is required.
    Second solution:
    1. adjust the color property of class .ctrlTxtStd in ctr_ie6.css and/or ctrl_nn7.css files from your theme:
    .ctrlTxtStd {
                color:#ffffff;
                font-family:Arial,Helvetica,sans-serif;
                font-size:0.7em;
                font-style:normal;
                font-weight:normal;
    2. If you edit css files directly on portal's file system, the restart of portal will be required.
    3.After portal or your theme updates repeat steps 1 and 2.

  • When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the test and change the font, it does not change it properly?

    When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the text and change the font, it does not change it properly? This is making it impossible to amend.

    Hi Janedance1,
    If the PDF that you converted already has searchable text, please try disabling OCR as described in this document: How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel. (If the PDF was created from a scanned document and doesn't already have searchable text, disabling OCR isn't a great option, as the text won't be searchable/editable in the converted Word doc.)
    Please let us know how it goes.
    Best,
    Sara

  • Illustrator CC Crashes when I try and change the font

    Help! I can not get Illustrator to work - I reinstalled my wacom driver and have troubleshooted with Wacom. This seems to be an issue with Illustrator.
    When I open a doc or create a new doc the minute I try and change the font it crashes.

    Read the signs for what they are: Your fonts are busted and you have a "bad" font somewhere in there. Remove al lextra fonts and add them back only as needed.
    Mylenium

  • Lightroom crashes every time I try to change the font color of my identity plate

    I use the LRB portfolio plugin to create my website. Every time I try to change the color of my identity plate, lightroom crashes immediately. I can change the font and size without the problem, only a color change causes the crash. I tried to trash the plugin, but it still behaved the same way. Can anyone help me with this problem?

    Hi Sean,
    thanks for answering. No, it crashes anyway. I tried changing the identity plate color in all different modules. I was able to change it once when I had just bought a new computer and installed Lightroom, but now I can't. I wonder if there are any cache files or anything causing this. Unfortunately I don't know enough about this to fix it myself. I wondered whether LRB is causing a problem simply by having it installed, but as I said, after I removed it from the Web Galleries folder, the problem still occurred. Is there any way to recreate the identity plate in Photoshop (same font and size etc.) and reimport it into Lightroom? I need to finish my website and my name is sol light, it is barely legible. Any fix or workaround would be appreciated.

  • How to change default fonts in windows 8.1?

    i tried make it by windows 7 way
    1. turn off ClearType
    [HKEY_CURRENT_USER\Control Panel\Desktop]
    "FontSmoothingType"=dword:00000001
    2.
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
    "Segoe UI (TrueType)"=""
    "Segoe UI Bold (TrueType)"=""
    "Segoe UI Italic (TrueType)"=""
    "Segoe UI Bold Italic (TrueType)"=""
    "Segoe UI Semibold (TrueType)"=""
    "Segoe UI Light (TrueType)"=""
    "Segoe UI Symbol (TrueType)"=""
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
    "Segoe UI"="Tahoma"
    default settings:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
    "Segoe UI (TrueType)"="segoeui.ttf"
    "Segoe UI Bold (TrueType)"="segoeuib.ttf"
    "Segoe UI Italic (TrueType)"="segoeuii.ttf"
    "Segoe UI Bold Italic (TrueType)"="segoeuiz.ttf"
    "Segoe UI Semibold (TrueType)"="seguisb.ttf"
    "Segoe UI Light (TrueType)"="segoeuil.ttf"
    "Segoe UI Symbol (TrueType)"="seguisym.ttf"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
    "Segoe UI"=-
    5. reboot
    Done, now all fonts in window without ClearType and used that we indicated.
    But in metro it's not work cuz some of elements is buged and changed to squares
    There are some programs like http://www.ilovefreesoftware.com/09/windows8/change-the-default-font-in-windows-8-windows-8-font-changer.html in internet. But how i see it's don't change all fonts.
    How to cahnge all fon'ts in windows 8.1 to Tahoma 8 for example?

    This is supposed to be a better program than Win 8.
    Did someone from Microsoft Marketing tell you that?  Maybe a fanboy?  :)
    In all seriousness it's not better in any obvious way than Win 8, nor is it really any better than Win 7.  It can be tweaked to be just about as good.  And to be fair, it's stable.
    I mean yes, we all expected Win 8.1 to be better than its predecessors
    - software releases are supposed to give you some value, some good reason to upgrade - but that kind of goes away when the software maker feels they have a captive audience as Microsoft does, and especially when they still have plenty of businesses
    buying Win 7, which pays their bills.
    But like it or not, removed choices or not, apparently Windows 8 is here to stay.  Joshua up above says "You fail", but have they really?  Once you're patching it up to make it usable they've already got your license fee, and your
    alternatives to running Windows are what, exactly?
    -Noel
    Detailed how-to in my eBooks:  
    Configure The Windows 7 "To Work" Options
    Configure The Windows 8 "To Work" Options

  • I can't get into the settings for fonts. How do I do that to change the font size?

    I had downloaded the latest updated version of Firefox and I ended up syncing it to my Android phone. I went into some kind of settings dialog and accidentally changed my font and text settings and now I can't read any of my Gmail that's in my account on my desktop computer-it's too small. I'm trying to figure out how I can get into the content settings (I have the print out of what I'm to do once I get into the 'options' on the content settings page, but I don't know how to bring up the content settings menu/page). I use my desktop PC for work purposes and I can't use it with the font and text settings the way they are now. I also read where questions are being answered, but no one knows how to find the answers to the questions people are asking. How do we get to the answers that people give us about the question we have asked?
    I hope you can help me ASAP so I can change what I need to ASAP. I work on my pc 24/7 for work and it's not helping me when I can't read emails and I can't fix the problem.
    Thanks!

    Hi!
    I followed the directions that were given to me in this forum. The only difference on my desktop PC computer after you click on the three lines at the top right of the screen after signing into your g-mail account, it will bring up the menu and you click on the 'Options' tab. I'm on G-mail and I'm running windows 7 Home Premium; there wasn't a preference tab and the percentage was already set at 100%. It takes you straight to the options menu. You then click on the 'Content' tab if it's not already open, change your font and font size to what you want, and then click OK. It reset those items for me and now I can read my emails. I noticed if you change the font type and size to something other than Times New Roman-size 16 (default font & size), you may have to change the size of font to a higher number (i.e. Arial-18 font size). You just have to adjust them for your preference if you want something other than Times New Roman-font size 16.
    Thanks for the help and info. It worked.
    Upset2

  • How can one edit a .gif file graphics background and change the fonts in Photoshop Elements 13?

    I am trying to change the color and fonts of some of my web sites .gif files. Can I change the color to another hexadecimal color and change the fonts of the letters in Photoshop 13? I am using Windows 7 and heard that you could save the .gif file to another format, edit it, then change the file back to a .gif file. Is this true? If so, how do you do it? The file just has a solid color with the letters "Firm " on it. No animation.

    You can edit a gif without changing the format, but once you save the file as a gif the text becomes part of the image, not text anymore, so you would need to clone or heal away the existing text and then create a new text layer and use save for web to create a new gif.
    For access to the most editing tools, while the file is open in the editor go to image>mode and change it from index color to RGB. Saving as a gif will change it back to index mode.

  • How can I change the font size on the post of WordPress?

    I have found three websites which address WordPress style sheets:
    Playing With Fonts: http://codex.wordpress.org/Playing_With_…
    Font Size and Color: http://en.support.wordpress.com/editors/…
    How to Change Font Size In Wordpress: http://www.ehow.com/how_5469172_change-f…
    Here are the instructions from the third website above:
    Things You'll Need:
    Site designed in Wordpress
    Administrator access
    Step 1
    First, to change the font size on a Wordpress site you need to log into the site as administrator. If you do not know how to reach the login page, simply add "/wp-login.php" after the "www.url.com" address. Then login using the admin sign in.
    Step 2
    Next, get to the Wordpress file editor by going to Appearance->Editor.
    Step 3
    Once in Editor, identify the Stylesheet file (style.css) and click to edit. This is usually located on the right hand side under the "Styles" heading.
    Step 4
    Once in the style.css file, you want to conduct a search for "fontsize". This parameter is used throughout the style.css file and is the parameter used to control font size. Next to "fontsize" you will see something like "16px". Simply increase or decrease the "16" to change font size. The tricky part is to figure out which "fontsize" you want to edit.
    The way to do this is to first look at the heading it is under. If it is under "comment-template", it is obviously related to either the font size of the comments themselves or perhaps the comment form or the date/time stamp of the comment.
    It may take a little trial and error to find the right "fontsize" to modify. Simply modify the one you think is correct and in a separate window, reload the page with the font you are looking to modify. If it did not change, undo the previous edit and try a different "fontsize".
    I went to the Dashboard and clicked on the “Appearance” icon on the left-hand side, and then clicked on editor. I clicked on Stylesheet (style.css), but I have not been able to find the “fontsize” that would change my post font size. As the author writes: "The tricky part is to figure out which "fontsize" you want to edit." Some of the font sizes are given as a percentage, and I don’t know if these come into question, i.e., if I should try changing one of these to see what happens.
    The end result is that I still have not been able to change my post font size, other than by using the Heading-1-through-6 option, which, I understand, is not the best way to do it.

    From John Waller: “If you're using IE8, hit F12 to launch Developer Tools which give you a point and click method of locating the relevant CSS rule on screen.”
    I have Internet Explorer 8 (IE8) so tried this method.
    This sounded like another promising possibility; however, I have not been able to change the font size in my post using this method.
    I have gone to Dashboard > Posts > Edit > then moused-over my post > clicked on "edit" and then hit F12. An enormous amount (20 pages or more) of CSS appears. I tried picking out the font size that I thought pertains to the post (under Text Area), and I have changed the font size from 13px to 24px; however, I have not been able to “save” the new setting. When I go back to it, it is back to 13px.
    As a result, I have not been able to use a trial-and-error method to establish which font size I must change in order to change the font size of my post.

Maybe you are looking for

  • IPhone 5 bad call voice quality

    Got the new iPhone 5 and have bad phone call quality. The recipient of the call seems to be able to hear me ok, but their voice either isn't there or drops out or sounds grainy like when you have bad cell reception. Many times, the calls have just no

  • How do i delete alias in icloud

    i have an aliase account on icloud that i want to delete how can i do it please help

  • Just to share experience: HDMI - DVI cable

    I got my DVD and XBOX occupying the only two component slots of my plasma TV already. There is a DVI slot (but no HDMI) so I thought I would try the HDMI -> DVI cable from ExtremeMac Apple has in its store. Turns out the screen quality is visibly muc

  • BPM Looping

    I Have a Synchronous BPM and for some reason it is LOOPING indefinitely. 1 )How should I find the Corresponding Work Item from SXMB_MONI? 2) How to stop the looping work item (I am executing the transaction /nSWWL  but unable to find the correspondin

  • Apopup keeps prevertig me to be redirect on a website

    Why is it that everytime i go to a web site a popup appears and saids that its redirecting do i allow it.this is getting very annoying!how do you stop this or farther more whats causing it?