Styling of text on character level
Hi,
I am looking for a control to edit text. The text should be styled on character level. E. g. only character on index 2 has a red background but the whole text field has a blue background.
Is there a control existing in javafx 2 to achieve this?
Regards
Oliver
Is it possible to switch off the controls and use the edit area only?Yes, there are ways to customize it:
https://gist.github.com/2514709 code sample
Re: Customizing HTMLEditor element "Thread: Customizing HTMLEditor element"
http://stackoverflow.com/questions/10075841/how-to-hide-the-controls-of-htmleditor (last section has info on hiding the toolbar - is done by code, but you might be able to achieve the same by a css stylesheet - which would be a better implementation - dgrieve's comment was "You can extract html-editor.css from jfxrt.jar to see what styles it uses.").
There is also a jira to provide an api to control HTMLEditor allow programmatic control of editing capability, but that hasn't been actioned yet.
Additionally you can use a WebView with contenteditable="true" see:
http://stackoverflow.com/questions/10685395/webview-with-contenteditable-cannot-be-focused-programmatically
Similar Messages
-
How to wrap text for column level field
Hi,
In iSourcing module. I have requirement for RFQ response page. I have to wrapt text of table level column.
Screen have total 6 columns. First column heading is Line. This column displays item description. Length of Item description in VO is 240 characters.
Presently entire 240 characters are displayed in one line only. Because of this user has to scroll towards the right to see remaining columns.
Requirement is to wrap this first column contents so that all columns will get visible without scrolling.
How do I set this wrap functionality on this column through Controller?
I tried by following ways, but no luck,
1. In processRequest method
OAFlowLayoutBean ls_line = (OAFlowLayoutBean)oatablebean.findChildRecursive("Line");
if(ls_line != null)
ls_line.setWrapEnabled(true);
In personalize options of “Line” field there is no option for “No Wrap” property.
How can I achieve this column wrap functionality?
Kindly help,
Thanks in advance.
MandarHi Ajay,
This Flow Layout contains following items,
1. DocLineNumber(messageStyleText)
2. ItemDescription(messageStyleText)
Requirement is to wrap ItemDescription.
So i tried following code, but still no luck,
OATableBean oatablebean = (OATableBean)oawebbean.findChildRecursive("BidItemPricesTableVO");
OAMessageStyledTextBean ls_item_description = (OAMessageStyledTextBean)oatablebean.findChildRecursive("ItemDescription");
if(ls_item_description != null)
ls_item_description.setWrapEnabled(true);
XML file name: ponResponsePG.xml
File Location: $APPL_TOP/pon/12.0.0/mds/response/creation/webui/ponResponsePG.xml
I am not able to post ponResponsePG.xml file here(Your message exceeds the maximum length of 30000 characters.
), can i have your email id? i will email this file to.
Thanks and Regards,
Mandar -
Hi,
I have obeserved the material PO text at item level " text tab" of the PO , from where this text comes to PO ? . I have checked the material master , but it is a different text to that of in PO item text tab . Did it enter by User .
Please advise.
Regards,
AmaraI hope you trust SAP, if so, then read Note 448814 - FAQ: Texts in purchasing
Among many many valuabe backgound you can find this:
In the info record (purchasing-organization data) you can set the "No MText" indicator. What effects does this indicator have?
Answer:
Setting this indicator has the following effects:
When creating a purchasing document: The copying of all texts from the material master is suppressed.
When printing a purchasing document: the purchase order text from the info record is printed instead of the text from the material master. -
Hover Text in Top Level Navigation
Hi,
I need to add a Hover Text for Top Level Navigation.I need to display some information text regarding the Role on moving mouse over it.
I did experimenting on download of com.sap.portal.navigation.toplevelnavigation but I am unaware where exactly Change to be made.
Any ideas??
Regards,
Raja Akella.HI Raja,
Check the Accessibility flag in the New User Registration form, if it is ON then it disables Hover feature for the portal.
Check the link esp the Header area part :
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ac/dc4f3eeb684212e10000000a11405a/frameset.htm">Understanding the Portal Desktop</a>
To know about Accessibility :
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/8d/b7bf3feb915f7be10000000a11405a/frameset.htm">Accessibility</a>
Hope it helps you.
Regards,
Vivekanandan -
Updation of higher level item text to lower level item text
Hi All,
while creating sales order VA01 i need to pass the value of higher level item text to lower level item text
for that i read the text of the higher level item text using the fm read_text
and pass the text to the lower level items using save_text and commit_text
this coding works only when the lower order item text is empty
my queries are
1. if the lower level item having some text that text will be replaced by the higher level item text, that is happening but showing error that I/O error , how to solve this
2. while gone to VA02 and add one more item then also same error is happening how to solve this please help me.
regards
krishnagot the solution
-
Copy higher level item texts to lower level items
Hi All ,
I want to copy the texts of the higher level items into lower level items
i created a logic how to copy the texts from higher level to lower level
but the problem is there are so many textid's in higher level items,
how to determine the all id's dynamically with out hard coding,
is there anytable exists to determine the text id's automatically depending on the salesorder and itemno
helpful answers will be rewarded fully
regards
krishnaHi,
You have to go as below:
With Sales Order Item, you get Item Category i.e VBAP-PSTYV.
With Item Category, go to table TVAP to detemine field TXTGR i.e Text Determination Procedure
Now check table TTXERN with fields TDOBJECT = VBBP - Denotes Sales Order Item
and TXTGR retreived from TVAP. Retreive the results of TDID which are the text id's associated for that sales order item.
So the relation is VBAP -> TVAP -> TTXERN.
Check and let me know if you have any problem.
Kind Regards
Eswar -
Confirmed Bug in Siri - Texting a character not found in 7-bit ASCII Table Causes SMS to Fail
I am 99.9% certain I have singlehandedly discovered and solved a bug in Siri that causes SMS messages to fail (without a failure notice, i.e. red exclamation mark). This problem confounded me for several weeks. (Note: This issue does not affect iMessages.) After four hours of support phone calls to AT&T and Apple, 2 replacement iPhones (set up as new iPhones, and not restoring the backup), a SIM card replacement, a reprovisioning of my entire account with AT&T, and a very upset girlfriend who was understandably skeptical that I was really texting her when I said I was, I had no solution in sight, and my SMS woes persisted. I ended up solving the problem on my own through trial and error.
THE PROBLEM:
When I dictate an SMS message, if I dictate the word "elipsis" it rightly interprets what I have said as "..."
However, as of today's date, Siri interprets "elipsis" an an extended ASCII version of "...", a version where the elipsis is actually one character and not three separate periods. The one character version of elipsis is not found in 7-bit ASCII.
If you try to text a character that is not 7-bit ASCII, your text message will not be received by the recipient, regardless of the recipient's carrier or phone, and you will not get a failure notice.
If you have any doubt whether Siri has interpreted "elipsis" as one character or as three, try deleting it. If the entire elipsis deletes simply by depressing delete one time, you have generated the single character (non 7-bit) elipsis, a character that cannot be texted, and which will "mysteriously" cause your text to fall into an abyss.
THE SOLUTION:
It seems that the permanent solution is that the Siri servers or the iOS needs to be reprogrammed only to respond with 7-bt ASCII characters when the user depresses the Siri button to dictate an SMS message. In the meantime, until Apple solves this probem, the user should refrain from dictating any punctuation that will cause Siri to respond with a non 7-bit ASCII character.
(Apple, I want a gift certificate for solving this problem.)Too bad Apple will never see this post since this is a user-to-user site.
http://www.apple.com/feedback/iphone.html -
[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,
AndrewHere 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 -
Long Text at Activity Level in CJ20N
Hi all,
So, I have a typical newbie question. But somehow Im unable to find an answer to this query even by searching.
I need to print the Long Text Tab at the Activity Level (not at Project/WBS/Network level) in CJ20N using the Read_Text Function Module.
Just need info on what's the ID, Object, Name etc.
pkDzed,
Thanks for that valuable tip. That was exactly what i was looking for.
But unfortunately, my internal table is not getting updated even though im able to input the right parameters to the Function Module.
Here's what I've done:
DATA: BEGIN OF ist_lines OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA: END OF ist_lines.
select mandt
aufpl
aplzl
ltxa1
vornr
objnr
projn
from afvc into corresponding fields of table ist_afvc
for all entries in ist_prps
where projn = ist_prps-pspnr.
loop at ist_afvc into wa_afvc.
concatenate wa_afvc-mandt wa_afvc-aufpl wa_afvc-aplzl into wa_afvc-con3.
modify ist_afvc from wa_afvc.
endloop.
break br_abap1.
loop at ist_afvc into wa_afvc.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
ID = 'AVOT'
LANGUAGE = 'E'
NAME = 'WA_AFVC-CON3'
OBJECT = 'AUFK'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
LINES = ist_lines
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endloop.
Im able to pass the right value for the variable 'WA_AFVC-CON3', but unfortunately the Internal table is not updated.
I know Im missing something here, but obviously Im too blind to notice that.
pk -
ExtendScript Illustrator - Change color of text one character at a time.
I'm trying to write code for ExtendScript ToolKit to target Illustrator. I've been writing in JavaScript, but am open to switching to AppleScript if needed. The goal of the code is to change the characters in a text box one by one to the color of the image behind that letter. The end goal is to have the color of the text create the image.
Basically, I select a character. And lets say that character is at 720x648 (in pixels) in a 24x36 in image. Then I detect the color in the image layer at that location. Then turn the selected character to that color.
I have encountered two problems, finding a way to have the script detect the color of the picture at a given location (ideally in pixels) and then change that one character to that color.
So far my code is this, with a color hard coded in for testing purposes since I haven't figured out the detection part yet.
if ( app.documents.length > 0 ) {
var doc = app.activeDocument;
//get text from textbox
var numChars = 0;
textArtRange = doc.textFrames[0].contents;
numChars += textArtRange.length;
//loop through to select characters one at a time
for (x=0; x<numChars; x++){
var selectChar=textArtRange.charAt(x)
doc.characterStyles.removeAll();
var charStyle=doc.characterStyles.add("NewOne");
var charAttr=charStyle.characterAttributes;
var detectedColor = new RGBColor(); //ideally the detected color would go here. But for now it is hard coded.
detectedColor.red = 242;
detectedColor.green = 51;
detectedColor.blue = 51;
charAttr.fillColor = detectedColor;
charStyle.applyTo(selectChar); // I got an error here: "Object expected".
}//end for loop
To detect the color, I tried using the following code, but it only works in Photoshop and even there I can't find a way to store that color the way I need to.
app.activeDocument.colorSamplers.removeAll();
var pixelLoc = [UnitValue(16) , UnitValue(16)];
var myColorSampler = app.activeDocument.colorSamplers.add(pixelLoc);
I have put in so many hours into this and just want to rip my hair out. Any help or guidance anyone can give would be SO appreciated! Thanks in advance!!!finding a way to have the script detect the color of the picture at a given location (ideally in pixels)
there's no native command to do this in illustrator,
I tried using the following code, but it only works in Photoshop.....
unless you get extremely lucky (working with matching Object names) photoshop code won't work in Illustrator.
a possible workaround, clip your text to your image, rasterize it, trace it, you might end up with a solid color per character, where you could read their color. -
JDeveloper 11.1.1.2.0 - Help text at field level
Hi,
We are making use of the Help.properties file to produce field level text. I have field's such as the following
<af:inputText value="#{bindings.DocumentName.inputValue}"
label="#{bindings.DocumentName.inputValue eq null ? '' : bindings.DocumentName.hints.label}"
required="#{bindings.DocumentName.hints.mandatory}"
columns="#{bindings.DocumentName.hints.displayWidth}"
maximumLength="#{bindings.DocumentName.hints.precision}"
shortDesc="#{bindings.DocumentName.hints.tooltip}"
id="it4"
autoSubmit="true"
helpTopicId="WORKFLOW_EDITPURCHASEORDER_DOCUMENTNAME"
readOnly="true"
rendered="true"Is there a elegant way to disable the help text? e.g. provide a form level radio button to enable/disable help text? The only way i can think at the moment would
be to set the helpTopidId to a key that doesnt exists using an EL expression.
RegardsHi,
I think what you suggest is the way to go in this case
Frank -
Flex Mobile textArea styling the text?
I've read in several documents about TLF not supported in Flex Mobile. I then read about text fields vs textArea and css Style sheets.
I'm trying to keep this really simple 1. cause I'm learning 2. So I can build on best practices 3. I'm still learning....
Example:
Main
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView"
creationComplete="creationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
[Bindable]
private var xmlInfo:XML;
import mx.rpc.events.ResultEvent;
protected function info_resultHandler(event:ResultEvent):void
xmlInfo = new XML(event.result.text);← I want to say this is where I need to tell Flex how to interprit the incoming text format.
protected function creationCompleteHandler(event:FlexEvent):void
infoXML.send();
]]>
</fx:Script>
<fx:Declarations>
<s:HTTPService id="infoXML" url="assets/data.xml"
resultFormat="e4x"
result="info_resultHandler(event)"/>
</fx:Declarations>
<s:TextArea id="spInfo" text="{xmlInfo}" width="100%"/>
</s:View>
data.xml
<?xml version="1.0" encoding="utf-8"?>
<info>
<text><![CDATA[<b>Bold</b>Not bold<font face="Arial">Arial text</font>Not Arial
]]>
</text>
</info>
Mobile app output
<b>Bold</b>Not bold<font face="Arial">Arial text</font>Not Arial
Thank you in advance.> How do you mean with the borders Murray? I've never had
any trouble that
> I'm
> aware of? Isn't it fairly common for textfields in forms
to have a box
> round
> them?
Some browsers (Safari comes to mind) won't do borders at all,
and others (I
don't recall which) can actually get surly when you try. I
don't recommend
that you try to style form elements to that level.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Iain71" <[email protected]> wrote in
message
news:f9up7e$9u1$[email protected]..
> Cheers - font-family - of course. Think it threw me when
I typed font :
> and got
> the drop down menu.
>
> How do you mean with the borders Murray? I've never had
any trouble that
> I'm
> aware of? Isn't it fairly common for textfields in forms
to have a box
> round
> them?
>
> Or is there a better method I could be using?
> -
Service Orders gets saved but text at item level are not saved for all item
Hi All,
We have configured service order scenario. The service order gets saved in GUI and in WebUI. But we are facing issue that not all the text entered at item level are getting saved.
Example if we maintained text for 4 line items and save the SO.
We open the saved SO, we get only 3 line items with proper text
one of the line item text is not getting saved.
The issue happens at both GUI and WebUI.
Any pointers to fix this issue?
Thanks and Regards,
Gauri.Hi,
You can try clearing the buffer using 'CRM_ORDER_INITIALISE' followed by CRM_ORDER_MAINTAIN" or TEXT_SAVE and TEXT_COMMIT, followed by BAPI_TRANSACTION_COMMIT with wait.
Prerna -
Smartforms - Change a text elements character Format
Hello,
I need to modify a Smartform by increasing the font size on some text elements. When I highlight the text element to change and then click the dropdown for Character Format I can click the format I would like but it never changes.
I've also tried resetting the character formats but it always gets back to it orginal size/settings.
How can I change the character format in a text element?
Thanks,
MattIt appears I have to delete the field then change the character format to the font I want and finally drop the field back into place on the screen.
If there is another way to do it, I never found it.
Switching to the classic editor may work as well. Worth trying.
Thanks,
Matt -
(CS4) How to change text in character format?
Hello scripters,
I need help for a problem with "FindChangeByList":
I want to change text with special elements (and more than one element),
for example: color:black AND italic AND subscript
(or elevated, capital, small caps)
and change it in a character format that i have defineted before
(lets call it for example "01-xyz").
As i understand it, i can make it with the "FindChangeByList-sript" and GREP
But what must stand here "?"
grep {find what:"?"} {change to:"?"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all double spaces and replace with single spaces.
Can anybody help me, please?
Yours OlienteSorry,
only now i get to try the element i got with the new script (at the end of the FindChangeList).
But i must have make a mistake:
text {findWhat:appliedFont:"Minion Pro", fontStyle:"Italic"} {changeTo:appliedFont:"Minion Pro", fontStyle:"Bold"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
It says
Fehler Nummer 25 (Mistake nr 25)
and than show me the line i have written.
It is the same with all elements.
Can someone help me?
Yours Oliente
Maybe you are looking for
-
How do I go back to an older version of Firefox?
It takes FOREVER to load a page!! I had NONE of these problems with the older version.
-
Dreamweaver template file (.dwt) updates related files but not file time stamp
I updated a bunch of dreamweaver template files, and allowed dreamweaver to update the affected files in the site. The file were all checked out, and they were updated. However, the timestamp of the files did not update. Now, when I synchronise with
-
Error Message Resetting Time Capsule
I have been trying to reset my time capsule and keep getting the following message after I do a factory reset. "an unexpected error occurred. Try again." I am using Mac OS X Lion 10.7.5 and airport utility version 6.3. I have tried a soft reset, a
-
OpenGL Ps CS5 died after CS6 beta
Using Ps CS5 12.04 on win7x64, 12GB, Radeon 6780 1GB, dual HDD and dual monitors since last Oct when I bought this new PC and its always been fine with openGL even with extensions added and dual monitors in workspace setup. Still worked same most of
-
No Alert sounds on my iPad2 although ringing and iPod music work?
No Alert sounds on my iPad2 although ringing tone and iPod music work?