Prevent Scrolling in TextArea NOT by limiting characters.

It would seem to me to be a standard part of any API, but it seems not (else I cannot find it using keywords).
I need the ability to create a TextArea entity in a constrained area (i.e., it is  located at x, and y and is w pixels wide and h pixels high and have that never change.), containing a proportional width font.  As such, no 'num char entry limit' strategy is feasible.  They need to be able to fill the entire area, and if that means 1,000 period '.' characters, or 200 '#' or "W' characters, then so be it.
In case someone reading this isn't following what I mean.   The two lines following this one consist of 30 periods followed by 30 Ws.
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
I cannot limit a user to 30 characters.  They need to be limited by using a TextArea that will let itself be filled until full, and then refuse further input until space is created by removing existing content.
I then need to print that TextArea _as rendered on the user's screen_.
Any 'scrolled' lines would be unprintable, and therefore the user's entry must be limited BEFORE any scrolling occurs, or contrariwise, when scrolling occurs, the last entered content would need to be removed and the entity forced to un-scroll.  I can program this.  It won't be elegant, and in fact will be quite stupid, as any programming where a change event is called with each keystroke or paste and then conditions tested is inefficient, wasteful, and well.. stupid.
Please tell me that there is a more elegant solution that I'm just too dense to find it in the API.  I would think this would be a very common no-brainer functionality to put in a component for people designing WYSIWYG interfaces.
Thanks muchly for any advice, help, solutions, even criticisms if justified
BTW.. I hate CS4's documentation.  Is there a way to restore it to appearing in the program itself and being available offline?  Is there any way to constrain it to NEVER EVER EVER look for answers outside of the context of the program I initiated the help request from?  I don't want to know that it found a similar keyword in Acrobat or Illustrator documentation.    It makes about as much sense as the damage they've done to the forums by changing the 'search this forum' to 'search forums'.  It makes far more sense to search within a narrowed context with the OPTION of expanding the context, than to return a thousand useless non-appropriate returns to then have to go and explicitly (and annoyingly and time-wastingly) narrow the context every time AFTER you had a load of useless garbage dumped in your lap to be first reviewed and then discarded.    Sorry.. I'm a grouch.   I still love you Adobe and love developing using your stuffies... you just don't make much sense to me sometimes....  Local docs with updates as part of the periodic Adobe Software Update.  Constrained context UNLESS I ask for an expanded search.  Every keyword linked to the associated doc... If the name of a class appears in documentation, link it to that class API, etc

Thank you, yes, that's part of my programming method.
I can either snoop the CHANGE event or the SCROLL event and evaluate that property, and from there enter a while loop that removes the last character entered and then sets the scroll position back to the top (and ignoring the SCROLL even that itself triggers), and then reevaluates to see if the condition has been rectified, and if not, then removes the next most recent character.  That's not efficient, and it's possible that events can trigger/handle out of order I believe.   It could also be a nightmare if a user pastes in the entire contents of War and Peace and it has to loop either a) as each character of the paste is entered, or b) after the paste is entered, removing one character at the entry point until the condition is rectified.  I'm not certain whether a) or b) is the truth for how pasted content is handled...   Either way, I don't think I can assume that if I remove one character and set the scroll position back to 1, that I'll necessarily remedy the condition w/o rechecking.
I'm still in the middle of working up a solution, but I think I have to do something like this (correct me if I'm wrong)....
Establish a variable to track the number of lines that can be entered before scrolling occurs....  Let's call it maxLines.
I cannot know what that value of maxLines is when the instance is created, so it is necessarily a non-useful value on initiation (0, or -1, or null... I'll go with 0).
The first time the SCROLL event is called, that variable value can be determined by textField.numLines minus 1 and assigned to maxLines
Thereafter, register a CHANGE event listener and each time a change is made, make certain that numLines does not exceed maxLines.  From this point forward, it would be foolish to keep tracking the SCROLL event, because each time my code corrects a scroll condition, it must visually scroll back to the top, itself generating a SCROLL event.
Either way, it's silly.  There's no reason that there could not be a policy available to disable scrolling entirely.   Cheers!

Similar Messages

  • Help - I need more than 1000 Notes of 4000 characters

    The 4000 character limitation of Notes and the limitation of 1000 Notes and the length of time it takes to load in Notes make using iPod notes very limiting. I've experimented with a few other options which I explain below, BUT MY QUESTION IS does anyone have any other suggestions on how to work around the 4000 character limitation?
    Here is what I have found to be alternative options:
    Split your notes into 4000 character blocks using the split command (open Terminal and type "man split" to read about the command)
    Install Linux on the iPod. This worked with my older iPod but there isn't a Linux for the newer iPod yet.
    Using Contacts "note"
    Summary: Uses a manually created Contacts file to store text of up to 243,185 characters in length. If creating files manually requires special formatting for linebreaks. Compatible with music playback and iTunes sync.
    Contacts are stored on the iPod according to the vCard standard. vCard stores contact entries in vcf files. A single vcf file can contain any number of vCard entries. The iPod firmware looks for the vcf files in the iPod Contacts folder. The Contacts folder can contain any number of vcf files and will load all of them into memory when viewing contacts.
    Contacts synchronized with iTunes are stored in the iSync.vcf file.
    You can paste your text content into an Address Book entry and sync it to the iPod via iTunes. There may be limits in the Address Book application regarding the amount of text it will allow.
    Using any text editor you can create your own vcf files and place them into the Contacts folder as well. Using the org and note attributes in the vCard entry in a vcf file you can create a contact that can display up to 243185 characters of text. A sample vcf file with a single vCard entry would look like this:
    begin:vcard
    version:3.0
    org:Sample Note
    note:You can use Contact notes to get around the 4k limitation of iPod notes. Doing so requires some changes in the syntax of the text however because the vCard format is fairly restrictive.\nFor one thing any line breaks must be converted to a backslash followed by lower case n.\nFor another many symbolic characters must be escaped by preceding them with a backslash.
    end:vcard
    The "org" attribute names the contact, and the "note" attribute contains the text, up to 243,185 characters of text. While a vCard entry can only have a single note attribute, you can have any number of vCard entries in a single vcf file.
    One requirement of this approach is that the text must be edited to a format compatible with the vCard standard. That means that all linebreaks in the text must be converted to a backslash "\" followed by "n", and any symbolic characters should be preceded with backslash.
    The negatives of this approach are that linebreaks must be altered and the notes are mixed in with your contacts. But to the positive they are still viewable while music is playing, and they are left alone by the iTunes synchronization process.
    This method does not interfere with listening to a song. This method is independent of synchronizing with iTunes.
    Using the Calendar "description"
    Summary: Uses a manually created Calendar file or Calendar entries in iCal to store text of up to 20,600 characters in length per calendar event. If creating files manually requires special formatting for linebreaks. Compatible with music playback. NOT compatible with iTunes sync if using a manually created file.
    The iPod supports the vCal standard for displaying calendar information. Version 1.0 of this standard uses vcs files; and version 2.0 of this standard uses ics files. Most calendar programs can export either vcs or ics files and there is plenty of information available online for how to convert data from a calendar application into one of these formats.
    The iPod firmware will display the contents of vcs and ics fles that are located in the iPod Calendars folder.
    Calendar events defined in the vCal standard have a description attribute. The iPod firmware displays the description attribute when displaying the calendar event. It is possible to create a calendar specifically for the purpose of storing text in description attributes. You could create a calendar in a calendar program such as iCal and sync it with the iPod via iTunes, or you could create your own calendar file manually. Unfortunately if you sync calendars using iTunes then iTunes will delete all files in the Calendars folder that it does not directly control, so maintaining any kind of external calendar file is not compatible with syncing calendars using iTunes.
    The iPod can read both vcs and ics calendar files, but for creating your own you should use vcs because vcs doesn't have a line length limit while ics does and requires special line-wrapping. The iPod will display only the first 20600 characters of the event description.
    A simple vcs file with a single fake event would look like this:
    BEGIN:VCALENDAR
    VERSION:1.0
    X-WR-CALNAME:Notes Calendar
    BEGIN:VEVENT
    DTSTART:20070201T220000Z
    DTEND:20070201T230000Z
    SUMMARY:Sample note
    DESCRIPTION;ENCODING=QUOTED-PRINTABLE:=0D=0ALine breaks need to be converted to an equal sign followed by 0D followed by another equals sign followed by 0A. There is no line length limit, so the text can be as long as you need. There may be a reasonable limit imposed by the iPod calendar interface due to scrolling.
    END:VEVENT
    END:VCALENDAR
    Each Calendar in the file is demarcated by the BEGIN:VCALENDAR and END:VCALENDAR statements. The VERSION statement when set to 1.0 indicates a vcs file (2.0 should be used in an ics file). The X-WR-CALNAME statement can be used to indicate a name for the calendar. If no calendar name is specified the iPod uses "Other".
    Each Calendar event is demarcated by the BEGIN:VEVENT and END:VEVENT statements. Each event requires start and end times (DTSTART and DTEND, respectively), a SUMMARY which is the event title, and the DESCRIPTION which is the text you wish to read. Linebreaks in the description text must be converted to "=0D=0A".
    The negatives of this approach are that linebreaks must be altered and the notes are attached to specific dates in the calendar so to find them you would need to navigate to those dates. Of course you could put all notes on the same date, or use different dates or even different calendars (within the same vcs file or not) to organize them.
    This method does not interfere with listening to a song. This method is NOT compatible with syncing Calendars with iTunes if you are using a manually created file.
    Using Music Lyrics
    Summary: Uses the Lyrics section of fake songs to store text of up to 10,000 characters in length per song. Does not require special formatting of text. Incompatible with music playback. Requires the text to be stored in iTunes.
    iTunes allows the lyrics of a song to be attached to the ID3 tags of the song and viewed on the iPod while the song is playing. Technically lyrics can be up to 256 MB in length, but the iPod will only display the first 10000 characters.
    Using lyrics allows notes to be sorted into playlists just as songs are which could be helpful for organizing them. To attach lyrics though there must be a song as well. It is possible to create a very small MP3 that can be used just to attach lyrics to. The process for doing so is described in forum message 2331260, but the short story is:
    - In the iTunes main library window, select a track you want to chop up, and select "Get info". The track cannot be a protected AAC track such as those purchased from the Apple Music Store.
    - Go to the "Options" tab. Set "Start Time" and "Stop Time", corresponding to the start and finish of the chunk of song you want to chop out. Click "OK".
    - Right-click on the track again in the main library window and select "Convert selection to XXX". (The XXX will be whatever file format you happen to have set in your iTunes Importing preferences at the time.)
    - After a little while, iTunes will spit out a second, smaller copy of the track, containing just the music between the Start and Stop times you set in the original track. Rename the new track as you please. You can then use iTunes to paste the lyrics to this song clip.
    The negatives of this approach are that it requires synchronization with iTunes, requires storage of the text on your computer as well as your iPod, requires the creation of fake songs in your Library, and cannot be used while a song is playing (unless the song you are listening to is the song that has the text you want to read in its lyrics).
    Advantages are that this method does not require any editing of the text regarding linebreaks, and this method allows playlists to be used to organize the notes.
    While all of these methods work, none of them are completely ideal. If Contacts could be stored in hierarchical folders then that method would be pretty good.
    Are there any other alternatives that people have found to work well to work around this iPod limitation of 1000 max notes of 4000 max characters?
    Regards,
    Brendan

    The iPod shuffle is a music player. The iPods with screens have always been more than that. If the iPod didn't have a calendar, contacts, and notes I wouldn't have considered buying one. Music playing is nice, but I certainly didn't want to carry around multiple devices needlessly. The iPod and a simple cell phone are enough. When the iPhone comes out maybe I'll be down to one device.
    As for the Palm, having been a Newton user at the time I was never impressed with anything about Palm except its size. The same people who bought cheap PC's instead of Macs bought cheap Palms instead of Newtons. Quantity rather than quality won out.
    Apple learned from that and made the iPod a good size to begin with, otherwise it might have suffered a similar fate.
    The only PDA capability the iPod lacks is the ability to edit its content independently of the computer. That would be handy, but it turns out hasn't been a critical need for me. More often than not I need to look something up not change something while away from my office. There is a good side to this though, if I lost the iPod I would not have to worry a bit about losing any Contacts, Calendar events, or Music. Notes though, well that is a different matter, those I backup.
    I guess one person's music player is another person's PDA.
    Regards

  • How to know in advance if next line will add scrolling a TextArea

    Hi All,
    I have multiple TextAreas in my application, which user can
    edit. I want cursor and focus to automatically shift to Next
    TextArea whenever current Textarea is full without any scrolling
    bar.
    Currently I am checking (maxScrollV>1) property of
    TextField to find if a TextArea is full or not. But this condition
    is true only after adding scrolling in TextArea.
    Is there any way to find if TextArea is full without adding
    any scrolling in current TextArea and shifting focus to next
    TextArea.
    Thanks in Advance..
    N

    Sorry, but there is no way to know in advance.
    Regards.

  • Prevent scrolling

    Hi,
    Our Web Dynpro program runs in an iView in the portal.
    In this program, we make use of an Object Value Selector (OVS), this is an F4 value help pattern in the Web Dynpro framework.
    The popup windows of the value help sometimes appear outside the window that is currently visbile. A scrollbar appears, the user is required to use the scrollbar in order to see the contents of the popup window. Had the OVS framework placed its windows more towards the centre of the view, this should not be necessary.
    Programatically, there is nothin I can do to prevent scrolling.
    Is there a portal or iView setting that can influence the way a (Java) Web Dynpro places its popup windows?
    Thanks in advance,
    Roelof

    Start adjusting your CSS and see what effect that has. I'm guessing you're claiming more real estate than you think and/or overriding your max.. Try body width of 300 as an example (all tags) and see if that helps.
    As well: http://www.quirksmode.org/mobile/viewports.html

  • Scrolling a TextArea just after updating htmlText property in AIR - need a workaround

    Hi,
    There's an annoying bug in AIR (or in the TextArea component itself but showing up only in AIR) because of which, if you do:
    my_textarea.htmlText=someLongText;
    my_textarea.textField.scrollV=someValue;
    the second instruction just does not work, and the textarea scrolls to the beginning (as a consequence of the first assignment).
    Has anyone else run into this and have you come up with any workaround?
    This only happens in AIR, not FP, and only with TextArea, not with a plain input text.

    Thank you for the suggestion.
    A delay (or waiting for the next frame) will certainly ensure that the scroll bar is updated, but unfortunately it's not an acceptable solution in my case because you'll see the scroll bar jump for an instant, no matter how short it will bee too much.
    (FYI, the fact that the text takes a bit to populate the text field is  not relevant since no matter how long it takes it is synchronous)
    I have a script that changes the htmlText while you type, in a way that is not visible at all because it just adds link tags around some words in the text (note that links are not underlined nor highlighted in any way by default). This implies reassigning the whole htmlText, which in turn means the scrollV property is reset. So, before i change the text, I store the current value of scrollV into a variable, and after changing the text, I reassign the original scrollV value. All this is done within a function, it is synchronous, so even if it happens while you type you don't notice it (if this was inefficient and slow, which it may be if the text is very long, you would notice that it hangs for an instant, but you'll never notice any movement in the scroll bar or the text as there is no way a frame can be redrawn during the operation).
    This trick works perfectly with a textfield without scrollbar. It also works with a TextArea in Flash Player, but it does not work in AIR with TextArea because the text automatically scrolls back to the beginning.
    With the delay trick, it would every once in a while jump to the beginning and back where it was which even though very quick would be very annoying since it would be happening all the time.
    I think I narrowed this down to a bug in the UIScrollBar component, which I guess is used inside TextArea. If you do the following with a UIScrollBar:
    - assign a text field as the scrollbar's target
    - empty the textfield (or make the text short enough so that its maxScrollV is 1
    Then the scrollbar automatically becomes disabled
    - now populate the text field with enough text to exceed its height
    - change its scrollV property to anything >1
    If you do all this in one method, the scroll bar automatically gets enabled again, but it forces the textfield to scroll back to the beginning while it shouldn't at all.
    At the end I solved this by giving up TextArea and using a TextField and a ScrollBar - NOT a UIScrollBar (which doesn't help since it suffers from basically the same problem) but a ScrollBar. ScrollBar doesn't have a target property and doesn't disable/reenable itself automatically, so I just never disable it (I simply make it invisible when i don't need it) and everything works fine.

  • Muse generated slideshow prevents scrolling on iphone, ipad

    Hi there, my site is working on android and windows phones but it seems slideshow muse creates prevents scrolling on iphone, ipad,  is there anyway to overcome this issue?
    www.araminta.fi

    Hi Brad,
    Thanks for your prompt reply.
    No I did not. I don't have iphone/ipad but after publishing I asked a friend of mine to check it on his iphone and he had complained that it wasn't scrolling, so I went to a shop where there is ipad mini and 2, and on both machines it didn't scroll, so that is interesting that you don't come a cross with the same issue, the images slides but since they cover up the screen ipads didn't allow it to scroll downwards.
    Oral

  • Tablet version - Slideshow prevents scrolling when touching the slideshow

    Hi There,
    On the tablet version of my site here: http://cmmconstruction.businesscatalyst.com
    When you get to the slideshows in the portfolio section of the site, they are preventing the user from being able to scroll up and down while touching the actual slideshow - swipe is enabled but I'd prefer to not use lightboxes for the tablet site.
    This scrolling bug is not an issue on the phone version which contains the same type of slideshow widget.
    Because of this the user must touch outside the slideshow in order to scroll and navigate the site on the tablet.
    Is there a way to allow swipe enabled slideshows while also letting you scroll the site?
    Thanks in advance!
    Dave

    I am having the same issue since the upgrade to 2014 this is something that needs to be fixed it is preventing my site from scrolling vertical over a slideshow in the layout??? This has to be a mistake...
    please advise asap

  • Dynamic Text Field is not displaying foreign characters... HELP!

    I have a dynamic text field that is not displaying foreign characters properly. They appear as boxes.
    Here's what I've tried.
    Under properties for the text field, I clicked on the embed characters button. In there, I pasted all the special characters I would need and clicked okay. Shouldn't this be enough for the text to display properly? What am I missing? Please help...

    More info: I'm noticing that in the actual dynamic text field in my .FLA file, if I type a foreign character like é, it pops up as a block. My family font is set to New Caledonia... is it possible that New Caledonia doesn't have those particular glyphs? The thing that doesn't make sense to me though is, last year when I made this card, it worked fine with New Caledonia... Any help is greatly appreciated!!

  • Mouse scroll wheel do not command Photoshop input fields correctly

    Hi guys,
    Some general info:
    1. I have Logitech Keyboard K800 - it have its own receiver
    2. I have Logitech Mouse (MX1100) - it have its own receiver
    3. Photoshop CS6 x64 - latest updates
    4. Windows 7 x64 - latest updates
    5. SetPoint - latest version
    6. More about the system (please let me know if I have to post all the text from Photoshop System Info popup):
    Adobe Photoshop Version: 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00) x64
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1
    System architecture: Intel CPU Family:6, Model:10, Stepping:7 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Physical processor count: 4
    Logical processor count: 8
    Processor speed: 3410 MHz
    Built-in memory: 16342 MB
    Free memory: 9098 MB
    Memory available to Photoshop: 14718 MB
    Memory used by Photoshop: 90 %
    Image tile size: 128K
    Image cache levels: 4
    OpenGL Drawing: Enabled.
    OpenGL Drawing Mode: Advanced
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: True.
    OpenGL Allow Old GPUs: Not Detected.
    Video Card Vendor: NVIDIA Corporation
    Video Card Renderer: GeForce GTX 560/PCIe/SSE2
    Display: 1
    Display Bounds:=  top: 0, left: 0, bottom: 1050, right: 1680
    Video Card Number: 1
    Video Card: NVIDIA GeForce GTX 560
    OpenCL Version:
    Driver Version: 9.18.13.1090
    Driver Date: 20121229000000.000000-000
    Video Card Driver: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
    Video Mode: 1680 x 1050 x 4294967296 colors
    Video Card Caption: NVIDIA GeForce GTX 560
    Video Card Memory: 1024 MB
    Video Rect Texture Size: 16384
    Serial number: 92298292820550253494
    Application folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\
    Temporary file path: C:\Users\kckfm\AppData\Local\Temp\
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
      F:\, 685.6G, 198.8G free
    Required Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Required\
    Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\
    Additional Plug-ins folder: not set
    Some other info:
    You  know that you can control Photoshop input fields http://screencast.com/t/ApVseKYRxz with the mouse scroll wheel. Pretty handy indeed. You just have to click on the field and spin the wheel and values changing.
    The problem:
    My mouse wheel cannot control the input fields in this way. I select the field, spin the wheel and nothing happen. When I spin it faster a couple of times, than the values get changing - pretty strange ha? Scrolling normally - do not change, scrolling fast change. But to scroll fast is not an option because I cannot change the values slightly with small increments... There is a bug really...
    What I tried and didn't work:
    1. Restarted Photoshop
    2. Plug/Unplug and change different USB slots for both receivers.
    3. Reintalling latest SetPoint Drivers (after uninstall I run ccleaner)
    4. Put all SetPoint settings to defaults (because I programmed some mouse keys to Photoshop specifically).
    5. Install earlier versions of SetPoint drivers.
    6. Set my UEFI BIOS to defaults.
    7. Restarted the BIOS to load all the drivers again, but still no luck
    (the last think I didn't do is to reinstall Photoshop)
    What I have investigated so far:
    1. When I restart the computer and run Photoshop it works perfect HA! , but after a seconds it do not words again ...
    2. When I stop SetPoint software, when I shut down it, it words perfect.
    3. When I unplug keyboard receiver it words perfect, but I do not have keyboard:)
    4. Everything works perfect in Illustrator and After effects.
    5. Also I noticed that when I scroll images in CameraRaw - http://screencast.com/t/xKnn6cY9 the I have to scroll harder and spin the wheel harder to scroll - the same problem.
    6. Also in photoshop and bridge scrolling here - is pretty smooth and works perfect - http://screencast.com/t/75IXMG6Zria
    Maybe the most important part - When I start experiencing the problem:
    I had same configuration , same everything and everything worked fine.
    I installed SSD disk, reinstalled Windows (same like before), updated my BIOS to UEFI. Installed Photoshop and SetPoint and problem started.
    Posted same request to Logitech, but want to ask you for help too.
    Thanks!

    Hi all,
    I found a solution.
    1. Uninstall your current Setpoint Driver.
    2. Run CCleaner - http://www.piriform.com/ccleaner
    3. Download an older version of SetPoint - http://www.oldapps.com/setpoint.php
    (I used SetPoint 6.15 (x64), I tried 6.20, 6.32, 6.50 , but no luck)
    4. Now everything is all right!
    Thanks!
    Can somebody mark this as solved? Thanks!
    SK

  • Not all chinese characters display correctly with non-embedded text

    Hi all,
      I've updated to the last beta 2 of Flash Player 10.1 (10,1,51,66) and compiled this simple Flex application to illustrate the fact that not all chinese characters can be displayed correctly with non-embedded text (device font).
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo"
                   minWidth="1024" minHeight="768"
                   creationComplete="resourceManager.localeChain = ['zh_CN'];"
                   layout="{new VerticalLayout()}">           
        <fx:Script>
            <![CDATA[
                import spark.layouts.VerticalLayout;
            ]]>
        </fx:Script>
        <s:Label text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝">
        </s:Label>
        <mx:Label text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝"/>       
    </s:Application>
      Notice that characters from the Unicode range 0x4F1E .. 0x4А2D are not displayed within <s:Label> component that uses Flash Text Engine (FTE) by default to display the text, but at the same time those characters display just fine within older <mx:Label> component that relies on flash.text.TextField instance to render the text.

        OK, did not know that "Arial Unicode MS" font is only distributed with Microsoft Office, was looking into relying on this font in case if "simsun.ttc" font is not available at the user's system, by using the following:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   minWidth="1024" minHeight="768"
                   creationComplete="resourceManager.localeChain = ['zh_CN']"
                   layout="{new VerticalLayout()}">               
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/halo";
            s|Label {
                fontFamily: "Arial Unicode MS, SimSun, Arial";            
        </fx:Style>   
        <fx:Script>
            <![CDATA[
                import spark.layouts.VerticalLayout;
            ]]>
        </fx:Script>
        <s:Label id="sparkLabel" text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝"/>   
    </s:Application>  
    Tough decision ahead, but accordingly to  the survey at codestyle.org (2000 participants from 2007 year and onwards), Arial Unicode MS is present at 62.53%% system surveyed.
    ps
       My current install of Windows XP already includes the install of Microsoft Office 2007 and I've also enabled/disabled the support of East Asian languages, thus the content of  my "fonts" folder differs now significantly from "clean" Windows XP install version.
    Nevertheless I found the page with comprehensive lists of standard fonts installed with different releases of Windows that looks viable here:  http://www.kayskreations.net/fonts/fonttb.html

  • Text to speech not working with characters such as quotes? Any ideas

    text to speech not working with characters such as quotes? Any ideas

    Hi linz-kirby
    I posted this (link) https://discussions.apple.com/message/27015600?ac_cid=op123456#27015600

  • Horizontal Scroll Bar does not show

    I have a method which creates a table with values and displays it in a dialog. However, the horizontal scroll bars do not appear, even though there is are columns that are not seen in the view. Here is my code:
         private void setTable()
              Object columns[] = headerLST.toArray(),
                        rows[][] = new Object[rowLST.size()][headerLST.size()];     
              for(int x = 0; x < rowLST.size(); x++)
                   java.util.List list1 = (java.util.List)rowLST.get(x);
                   for(int y = 0; y < list1.size(); y++)
                        rows[x][y] = (String)list1.get(y);     
              DefaultTableModel tValues = new DefaultTableModel(rows, columns);
    JTable tableA = new JTable(tValues);
         tableA.setRowHeight(27);
                   tableA.setRowSelectionAllowed(false);
                   tableA.setColumnSelectionAllowed(false);
                   tableA.setFont(new Font("Dialog", Font.BOLD, 12));
              int minColWidth = 120, maxColWidth = 200;
              for(int y = 0; y < tableA.getColumnCount(); y++)
                   TableColumn tbc = tableA.getColumnModel().getColumn(y);
                   tbc.setPreferredWidth(minColWidth);     
                   tbc.setMinWidth(minColWidth);
                   tbc.setMaxWidth(maxColWidth);
              scrollA = new JScrollPane(tableA);
              this.getContentPane().add(scrollA, BorderLayout.CENTER);
    Can someone tell me what I am missing?
    Thanks
    Augustine

    You need this
    tableA.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    otherwise it will always try and fit the table to the space available

  • Scroll bar does not retain its position after or before pack

    Hi
    My Scroll bar does not retain its position after pack in my application.
    But i need to retain its state.
    My code snippet is :
    System.out.println("VAlue--->" + getHXValue());
    scrollPane.getHorizontalScrollBar().setValue(getHXValue());
    pack();
    My VAlue printed is 100.
    But my positon of scroll bar is at 0 th location.
    Can any one help me.....

    Swing related questions should be posted in the Swing forum.
    My code snippet is :Snippets don't help.
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
    see http://homepage1.nifty.com/algafield/sscce.html,
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    Don't forget to use the "Code Formatting Tags",
    see http://forum.java.sun.com/help.jspa?sec=formatting,
    so the posted code retains its original formatting.

  • Scroll bar does not appear in some PDF files. How can I enable it?

    Scroll bar does not appear in some PDF files. How can I enable it?

    Scroll bars are supposed to appear when needed.
    For example, scroll bars will appear when you zoom in on a page.
    FAQ: How to zoom in/out on a page
    Windows 8 automatically hides scroll bars after a few seconds of inactivity.  Scroll bars will reappear when you touch the screen and move your finger (on a Touch-enabled device) or move your mouse.
    Additionally, page navigation depends on the view mode (Single Page vs. Continuous Page).
    In the Single Page mode, you can swipe left/right (horizontally) or click the left/right arrow button with your mouse to go to the previous/next page.
    In the Continuous Page mode, you can swipe or scroll up/down (vertically) to go to the previous/next page.

  • Scroll bar do not appear in mail

    Scroll bar do not show on my  Mac book air ??

    Do you know by any chance if I can revert to Mail 4.5 from Lion's version ?

Maybe you are looking for

  • Server Side Caching of pdf files

    Hi all, I've run into a rather odd problem that I can't find a way around. I've created some URL iViews to display some html files and some pdf files. I've adjusted the Load parameters for these iviews to the following: Allow Client-Side caching: Yes

  • Can someone provide HTML and CSS compatibility issues list in IE 12?

    Hi There, We recently come to know from our team members that Microsoft going to release Internet Explorer (IE) 12. But there are some compatibility issues with HTML and CSS which can break our web sites. Can someone provide us list of issues that we

  • How to turn iphone as a hotspot?

    Hi there! Does anyone here know how to turn your iPhone 4s as a hotspot for internet? It's like being a modem/router, then, other devices near it would be able to have internet access via wifi. Thank you for the response. Cheers, Jenssen

  • FM: To find condition types of PO

    Hi Is there any function module available which will give me condition types and values of purchase order by passing purchase order no?

  • Using JProbe with WL Commerce 3.5

    Has anybody successfully used WebLogic Commerce 3.5 with JProbe (current version)? I can get it to work ok with WLS 6.1, but it doesn't seem to like the startup file for WLCS. Any help would be appreciated. Thanks, Jason