Alert & long alertLabel Issue

Hi,
I can't get to correctly display a text within an Alert component. I tried the TitleWindow component too but it still doesn't solve my issue. If my alert string is long, the fitting isn't ok.
In this example, I set a static big height and it's "ok".
But if I let the component to draw itself, this is what I get :
I tried to override measure and updateDisplayList based on text dimensions but without luck.
Any advice ?
TIA.
Loic

For Flex 3 try this....
<?xml version="1.0" encoding="utf-8"?>
<mx:Application 
  xmlns:mx="http://www.adobe.com/2006/mxml" 
  creationComplete="onAppInit()"
  layout="horizontal"> 
  <mx:Script> 
   <![CDATA[ 
        import mx.core.IUITextField;
        import mx.controls.Alert;
        import mx.core.mx_internal;
        use namespace mx_internal;
        public function onAppInit():void
            showAlert();
        private function showAlert():void
            var myAlert:Alert = Alert.show("Mot de passe ou identifiant errone !", "Alert");
            myAlert.height = 160;
            myAlert.width = 340;
            callLater(function():void
                var textField:IUITextField =  IUITextField(myAlert.mx_internal::alertForm.mx_internal::textField);
                var textFormat:TextFormat = new TextFormat();
                textFormat.align = "center";
                textField.width = myAlert.width;
                textField.x = -10;
                textField.setTextFormat(textFormat);
   ]]>
  </mx:Script>
<mx:Style>
    Application {
         backgroundColor:#FFFFFF;
         backgroundGradientColors: #FFFFFF,#FCFDFF ;
    .myHeaderStyles {
        color:#FFFFFF;
        fontWeight: bold;
    Alert{
        color : #124332;
        background-color: #ffffff;
        header-colors : #d4d4d4, #d4d4d4;
        header-height:19;
        drop-shadow-enabled: true;
        drop-shadow-color :#243322;
        corner-radius :6;
        border-style :solid;
        border-thickness: 1;
        border-color : #243322;
        footer-colors : #243322, #ffffff;
        title-style-name : "title";
    </mx:Style>
</mx:Application>
Will create this...
HTH

Similar Messages

  • Windows 7 Boot fails on Mac Pro 1,1 (long-standing issue)

    i am having a long-standing problem on my first generation (1,1) mac pro where i have an installation of Windows 7 "under" boot camp. this installation involved some kind of minor mac hack that involved writing something to ISO and/or a CD Rom and then getting the installation onto my hard drive.
    right now i am not sure if i should get rid of my tech guy, buy the new mac pro as soon as it comes out, boot into safe mode, re-install windows 7 or all of the above. help please?
    lately if i try and Option Boot into this volume i get a Windows closed down incorrectly error and then i hit start windows normally it will crash out and restart the computer in mac OS (i.e. in another option boot volume).
    at one point the windows 7 boot was not working at all and we discovered that i had to TURN OFF my G-Tech 3 TB backup drive in order to get the Mac to boot into Windows.
    i am wondering if i should focus my energies by trying to boot into Safe Mode (and if so what to do if/when i get there) but also whether this appears to be an issue with the Mac Pro, the G-Tech external, Windows or some combination of all plus some user error thrown in for good measure.
    i absolutely need to have a volume of windows 7 running and this is a long-standing issue at this point.
    i am also running a Carbon Copy Cloner of this volume (the one that has all my OS's) on a daily basis to another internal hard drive (which i assume does not matter but i figure to mention it).
    any ideas on what to do??
    i am planning at some point to buy the next release of the Mac Pro so i can upgrade the desktop to Mountain Lion to match the laptop but it seems like i should be able to get this working on my end now...
    TIA
    P.S. I /am/ also noticing that my User Photo periodically drops off and i just see two blank icons (one for me and one for Guest) when i have to login. i set it to a photo and then a week or two or a boot or two later it will disappear.

    hi all,
    a report back after hacking my way through siberia over here:
    turns out there are bad sectors on my drive that some third party program discovered.
    the disk is on it's way back to WD with a replacement in the works.
    fortunately my internal cloned backup got me back up to speed with mac os but unfortunately i was not yet setup to clone my windows boot camp backup so i will be installing windows 7 boot camp one more time on this drive...

  • Edit the hyperlink in the alert email (Modify my alert settings, View Issue Tracking)

    is it possible to add the external hyperlink in these emails instead of the internal hyperlink? 
    in example when I get a list tracking email there are hyperlink that get sent out with these tags Modify my alert settings | View Issue Tracking | mobile view  that use the internal url //servername how can I change it to use the external
    address //internetname

    Hi Joe, check out the following links for solutions:
    http://sharepoint.stackexchange.com/questions/13216/how-to-create-custom-email-alert-template-in-sharepoint-2010
    https://social.technet.microsoft.com/forums/sharepoint/en-US/e5ebc5a7-8295-49e4-a817-c31066e1ac3d/customize-the-sharepoint-2010-email-alert
    http://www.alectang.com/blog/archive/2012/05/16/how-to-customise-sharepoint-alert-email-template.aspx
    cameron rautmann

  • Alert : long text not complete

    Hi all,
    I manage specific alerts in my BPM.
    I have defined it as "dynamic text" alerts in ALRTCATDEF.
    These alerts are well thrown by PI however I can see only the first caracter of the long text.
    My version is PI 7.0 SP8.
    Is it a known issue ?
    Thanks in advance,
    J.C.

    Hi JC,
    This may not be an issue at all...and just the way alerts are shown in the inbox.
    Just right click on the table cell where you see the first character of the text, right click and select "view source".
    You should be able to see the long text within the HTML source.
    Though not a solution but this can be used to test out the alert.
    Regards
    Gaurav
    PS: Please reward points for helpful answers.

  • Heating, Longer Startup issues after upgrading to Windows 8.1

    It has just been about 1.5 years I have purchased this laptop and the way it is behaving now is killing me.
    There was absolutely no problem while I was running Windows 8(which was my preloaded OS).
    But after I upgraded to Windows 8.1 I am facing numerous problems which I am stating below.
     Startup time has increased to double the time it took perviously( even after I disabled unnecessary startup entries ).
     Laptop is getting heated from the moment it is started, no matter what I do or I do nothing and keep it idle(which earlier happened only when I played any high graphics game)
     HP Support Assistant no longer works in Windows 8.1(I uninstalled and reinstalled it several times still no solution), so I am no longer able to get any technical support.
     Right click on Desktop takes ~10 seconds to open up the menu(Once again checked and found no unwanted third party context meny handler entry blocking the right click)
    Please help me out as soon as possible.
    Currently I am using Microsoft Windows 8.1 x64 Single OS
    Product Name-HP Pavilion G6-2236TX NB PC
    Product Number-D4B09PA

    Hey @cDeepanjan ,
    Here is what is happening with the error message 303. Hard Disk 1 Quick Test Failure-If your notebook is under warranty,  please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link to get the support number for your region. They will be happy to assist you immediately.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Alert while goods issue about old inventory

    Hi,
    We have a requirement where in our client wants an alert message about old inventory aged more than 120 days at the time of issuing the same item from WBSE of lesser aging within same plant.
    can anybody give some idea on this? Any help on this is appreciated.
    Thanks & Regards,

    Dear,
    Have you created the sort rule in ACU70 with LOBM_VFDAT?
    Have you assigned the sort rule in MBC1?
    Also check Implementation Guide for R/3 Customizing (IMG)-- Logistics u2013 General-- Batch Management--Batch Determination and Batch Check -->Batch Search Procedure Allocation and Check ActivationAllocate IM Search Procedure/Activate Check
    Assign for 261 mov type - YB0001.
    Same need to assign in OPL8 also please try and come back.
    Regards,
    R.Brahmankar

  • Custom Alert Email Templates Issue - List Alerts emails not using customized XML alert template

    I have recently customized the XML alerts template (AlertTemplates.xml) for our site collection in SharePoint 2010 to exclude specific fields in the email when users who have subscribed to a list using the "Alert Me" feature.  I
    have renamed the custom alerts XML file and loaded the custom template in the following directory (%ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\14\TEMPLATE\XML) and
    restarted IIS.  Once users subscribe to the alerts using the list using the "alert me" function they received the customized email as intended. 
    We needed to auto-subscribe users to the email alerts so what I did was used a powershell script to add users to the alert subscriptions using the script shown in below:
    Import-Csv D:\Temp\filename.csv | ForEach-Object{
    $webUrl=$_.WebUrl
    $listTitle=$_.List
    $alertTitle=$_.AlertTitle
    $subscribedUser=$_.SubscribedUser
    $alertType=$_.AlertType
    $deliveryChannel=$_.DeliveryChannel
    $eventType=$_.EventType
    $frequency=$_.Frequency
    $oldAlertID=$_.ID
    $web=Get-SPWeb $webUrl
    $testAlert = $web.Alerts | WHERE { $_.ID -eq $oldAlertID }
    IF ($testAlert) {
    $web.Alerts.Delete([GUID]$oldAlertID)
    Write-Host Old alert $oldAlertID deleted. -Foregroundcolor Cyan
    $list=$web.Lists.TryGetList($listTitle)
    $user = $web.EnsureUser($subscribedUser)
    $newAlert = $user.Alerts.Add()
    $newAlert.Title = $alertTitle
    $newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::$alertType
    $newAlert.List = $list
    $newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::$deliveryChannel
    $newAlert.EventType = [Microsoft.SharePoint.SPEventType]::$eventType
    $newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::$frequency
    if($frequency -ne "Immediate"){
    $AlertTime=$_.AlertTime
    $newAlert.AlertTime=$AlertTime
    $newAlert.Update()
    Write-Host Created $newAlert.Title for $subscribedUser . -Foregroundcolor Cyan
    } ELSE {
    Write-Host Alert $alertTitle for $subscribedUser already done. Moving on. -Foregroundcolor Magenta
    When I ran the script and added the users and restarted the service, all users who were auto-subscribed via this method would get the email without the customizations that were done in the custom template.  All users who manually subscribed to the list
    using the "Alert Me" function would get the customized email. 
    Does anyone know why users who manually subscribe would get the custom email alert and why users who were auto-subscribed using the powershell script do not get the custom email alert?

    Hi  ,
    According to your description, my understanding is that users who were auto-subscribed using the PowerShell script do not get the custom email alert.
    For your issue, it can be caused by the auto-subscribed alert email which is generated by PowerShell script is  using OOTB alert template. You can add the following script into your script for setting
    the alerts’ alert email template:
    $contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
    $AlertsTemplateCollection =new-object Microsoft.SharePoint.SPAlertTemplateCollection($contentService)
    $newAlert.AlertTemplate = $AlertsTemplateCollection["YOUR_UNIQUE_TEMPLATE_NAME_VALUE"]
    Reference:
    http://sadomovalex.blogspot.com/2012/03/one-problem-with-updating-alert.html
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Alerts Long text

    Hi
       I have configured alerts for a BPM Scenario. I have enabled the dynamic text . I am able to see the alert in the Alert inbox, But in the long text it shows only one character.
    I am working in XI 7.0 SP level 8. What could be the problem.
    With regards
    Varadharajan

    Hi
    835031 cannot solve the problem as this note is for 2004s SP1 and Vardharajan is on SP08 same as me and I am having the same problem. But still haven't got any solution.
    Let me know Vardharajan if you have solved this problem!
    -K

  • Alert Long Text

    Hi all!
    I have a problem when a BPM throws an alert with dynamic text from a control step:
    - If the control step have the next text: &var_container&
      The long text in the alert inbox is filled with the content of the var_container.
    - If the control step have the next text: Message with id &var_container& failed
      The long text in the alert inbox is empty...
    Thanks in advance,
    Roberto

    Message ID is not accessible inside a BPM and hence the problem.
    Why is not accessible -> Look at this really interesting thread.
    Re: Message id in BPM
    What is the solution - workaround from Michal
    /people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
    Regards
    Bhavesh

  • Alert long text not visible

    Hello,
    I have a problem triggering an alert with dynamic text out of a bpm. The alert is triggered correctly (I can't see any dump in tzhe log files), I can see the alert in my alert inbox, but the long text isn't filled. I'm using SAP Netweaver 2004s SP 9 (SAP Basis 7.00).
    Then I tried the same preocedure in a SAP Netweaver 2004 SP 15 (SAP Basis 6.40) with the same settings, and it worked fine. I can see the long message in the alert inbox. The only differnce was, that in 2004s the alert classification 'Webflow Alert' didn't exist, so I had to create it.
    Does anybody know, where the problem could be?
    Thanks,
    Thomas

    Hi,
    Just check that the length of the message is not more then the required limit. If thats the case it sometimes does not show the message.
    Else, just try re-activating that step again by making some dummy chnages.
    This problem happens at times when you are using dynamic variables .
    Regards
    Vijaya

  • Iw22 long text issue

    hi,
    I am facing a strange issue in long text creation and saving in iw22 that whenever i am changing the long text or adding any line with the existing long text it is showing the reported by field's id of iw22 in long text user id place.
    In spro there is a setting where from we can add an option to track the user id and time stamp of every one time change in long text in iw22 or iw21.so logically if i am changing the long text it should retrieve my id whereas it is retreiving the id which is mentioned in the reported by field in iw22.
    I debugged a lot through the program working behing it but left with no suitable explanation.
    Can anyone please help and let me know if any thing I should do extra to get the actual reason for this.
    Please help!!!.
    Thanx in advance.

    hi,
    I am facing a strange issue in long text creation and saving in iw22 that whenever i am changing the long text or adding any line with the existing long text it is showing the reported by field's id of iw22 in long text user id place.
    In spro there is a setting where from we can add an option to track the user id and time stamp of every one time change in long text in iw22 or iw21.so logically if i am changing the long text it should retrieve my id whereas it is retreiving the id which is mentioned in the reported by field in iw22.
    I debugged a lot through the program working behing it but left with no suitable explanation.
    Can anyone please help and let me know if any thing I should do extra to get the actual reason for this.
    Please help!!!.
    Thanx in advance.

  • Custom Long Print Issue

    Computer: Windows Vista Buisness
    Program: Photoshop CS6
    When trying to print a custom lenght (88" for example) photoshop crashes as soon as the print command is selected.  I have printed these in the past and had no issues.  Now for whatever reason, it crashes every time, even if I try to print a custom length with one word on it (in other words, its not a file size issue).  I have also noticed that the auto length in the printer settings is locked on 590" (inches).  In the past, this number would represent the actual length of my file instead of 590.  Does anyone have a solution to this problem?
    Troubleshooting:  I have tried printing in different file types, I have reset the preferences, and I've tried printing smaller size files with the same format.  Obviously none of these have worked.
    Thanks for your help on this matter.

    Also, I have no problem printing other standard file types to this printer.  This issue only happens when I try to print "Long prints".

  • Maintaining role detailed description(i.e long text) issue

    Dear Experts,
    Can anyone help me out with the issue which i'm facing while maintaining role detailed description(i.e long text) .
    In standard GRC approver screen, on click on any technical role it opens role details popup where we have one tab namely detailed description.
    Can any one let me know where to maintain that role detail description or from where (any table)it fetches the role detailed description?
    PFB the snapshot for reference.
    Thanks
    KH

    Hi Katrice,
    what SP are you on?
    This role detailed description is maintained at backend system (PFCG) during role creation.
    This information is later replicated to SAP GRC BRM (role detailed description as on your screen shoot) during role rep sync jobs.
    This data can be also maintained in SAP GRC (define stage) during role creation.
    If I remember correctly from SP14 this information once updated in BRM is later populated to ECC (both way sync).
    Hope this helps,
    Filip

  • Alert when goods Issue is created

    Hi All
    I have requirement, I have 2 users 'A' and 'B'
    When the user 'A' creates a Good Issue then User 'B' should get an alert next day morning.
    Can any one please let me know what is the query I can use to trigger an Alert.
    Regards
    Murali

    SELECT 'True' FROM OIGE T0 INNER JOIN OUSR T1 ON T0.UserSign = T1.userSign WHERE T1.U_NAME = 'A'
    Please note that alerts are only triggered when the SAP Business One client application is running + with some delay (theoretical minimum frequency is 1 minute).
    Depending on CPU-load etc 1 minute may not be equal to 60 seconds...
    Regards,
    Frank

  • Dreamweaver script running for a long time issue

    Hi there,
    having a recurring problem with the BC extension for Dreamweaver. Using Adobe Cloud CS6 and a mac. I get the following error message whenever the BC extension is open, and really the best way to get rid of it is to close the extension. I've googled the issue and there's a few things relating to other .js files, but I'd like to avoid having to reinstall CS6 if I can!
    Error msg:
    A script in file Macintosh HD:Applications:Adobe Dreamweaver CS6:Configuration:Shared:BC:JS:bc_sites.js has been running for a long time. Do you want to continue?

    Hi
    This might help: http://helpx.adobe.com/dreamweaver/kb/re-creating-dreamweaver-user-configuration.html
    Give it a try and let me know if you still experience the same issue. The article is a little old, so you'll have to adapt the links there to your current install (C:\Users\your username\AppData\Roaming\Adobe)
    Kind Regards,
    Alex

Maybe you are looking for

  • Help me choose a 865PE board

    Hi, I need some help in choosing the best(most feature packed, fast etc.) MSI 865PE motherboard. There are two boards that are pretty identical and trying to find the difference between them has been difficult. They are the Neo2-FIS2R and Neo2-PFISR.

  • How to save .html page in iBooks on iPad

    I'm on my works intranet site that holds all of our policies and procedures. The links to each specific policy open has .html and not a PDF ( which it does or at least did at one point on my partners ipad that was running an older software version).

  • Outlook 2007 sync with iPhone & iPad: All events on device one day behind !

    Dear all, I stumbled over this recently when I started with my brand new iPad. Date/Time/Region/Timezone settings on desktop computer (win7) and iPhone and iPad are identical. Sync with Google calendar and 3rd party products on iPhone / iPad / Outloo

  • Javac.exe shut down by windows2000

    now i am using windows2000. when i trying to compile the .java file with 'javac', windows2000 prompt me a message "java.exe has generated an error and will be closed down by windows. You need to restart the program. A log file has been created." The

  • ITunes Store says it's on two computers when it's not

    I had to re-install iTunes onto my computer after I lost it due to a virus. I put my account back onto it for the iTunes store and it says that it's now on two computers out of the five I could put it on. But, I only have iTunes on one computer. How