How do I ignore a rollover on text object?

The following code builds a custom button. It has a bug. The hand cursor becomes a mouse pointer and the rollout state is activated when I roll over the overlapping Label:
1. How can I ignore a rollover on the Label?.
2. How can I make the hand cursor  remain in place while I roll over any part of the HBox (including the Label)?
Thank you!
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()"   buttonMode="true"
    useHandCursor="true">
<mx:Script>
    <![CDATA[
import mx.events.FlexEvent;
[Bindable]        public var buttonTitle:String;
    public function init():void{
        hbox.width=textField1.width;
        hbox.height=40;
        fillDark()
        hbox.addEventListener(MouseEvent.MOUSE_OVER, handleRollOver)
        hbox.addEventListener(MouseEvent.MOUSE_OUT, handleRollOut)
    private function handleRollOver(e:MouseEvent):void{
        fillLight();
        textField1.styleName="sectionsButtonOver";
    private function handleRollOut(e:MouseEvent):void{
        fillDark();
        textField1.styleName="sectionsButton";
    private function fillDark():void{
        hbox.graphics.beginFill(0x2b2b2b)   
        hbox.graphics.drawRect(0,0,this.width-1,40)
        hbox.graphics.endFill()
        hbox.graphics.beginFill(0x414141)   
        hbox.graphics.drawRect(this.width-1,0,1,40)
        hbox.graphics.endFill()
    private function fillLight():void{
        hbox.graphics.beginFill(0x3f3f3f)   
        hbox.graphics.drawRect(0,0,this.width-1,40)
        hbox.graphics.endFill()
        hbox.graphics.beginFill(0x414141)   
        hbox.graphics.drawRect(this.width-1,0,1,40)
        hbox.graphics.endFill()
    ]]>
</mx:Script>
<mx:HBox id="hbox" buttonMode="true" useHandCursor="true" />
<mx:Label id="textField1" text="{buttonTitle}"  y="13" selectable="false"  buttonMode="true" useHandCursor="true"
     styleName="sectionsButton"  />
</mx:Canvas>

Thanks for your reply. I modified your suggestion and set the following properties on a Canvas that I used as a wrapper:
<mx:Canvas id="cover" width="100%"  height="100%"  mouseChildren="false" buttonMode="true" useHandCursor="true"  >
</mx:Canvas>

Similar Messages

  • How to drag the end of two text objects at the same time

    I have two seperate bits of text in a particular section of video. If I select the two text objects and drag the end left or right it only moves one. I I want to be able to drag the end of multiple things at the same time.
    I may be being dumb but cant find how to do it. Any solutions gratefully received.
    Best
    Tom B.

    Two stacked separate title clips or two text text boxes in a single clip?
    Russ

  • How to use an instance of a text object

    Hello All
    I have an animated open in which animated panel reveal video and text behind them, I need to add second text object to the animation that is going to be on top of the animated panel this text object I want it in the same place as the text to be revealed but I want to scale to make it look as if it was scaled (magnified) up as the panels move across the screen to reveal the video and text, but I want to use only one text object. In after effect I can accomplish this by precompossing the text then adding the comp text in a main comp and scaling the copy of the text comp but I only have to change one text layer. So what I want is to change edit one object in motion instead of duplicating the text layer and then editing two layers instead of one.
    Thanks for your help
    Juan O

    Hi all
    I found the the answer to my question, but thanks for your help anyways.
    here it is
    added a layer then
    added a text object (position size etc...)
    selected the layer
    went to objects menu and selected replicate (short cut letter " L ")
    I needed to scale the copy (replicate) of the text object
    so I scaled the replicator object inside the replicated layer
    I had to move it to compensate for the scale
    since I wanted to use it like a reflection across the panels
    I added a copy of the panels to the replicated layer (the copy of the original text layer)
    then added an image mask to the replicated layer
    turned off the panels inside the replicated layer
    selected the image mask
    from the layers tab I draged the turn off panels object and droped it in the small drop box with the title "image"
    in the image mask tab
    set the source channel to Luminance everything else at default
    and that is it
    Thanks again, and I hope this will be of help to others
    matzunaga

  • How to make a script for find text object?

    Hi everyone
    I want to make a script for find and select text object and then find next, find next, and so on, but without any open dialog
    Is that possible make a script for this?
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "(\[\x{2022}\])|(\x{25CF})";
    app.findGrep();
    thanks
    Regard

    You already have that. A script does not 'find, select, find next' - it finds all texts as soon as you execute the 'app.findGrep' command.

  • How to create a text object at runtime?

    Hi,
    I am using crystal reports for visual studio 2010 and using c# to programming.
    I need to create  a text object in a specific section like section 2. and also I need to control the text object's position and text.
    I tried to move a object like:
    reportDocument1.ReportDefinition.Sections[j].ReportObjects<i>.Left = 0x8760;
    but object's position doesn't change at all.
    How can I do these (create a text object and change a object postion)?
    Thanks

    Hi Don,
    Thank you.
    I have downloaded a RAS ( report application Server ) sample.
    The sample uses the Business Objects Enterprise XI release 2. I am using win 7 and crystal reports for vs2010. Can I use this version of crystal reports to create  a text object at runtime? If not, what is the lowest version I have to purchase to achieve what I want?
    Basicly I need following capabilities at runtime:
    1) craete text objects, line objects, image objects.
    2) change text object, line object and image object positions, sizes, values of text object. If can I like to be able to change font as well.
    3) supress objects, sections. 
    4) change section's height

  • How to find unassigned master data text objects in process chain in bi

    Hi
    Please let me know how to find the unassigned master data text objects in process chain.

    hi,
    actually if u want to find that , is ur Unassigned Infoobject in present in process chain or not, , that u can find out just by right
    click on your DTP (master data Txt datasource--> Master data text ), if this is present in Process chain, then on ryt click, the process chain option will be active. by clicking over that u can find the name in which this exists.
    thanks.

  • Accessibility on a text object

    Can someone tell me how accessibility works for the text object please?
    Does the screen reader ignore the object? Or does it read the text contained in the field? Or do you have to copy the text into the "custom text" field under the accessibility tab?

    Thanks Paul, but I am familar with adding accessibility text to an object. I just wanted to know how the screen reader works on a text object (not a text field object).
    Does it ignore the text object? Or does it read the text in the object? Or do I have to copy the text into the "custom text" section under the accessibility tab?
    I'm hoping for the first option since I have hundreds of fields on this particular form and to copy the text into the custom field is doubling the work, and worthless if the screen reader ignores it anyway.

  • Customer Master Text object extract

    Hi Guys,
              I am working migration of Customer master data from 3.1i systems to ECC 6.0 systems. So can you please help how i can extract and migrate the Text objects for the Customer master which is maintained in the tables STXH and STXL.
    Regards,
    Vinnie

    hi,
    Each text is maintained in Text id's, so you can ask your abaper to pick up the date from that text id and store it in a Ztable, then copy or import the same in ECC6.0 version and update at customer level.
    Regards,
    Sudhir

  • Can I embed fonts of all Dynamic Text objects in a Flash file?

    Hi there!
    I'm fairly new to Flash, so please bear with me.
    I have created a Flash file which will act as our company's standard presentation / portfolio of all previous projects.  I've pretty much got it running the way I want, but I've just tried it on a few different computers and realised that the fonts aren't embedded.  I've used our corporate font so it needs to look right.  Having read the following documentation (http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000893.html) I now understand how to embed fonts for one dynamic text object at a time.  However, I have a lot of different dynamic text objects in the file and I would dearly love to embed them all in one step!  The same embedding options can be applied to just about all objects, as they're all the same size and font.
    I hope someone can help me.  If you are able to help please spell things out in simple steps!!  I am aware that I probably haven't yet grasped a number of the basics of Flash.
    Thanks in advance,
    Stuart

    Static text doesn't need to be embeded. So I'm not sure what the problem you are having is. The page you linked to is for making an embedded font in your library that can then be exported for actionscript and used by code and style sheets. If you are following the instructions on the page you liked to you only need to do that once. Which shouldn't be too hard.
    That is usually a different problem that having a bunch of different authortime created textfields that need to have characters embedded.
    As far as I know your only hope to change a bunch of authortime/library items is using JSFL. So even if the thing I pointed to isn't exactly what you need you could keep googling a bit or use that as a template.
    JSFL files are just text files so open it in note pad. Look for the line:
    if(it[i].itemType == "movie clip")
    and change it to this:
    if(it[i].itemType == "movie clip" || it[i].itemType=="button")
    Now it does buttons. You give up too easy.

  • JTextPane, how to set only a part of text editable?

    How to set only a part of text in JTextPane editable? For example I want to forbid changing text after 'enter'. JTextPane has method setEditable but this works only for whole JTextPane.
    Plz help!!!

    I'm working on some application similar to unix console. It can't be done relatively simply with the provided components (for example two textfileds), but then it will not look like console :) .
    Now some technical problems:
    Anyway, use a DocumentListener and have it ignore any changes
    in areas you deem to be protected.I have no idea how to ignore changes using DocumentListener. Could you give more information abut this?
    I found "my own way". I create MyDefaultStyledDocument which extends DefaultStyledDocument. Then I overwrite two methods: insertString and remove. Using offsets values I manage to block everything before " > ", and I protect output from editing. But I still have a problem:
    This works fine (add "> " to JTextPane text):
                String s = console.getText();
                s = s+"> ";
                console.setText(s); but this doesn't work (for example replace last word):
                    String all = parent.getText();
                    all = all.substring(0,all.length() - cut);
                    all = all+text+" ";
                    parent.setText(all);where: parent = console = JTextPane
    Why?
    And one more question. Why when I typed "enter", Document remove all text and paste it again :/

  • How to add a hyperlink in the text caption?

    Hi,
    I am using Captivate 5. Anybody knows how to insert a hyperlink in a text caption? For example, the texts in the text caption are "See Adobe Captivate Forum for details." How to create a hyperlink for "Adobe Captivate Forum" which leads to the forum website?
    Thanks,
    Helen

    There is no tru hyperlink object in Captivate as such.
    You can use a button or a click box to provide users with an interactive object that when clicked will call a URL or document.
    However, this doesn't really give you a mouse rollover effect the way users are accustomed to seeing in normal web hyperlinks.
    If you really want to add a piece of on screen hyperlinked text (with rollover effect) to a Captivate project, the closest you'll come to it is this widget: http://www.infosemantics.com.au/hyperlink

  • Text wrap for a paragraph: How to define the width of a Text box /  active text area? I simply need a longish text to wrap within the frame!

    Hello, I've been searching for a good while in the forums now, but have found no solution or real mention of the problem – I hope some of you can help.
    I want to very simply layout a text between scenes, a slightly longer text that wraps within the frame margins. Here's an example of how I want it to look:
    Now, I couldn't for the life of me get the Custom Text to behave like that, as there are no parameters to set for the width of the text area. The Text Size, yes, along with the Tracking, Baseline and all that, but the width of the text box, no. The above was created by customizing one of the other Text Generator presets that happened to be left aligned.
    However, this preset has a fade in/fade out transition, which I do not want. There's no way to remove this transition as it seems integrated into the Text Generator (meaning they are not really presets, but separate kinds of Text objects? Very silly.)
    So I am asking you: Is there any way to get the Custom Text generator to behave like that? Just a text paragraph as above. Below you'll see all I can manage with the diffferent Custom Text parameters. Any kind of repositioning and resizing of the text just changes the position and size of the frame – but the actual text items are just cropped off where they extend out of that frame. Apparently the bounding box for the text is just some default length, and I can't find any way to adjust the width. See below my different attempts.
    The same text pasted into a Custom Text generator clearly extends outside the frame:
    Here Transform just moves – or resizes – the video frame that the Text Box exists inside:
    The Crop gives similar results, and of course Distort doesn't get me closer to what I need, either. There should be simply a Text Box Width parameter to set somewhere, but if it exists they have hidden it very well. How do you do it?
    Thanks for any help, this is a silly problem, but one of now many trivial problems that amount to me growing quite dissatisfied with FCPX. Hopefully I've just overlooked something.
    All the best,
    Thomas

    Thomas...same kind of crap here.
    I used Custom Text - entered a sentence, hit return, entered another.
    Set to 72 pt.
    The default alignment is centred - I want left aligned text...the text start point stays at the centre of frame and the sentence runs off the edge of the bounding box.
    There is no settings in the Text or Title inspector dialog to correct that!
    Using Transform will not sort it!

  • How do I set up a plain, text only document?

    I've been using TextEdit for all my word processing for the past several years. Now, I'd like to use iWork 09
    but for the life of me can't figure out how to do a PLAIN old text document. The margin markers won' move outside
    of the  1" pre-set border the blank page opens in default.  Text boxes show up even though I've selected "blank page".
    I just want to write a personal journal. I want to start at the upper right of the page and write until I'm done.
    Flowing from one page to the next automatically with approx. 1/2" side margins and maybe 1/2- 1" top and bottom. 
    Everything's so complicated now in comparison to the old Apple Works programs--from a number of  years ago.  
    I understand for those who use it for other things such a letters,  newsletters,  pamphlets, flyers, any number of
    business functions this is probably all very helpful and efficient, but for plain old unformatted text so far it's
    been a pain in the ___! 
    Why isn't a blank page BLANK?  When I open TextEdit  a new text page is blank with nothing preset.
    No text boxes to monkey with or try to get rid of. I can set margins anywhere I want-- no hassle.
    I can write until I want to stop. I don't need to figure out how to get it go on to a second page.
    I suppose I could just keep using TexEdit but I've had this program for a couple yrs. and up until today have
    only used "Numbers".  It would be nice to be able to use the word processing as well.  I expected Numbers
    to be a bit confusing to learn how to use it again for spread sheets but so far no problems there. 
    Word processing, especially simple word processing, on the other hand, I expected to be a snap and it
    has me very frustrated!  Go figure!
    Would someone please explain to me how to get a plain, blank, no text boxed, no pre-set margin, open-ended
    for  1 > infinity number of pages, completely unformatted word processing page(s) opened and ready to use?
    Also, can I  or  how can I make it a custom/user defined  "template" (?), or standard default set-up, so I don't
    have to mess with anything everytime I want this type of page?
    Thank you.

    Simple, keep using TextEdit.
    Pages is not a text editor which is what you are asking for. It is a Word Processor/DTP/Spreadsheet/Graphing application.
    Don't undersatnd why you are rushing to put all your eggs into one proprietry, single platform, unique format that Apple will ultimately abandon.
    If you want more than you are getting from TextEdit, try iText Express (free).
    Peter

  • How to add internal table fileds in Text module in smart forms

    Hi Friends,
        How to add internal table fileds in Text module in smart forms?
    Thanks & Regards,
    Vallamuthu.M

    Hi Vallamuthu ,
    how did you solve your problem?
    thanks,

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

Maybe you are looking for

  • Share Calendar but NOT Reminders

    I have an iCloud account where I coordinate my email, contact and calendar in order to sync between my iMac, iPhone and iPad. I also sync that calendar with my wife's MacBook and her iPhone. This all works, but one thing is annoying.  When I set a ca

  • HT204387 How to pair my iPad with my friends iPod 4th gen

    How to pair my iPad with my friends iPod 4th gen

  • Help in sub query

    Hi all, I have a problem in writing queries in order to get a value as a single row this is how my table as values site_no falg1 flag2 flag3 1 Y Y Y 1 Y N Y 2 Y N N I wrote 8 subqeries with eight different conditions and retrieved the site_no somethi

  • File HASH

    Hi, I'm not sure if I'm in the correct thread/category but here's my issue. I need to check the integrity of some .dll files in all of our Windows Servers and the checking is base on their specific hash keys. A sample of a file is linkinfo.dll I trie

  • How can I fix software that no longer opens after an upgrade?

    HI folks I really hope someone can help me.  I'm a teacher and use the activinspire software on my mac.  I upgraded to Yosemite in October and had no problems with the active software but when I updated that to its latest version it will no longer op