Font color and font effects in sap scripts
Hi,
I want to change the color of font(usually it is black).I want in some other color other than black.
Thanks in advance,
Priya.
Hi Priya,
I know it's quite a long time that you started this discussion.
But if you still want to know the answer, please go through my blog on how to do color printing in SAP scripts.
White Paper on 'Color Printing in SAP Scripts'
Regards,
Sireesha Ch
Similar Messages
-
Can i know how can i change the color ,size and the style of the font in a text area?
and also how can i get the font style and font size currently use in the text area?No, a Font doesn't have a colour. But you can set the colour of the text in a text area with setColor().
-
I need a way to set the properties of a text box--color and
font of the text inside it--upon an event, wether it's in the
timeline or off a button release or even LoadMovie would work. Is
this possible?
woodburyHi Firstodd,
1. Try re-assigning the text after you set the format:
blackjack.onPress = function() {
var oldText=this._parent.field.text;
var myFormat = new TextFormat();
myFormat.font = "BlackJack";
this._parent.field.setTextFormat(myFormat);
this._parent.field.text=oldText;
I haven't played around with the AS3.0 enough yet but I know
that the
2.0 one applies changes to new text so you need to add "new"
text to the
field by recopying the existing text. Basically...rewrite the
text with
the new format.
2. Your formats are stored in the text field's format
property. You can
either keep a reference to the original format you created
('myFormat'
above), or use:
var myFormat=this._parent.field.getTextFormat();
The text format has a variety of properties you can read such
as font,
size, color, and so on. Have a look at the TextFormat class
reference in
the Flash help. Most of these are completely optional so you
can
set/read whatever you want.
About the text, you simply read or write to the field's text
property
like we did in example 1:
this._parent.field.text="This is new text";
var fieldText=this._parent.field.text;
If you want the user to be able to input text into the field,
make it an
input field:
this._parent.field.type='input';
Otherwise, it's just dynamic:
this._parent.field.type='dynamic';
Do you want it selectable?
this._parent.field.selectable=true;
If it's tall enough to support multiple lines, do you want
multiline
support?
this._parent.field.multiline=true;
Automatic line wrapping on lines?
this._parent.field.wordWrap=true;
You can get even lower-level if you want. You can monitor
what the user
types character by character (assuming this is AS2.0):
function onFieldChanged(fieldRef:TextField) {
trace ('Field now has text: '+fieldRef.text);
this._parent.field.onChanged=this.onFieldChanged;
A field can also cut off if you exceed the available area.
You can set
auto-sizing so that the field adjusts itself to what you
type:
this._parent.field.autoSize='left';
//Use 'center' to keep the text aligned to the center of the
field, and
'right' for right alignment.
Dimensions of the typed text, in pixels, can be obtained
through:
this._parent.field.textWidth;
and
this._parent.field.textHeight;
(You can get the dimensions of the field using _width and
_height but
this is the field size, including borders).
Speaking of borders:
this._parent.field.border=true;
And background...
this._parent.field.backgroundColor=0x00FF00; //green
backrgound
this._parent.field.background=true; //turn it on
I could go on for pages...have a look at the TextField class
to see
everything else you can grab.
The TextField class is the actual field...TextFormat is the
optional
format that's applied to the text.
Hope that helps,
patrick
Firstodd wrote:
> Actually, I did this to embed the fonts I wanted (they
are all non-standard):
>
> The buttons to pick the fonts are broken down, so
graphic and not text. Off
> the the side, out of the canvas, I made a text box for
each font I wanted, and
> put a letter in each, anything would work. I applied the
font to each of these
> letters/text boxes, and then on the properties, I
clicked the "Embed..."
> button, and ctrl-selected "uppercase" "lowercase"
"numerals" & "punctuation",
> for each font on each text box.
>
> Works great, the dynamic text that lets the user types
in changes fonts and
> colors correctly using the script you gave me, even on
computers that don't
> have those ornamental fonts installed.
>
> --
>
> However, I do have a couple questions that any advice
would be appreciated...
>
> 1. When the playing the .swf (which is just 1 frame
stopped), the buttons that
> change the font and color of the named dynamic box--they
have to be pressed
> twice the first time to apply it to the text. But after
it's been applied, and
> you change it, one click will do to get it back to that
color again. I can't
> figure out what would be causing this. My scripts are
all clones of this:
>
on (release) {
> blackjack.onPress = function() {
> var myFormat = new TextFormat();
> myFormat.font = "BlackJack";
> this._parent.field.setTextFormat(myFormat);
> };
> }
>
> changed accordingly for the color buttons.
>
> 2. My next step on this is to, upon the push of a
button, extract the
> information of the instanced text box. As you can see, I
named it "field". I
> don't know where to start with the script for these
kinds of things.
> Properties... I mean what the user has typed, it's
color, and it's font.
> Actually, this needs to go to some sort of check out
system, which I'm not
> familiar with at all, so I'm not expecting a walk
through setting it up, just
> some direction if you could =).
>
> Thanks again
>
> Woodbury
>
http://www.baynewmedia.com
Faster, easier, better...ActionScript development taken to
new heights.
Download the BNMAPI today. You'll wonder how you ever did
without it!
Available for ActionScript 2.0/3.0. -
Custom colors and fonts in in-context editor?
I have added some custom colors and font families in our partner portal > online editor settings for a client site. When editing a page or web app item in the Manage tab of the admin console, I can see these colors and fonts in the editor. However, when going to the Edit tab (in context editing), and clicking on a block with ice:editable='html' I only see the standard fonts and colors.
Does anyone know if this is a known issue? Or is there some workaround to get the custom colors and fonts into the in context editor?It's all type, and afew 3D shapes I created, but I noticed when they were printed out by the printer at work, everything was quite fuzzy. However this occured when I saw that 24 MB was way too much to e-mail through my works server. So at that point I decided to make everything into a .gif and place them into Indesign and PDF them, by doing that i completey reduced the quality and the size, so after it printed it was very pixailized on the edges, and the colors were a few tones off....
I guess I just want to have the best of both worlds a small pdf and good quality... -
TIA.
Q. Is it possible to change the CATEGORY TITLE font color and/or size of each tile group in start screen, when the tiles are sorted by CATEGORY?
A. No
Carey Frisch -
In SAP 4.6c In classical reports output how to change Font size and Font type
Dear Experts,
In SAP 4.6c, in classical and interactive reports output how to change font size and font type.
Regards,
Zaker.These are HTML formatting questions. Nothing to do with the Oracle SQL and PL/SQL languages.
With old-style HTML, the font size and family are set using the font tag.
With modern style HTML, that is done using cascading style sheets (CSS).
Your favourite search engine will turn up tons of information on both. -
JText Area( mixing colors and fonts)
Hi,
I`m trying to implement a JTextArea that allows the user to type away quite happilly in a default font and color, but if needed they can click a button, and then when they resume typing it will display the new text in a different font and color. Is this possible? If so, how?
At the moment when they click the button, all the previous text as well as the new text changes to the new font.
Basically I was wondering if it was possible for a JTextArea to display text of vaying fonts and colors.
Thanx in advance.Try using a textPane instead. Combine this with a RTFTextEditor and you can use every available font,color and other attributes on every part of your text. There are lots of examples about this subject (even some of mine as well) so just search the forum archive.
Hope this will get you in the right way...
Korque. -
PO for item of service Level short and long text using sap script
Please let me know how to do the PO for item of service Level short and long text using sap script.
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on May 5, 2009 10:25 AMHi ,
In the transaction related to PO select the path goto->header texts and then details of the texts like ID,objectname,language,name.Pass all theses details to 'READ_TEXT ' FM. Then you will get text lines described for a perticular Po ,similarly for item also.
Thanks,
Suma. -
What are all the components and attrubutes of the SAP script
hi
what are all the components and attrubutes of the SAP script
please reply
thanks in advanceHello Ashok,
The componest of the Script are:
HEADER,PAGES,WINDOWS;PAGE WINDOW;PARAGRAPH FORMAT AND CHARACTER FORMATS.
THE HEADER WILL HAVE THE ATTRIBUTES OF THE SAPSCRIPT LIKE
DESCp.PAKAGES Etc.
If useful reward points.
Regards,
Vasanth -
Selection properties panel - edit font type and font size
"selection properties" bottom panel - edit font type and font size
In design view
i can no longer find this option in CS5,
how can i change font type and font size of highlighted/selected block of text? like previous DW versions ?
by switching to CSS from html in "selection properties" bottom panel.
i see an option to do that using CSS. Is this the only option now ?
Thanks a lot for help.What happened if on some pages of my site, there are JS code inserted to display content pulled from other remote host.
Will my own page or site CSS font setting override the JS code font & size setting as well ?
or those JS code can display content using their font selection setting independently ?
>> Yes. In fact it not only does it for the page you're working on, but for the whole site (that's the advantage of CSS vs properties) -
Info on Font Mappings and Font Files
Where can I find information on the functionality provided by the XML Publisher Administrator screens under the tabs Font Mappings and Font Files?
I found note: 373377.1 on Metalink
-
This is regarding totals and sub totals in sap-scripts
Hi to all...............
1...How to print totals and subtotals in sap-scripts? where we have to code the logic.what sort of logic is needed to print the same?
regards,
swaminath.Hi
HI,
To calculate totals and sub totals in sap scripts you have to use subroutines.
Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
/: DEFINE &TOT_PRICE&
/: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name> /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
Then write the variable where ever you want it to be printed (mostly it will be in footer window)
Then create subroutine pool program and you have to write the code.
FORM F_GET_PRICE tables int_cond structure itcsy
outt_cond structure itcsy. data : value type kbert.
statics value1 type kbert.
Read int_cond table index 1.
value = int_cond-value.
value1 = value1 + value.
Read outt_cond table index 1.
outt_cond-value = value1.
Modify outt_cond index 1.
ENDFORM.
To know more, have a look at this thread ..
Re: SAP Script: Display Total calculated on page 2 in page 1
<b>Reward if usefull</b> -
What is the default font size and font number used in OBIEE piechar Legend
Hi Experts,
What is the default font size and font number used in OBIEE pie-chart Legend
Thanks
VThe default is font size 11, Tahoma.
-
Font and font color are getting changed for SAP R/3 report in portal
Hai,
We are using ITS 6.2 patch 26 and EP 6.0.
When i run a SAP R/3 4.6C report in ITS 6.2, the report content are shown in Courier New font with blue color.
When i run the same report from portal, the report content are shown in Arial font with blackish blue color.
Can anyone tell why in portal the font attributes are getting changed and how to have the same font attributes in portal also.
Regards,
H.K.Hayath Basha.Hi
Please go to System Administration -> Portal Display -> Themes.
You can change the font type , color and size from here and have to properly assign it to the Desktop for the users for which these font should be displayed .
Please check the following links :
http://help.sap.com/saphelp_nw04/helpdata/en/26/3df46c0584cd4eb31e91aa7bcf1893/frameset.htm
Edited by: purav mehta on Dec 16, 2007 6:01 PM -
Jspdynpage font color and legend
Ineed to change color of font in jspdynpage application.Any idea
2) when i click on the column heading it should show a popup showing legend for what it stands for?
Any help will be appreaciated,Hi,
To change the font color you need to either need to create a .css file for you application and within that u need to add the following lines :
.fontcolorchange {
font-family: Verdana, Geneva, sans-serif;
background-color:#80FF80;
border: 0px;
color: #000;
and then use this as follows :
<table>
<tr class ="fontcolorchage">
<td>and</td>
</tr>
</table>
or in the th jspDynpagen use the following tag :
<font color="colorName">text</font>
I think it will be helpful.
Please reward with points if helpful.
Thanks
Ritu
Message was edited by:
Ritushree Saha
Maybe you are looking for
-
How do I set up iTunes on a new PC so that my iphone will sync without losing all data?
I have migrated all of my music to the new PC, but when I plug the iphone in to sync, it tries to erase everything and set up the iPhone as a new phone on that PC. How can I make the move to a new PC without having to completely reset my iphone data?
-
Photoshop Album 3.0 Starter Edtion
I have loaded the above program from a cd which seemed to be ok.On trying to use it I get the following error message, Buffer over run detected Program n\3.0\apps\photoshop album starter edition.exe A buffer over run has been detected which has corru
-
Order status bumped back a month almost
I ordered an iPhone 6 in 16 and 64 gb both in space gray September 12 with a promised delivery date of the September 22. My order status came in and said October 7. The order status was then changed to October 3 and was just changed this evening to O
-
How to compress image size?
Hi, Is there any way to compress image size in iphone? Actually my application is uploding images to server from phone. It takes long time to upload the original image. So if I can compress or convert to thumbnail, it'll help me out. thanks
-
Automatic lot creation on fixed frequency
Hi All, Please suggest a way to do automatic lot creation for a particular material on a defined frequency. Can I use audit inspection to generate inspection lots automatically. I will be having an inspection plan assigned to this material. Scenario