Tabindex + highlight

Hi there.
I actually have two questions:
tabIndex is based on what? See this code
counter++;
var cre = _root.attachMovie("creditos", "creditos", counter);
counter++;
var sai = _root.attachMovie("sair", "sair", counter);
counter++;
var jog = _root.attachMovie("jogar", "jogar", counter);
jog.tabIndex=0
cre.tabIndex=1
sai.tabIndex=2
But it always start from "cre" button.
can I highlight a button? i want to start the swf with that button on the "over" state, so if the user presses enter it would trigger its click function. PS. I set the focusrect to false.
Thanks in advance

I have several input textfields that are TAB-enabled. The problem I'm having is that when TAB is pressed, it highlights the textfield with an obnoxious yellow/green border. Does anybody know how to get rid of this? My AS is below:
//enable tabbing
user_input.tabEnabled = true;
pword_input.tabEnabled = true;
pword_confirm.tabEnabled = true;
user_input.tabIndex = 1;
pword_input.tabIndex = 2;
pword_confirm.tabIndex = 3;
//disable rect
user_input._focusrect = false;
pword_input._focusrect = false;
pword_confirm._focusrect = false;
Thanks in advance for any help/hints you can give me
ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ ـــــــــــــــــــــــــــــــــــــــــــــــــــ
mtv50

Similar Messages

  • How to highlight a specific row in a datagridview

    I am building a form with a datagridview and a button to add items to the datagrid view.  I would like to highlight (and optionally center and not select) the row of the just added item to verify for the user what has changed.  I can't seem to
    get it working:
     $dataGridView1.datasource = [System.Collections.ArrayList]@($list)
     foreach ($Row in $dataGridView1.Rows) {
           if ($Row.Name -eq $newitem.name) {
               dataGridView1.Rows[$Row.Index].DefaultCellStyle.BackColor = Yellow
           } else {
               dataGridView1.Rows[$Row.Index].DefaultCellStyle.BackColor = white;
    gives me no change.  I suspect the problem is my attempt to reference properties of the Row (e.g. $Row.name), but I don't know.
    I would really love a little assistance if anyone is willing.
    Thanks.

    Hello cascomp,
    Currently, I agree with Justin. You can change the cell background color when you add a item.
    I tried to accomplish your goal by myself, here is the result. I hope it can give you some ideas about your problem.
    If you have any suggestions or ideas, please feel free to tell me.
    Best Regards,
    Greg Gu
    Code:
    #Generated Form Function
    function GenerateForm {
    # Code Generated By: SAPIEN Technologies PrimalForms (Community Edition) v1.0.10.0
    # Generated On: 12/23/2011 9:44 AM
    #region Import the Assemblies
    [reflection.assembly]::loadwithpartialname("System.Windows.Forms") | Out-Null
    [reflection.assembly]::loadwithpartialname("System.Drawing") | Out-Null
    #endregion
    #region Generated Form Objects
    $form1 = New-Object System.Windows.Forms.Form
    $textBox1 = New-Object System.Windows.Forms.TextBox
    $button1 = New-Object System.Windows.Forms.Button
    $dataGridView1 = New-Object System.Windows.Forms.DataGridView
    $InitialFormWindowState = New-Object System.Windows.Forms.FormWindowState
    #endregion Generated Form Objects
    #Generated Event Script Blocks
    #Provide Custom Code for events specified in PrimalForms.
    $button1_OnClick=
    $newData = $textBox1.Text
    $rowIndex = $dataGridView1.Rows.Add($newData)
    $dataGridView1.Rows.Item($rowIndex - 1).DefaultCellStyle.BackColor = "White"
    $dataGridView1.Rows.Item($rowIndex).DefaultCellStyle.BackColor = "LightGreen"
    $dataGridView1.FirstDisplayedScrollingRowIndex = $rowIndex
    $handler_textBox1_TextChanged=
    #TODO: Place custom script here
    $handler_form1_Load=
    $data = "blahblahblah"
    $dataGridView1.Columns.Add("ColumnA","Column A")
    $dataGridView1.Columns.Add("ColumnB","Column B")
    $dataGridView1.ReadOnly = $true
    $dataGridView1.MultiSelect = $false
    $dataGridView1.Rows.Add($data)
    $dataGridView1.Rows.Item(0).Selected = $false
    $OnLoadForm_StateCorrection=
    {#Correct the initial state of the form to prevent the .Net maximized form issue
    $form1.WindowState = $InitialFormWindowState
    #region Generated Form Code
    $System_Drawing_Size = New-Object System.Drawing.Size
    $System_Drawing_Size.Height = 262
    $System_Drawing_Size.Width = 284
    $form1.ClientSize = $System_Drawing_Size
    $form1.DataBindings.DefaultDataSourceUpdateMode = 0
    $form1.Name = "form1"
    $form1.Text = "Primal Form"
    $form1.add_Load($handler_form1_Load)
    $textBox1.DataBindings.DefaultDataSourceUpdateMode = 0
    $System_Drawing_Point = New-Object System.Drawing.Point
    $System_Drawing_Point.X = 13
    $System_Drawing_Point.Y = 198
    $textBox1.Location = $System_Drawing_Point
    $textBox1.Name = "textBox1"
    $System_Drawing_Size = New-Object System.Drawing.Size
    $System_Drawing_Size.Height = 20
    $System_Drawing_Size.Width = 259
    $textBox1.Size = $System_Drawing_Size
    $textBox1.TabIndex = 2
    $textBox1.add_TextChanged($handler_textBox1_TextChanged)
    $form1.Controls.Add($textBox1)
    $button1.DataBindings.DefaultDataSourceUpdateMode = 0
    $System_Drawing_Point = New-Object System.Drawing.Point
    $System_Drawing_Point.X = 13
    $System_Drawing_Point.Y = 227
    $button1.Location = $System_Drawing_Point
    $button1.Name = "button1"
    $System_Drawing_Size = New-Object System.Drawing.Size
    $System_Drawing_Size.Height = 23
    $System_Drawing_Size.Width = 259
    $button1.Size = $System_Drawing_Size
    $button1.TabIndex = 1
    $button1.Text = "Add"
    $button1.UseVisualStyleBackColor = $True
    $button1.add_Click($button1_OnClick)
    $form1.Controls.Add($button1)
    $dataGridView1.DataBindings.DefaultDataSourceUpdateMode = 0
    $System_Drawing_Point = New-Object System.Drawing.Point
    $System_Drawing_Point.X = 12
    $System_Drawing_Point.Y = 12
    $dataGridView1.Location = $System_Drawing_Point
    $dataGridView1.Name = "dataGridView1"
    $System_Drawing_Size = New-Object System.Drawing.Size
    $System_Drawing_Size.Height = 170
    $System_Drawing_Size.Width = 260
    $dataGridView1.Size = $System_Drawing_Size
    $dataGridView1.TabIndex = 0
    $form1.Controls.Add($dataGridView1)
    #endregion Generated Form Code
    #Save the initial state of the form
    $InitialFormWindowState = $form1.WindowState
    #Init the OnLoad event to correct the initial state of the form
    $form1.add_Load($OnLoadForm_StateCorrection)
    #Show the Form
    $form1.ShowDialog()| Out-Null
    } #End Function
    #Call the Function
    GenerateForm
    Test result:
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • TabIndex problems in custom components

    Hello, all!
    I don't quite understand tab navigation. I have two custom
    components: a link button and a text box. I need to be able, at the
    component level, to give the textBox.swc instances tab
    functionality (tab advances to the next one, shift-tab goes to the
    previous). The linkButtons are movieClips, so that they can be
    dynamically positioned. Is it possible to set focus on something
    like that? From what I've read it is. But, I can't seem to get it
    working using the same techniques I've used before for this
    component-level tabbing.
    Just setting their tabIndexes doesn't work. The textBox
    component has a textBox embedded in a movieClip, and that component
    is, in turn, embedded into another movieClip. I dont think that
    second movieClip is the problem. I think it's that we have a
    textBox (created using this.createTextField("_textbox",
    getNextHighestDepth(), 0, 0, textWidth, textHeight) that we then
    dynamically give a tab index from a parameter, but all that does is
    highlight all text when tab is pressed.
    Does tabIndex work on multiple layers? For example, can I do
    it per movieClip? If so...that would be my problem.
    Thank you for the help!
    JA

    I've found my problem. My custom components have to implement the interface NamingContainer.

  • TabBar Highlighting

    Hello ADF Gurus,
    I'm using JDev 10.1.2 with ADF.I'm trying to render a page with different Tabs like Home,Search,Profiles etc., I'm having a template header file (x1.uit) which renders the tabs and i have built a x2.uix file
    which uses x1.uit to render the tabs. When i run the x2.uix it renders the page with default highlighting of Home tab which is the first one among the list of tabs.But when i try to click on other tabs
    like Search,Profiles the other tabs are not getting highlighted.
    Now pls.suggest me how do i make other tabs also get highlighted when i click on them.Do i have to control it programatically or i have to set some property.
    My data is static for tabs but they render different .uix files when clicked. I tried Ctrl+C and Ctrl+V from one the forum answers but it didn't work out. The following code snippet i used in .uix file atleast to check out whether it works or not as follows:
    <provider><data name="tabData">
    <inline>
    <tabInfo text="Home" url="HomePG.uix" tabIndex="0"/>
    <tabInfo text="Search" url="SearchPG.uix" tabIndex="1"/>
    </inline>
    </data>
    </provider>
    <tabs>
    <tabBar selectedIndex="${ui:defaulting(uix.pageProp.tab, '0')}">
    <contents childData="${uix.data.tabData.tabInfo}">
    <link text="${uix.current.text}">
    <boundAttribute name="destination">
    <ctrl:pageURL name="${uix.current.url}">
    <ctrl:properties>
    <ctrl:property key="tab" value="${uix.current.tabIndex}"/>
    </ctrl:properties>
    </ctrl:pageURL>
    </boundAttribute>
    </link>
    </contents>
    </tabBar>
    </tabs>
    When i run this page, it open the page with Home tab getting highlighted. When i try to click on next link "Search" it gives me "Page Not Found Error". Can anybody suggest me the following:
    1)What i'm missing out here in the code?
    2)I can put <provider> code in .uix file but i have the tabs rendered in .uit (template) file.How do i get this fix done in template file.
    If anybody can suggest the answer for my queries that would be great. Thanks in advance.
    Regards
    Arvind

    In Pages v5.2.2, taking Baskerville Regular 12 pt, and double-spacing it with character fill color does produce a nasty effect. With View > Show Rulers, I looked where the lines of text lined up on the vertical scale.
    Then I changed the Spacing selector from Lines to Between. Now, just the text had the character fill color, but the line height had increased visually downward. With the between setting, line height is changed to points, and indicates 27 pt. If you adjust this value to 16 pt, the second line of double-spacing will realign with where it was before the between change, while retaining discrete line character fill color.
    Before: Spacing set to Lines, and 2.0 - Double.
    After: Spacing set to Between, and 16 pt

  • Highlighting Text & Auto Text Options

    I've recently migrated from MS Word to Pages, and I'm determined to make this new relationship work. In Word I used its highlighting text (as with a real highlighter--yellow, pink, etc.) feature, as well as its Auto Text feature, in which I had a number of prescribed, hyperlinked comments. (I'm a teacher, and I would auto text things like, "comma error," which would then be linked to a web page about comma errors.
    Can anyone help me discover ways to do both of these in Pages? Also, is there anything for Pages like MS Word's macros?
    Thanks in advance,
    Brad Carpenter

    Welcome to the forums, Brad.
    There is no direct analogue in Pages to Word's highlighting feature. However, you can use the Comments feature to add specific comments to a specific piece of text (with the advantage that the comments can be easily hidden, since you are not changing the characteristics of the actual text). Simply select a bit of text and click the Comment icon in the toolbar, or from the Insert menu select "Comment". The selected text will highlight in document, and a comments box will appear to the left of the page, in which you can type whatever you want. In the comments box you can select whatever text you want and make it a hyperlink, by going to the Hyperlink Inspector. Unfortunately, there is not an easy way to automate the creation of a hyperlink, at least as far as I know.
    There are plenty of third-party applications that will let you store and add snippets of text easily to any Mac document, including Pages. These include TypeIt4Me, Butler, and even Quicksilver, which has a fanatical following and may be more than you need for this kind of task. I'm sure others here might be able to suggest other apps.
    One caution, however: If you intend to be sharing documents with others, they must be using Pages themselves to take advantage of these features. Unless your students are also using Pages, these workarounds won't really help.

  • How can I stop shared files in iBooks being highlighted by different family members?

    I Have family sharing set up which is great for sharing apps and music however I have a problem with iBooks. My wife and I both use ePub files which a re study material. The great thing about these is that we can highlight and add notes to files.
    THe problem is that our individual highlights and notes are shared with each other. So I get my wife's highlights and notes on top of mine.
    We ha ve tried clearing all ePub files from my wife's ipad, and only syncing them to mine. She then downloads her own copy of the ePub file. So one has the original which is on our iMac and one has another copy. This makes no difference as iTunes recognises them as the same file.
    We'd be happy to switch off family sharing for iBooks to prevent this but that doesn't seem possible. It's all or nothing. I can't turn off family sharing completely as my wife will lose access to our shared music library.
    Does oes anyone have any suggestions? Basically, we want to share music and apps through family sharing but have a separate collection of books even though those books might be ide bridal before we annotate them.

    Have you tried going into the Preferences on iBooks on your Mac and unchecking the option for syncing across devices?

  • In previous versions of i Tunes you could highlight a song in your library and there would be a genious list on the right side of the screen showing songs like the one highlighted in the library. Now I do not get that list. Is there a way to get this back

    In previous versions of i Tunes I could highlight a song in my library and a genious list would show on the right side of the screen listing songs that were like the one highlighted. Now I do not get that list. Is there a way to get that back?

    Hi again Bob,
    I believe I've found the feature you were speaking about now. Information on the "In the Store" feature of iTunes can be found here:
    Apple - iTunes - Inside iTunes - Using In the Store from within your iTunes Library.
    http://www.apple.com/itunes/inside-itunes/2013/01/using-in-the-store-from-within -your-itunes-library.html
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Is there a way in Pages to show and print all the added "comments?" (those you add by highlighting text)  I'd like students to be able to view my comments on printed version of their papers.

    Is there a way in Pages to show and print all the added "comments?" (those you add by highlighting text)  I am a teacher, and I would  like students to be able to view my comments on printed versions of their papers. I know word displays the comments off to the side of the document, and those comments can be viewed all at once and printed alongside the document.

    There doesn't appear to be a way to print conmments in either Pages or Numbers in the Mavericks versions.
    Jerry

  • Why cant I highlight part of a document and print only what is selected in safari?

    Why is it not possible to highlight and print the selection in Safari, thought the imac was supposed to do everything,  WRONG.
    I also have I.pad 2 and because it does not support adobe flash, I cannot open a magazine that I have each week, I have to do this on the imac, so when away from home it again doesnt do what I want it to.  Does everything people say.  WRONG AGAIN.
    Should have stuck with the laptop, it actually does do these things mentioned above.

    I purchased the iPad first and waited a year HOPING Apple would fix this problem OR at the least provide something comparable to WINDOWS!
    WRONG....and yes it is hard to believe for how ADVANCED Apple is.....that they don't have a simple easy program that allows you to HIGHLIGHT and PRINT ONLY what you highlight!
    But....they are making leaps and bounds.....at least you can now cut & paste....thats a good thing!?
    HOPEFULLY.......in the VERY,VERY NEAR FUTURE Apple will supply us with the simple software to do these simple time saving chores!
    (highlight and print ONLY what you highlight)
    Until then we have to cut and paste to several different apps or programs....hoping it will allow you to print ONLY WHAT THE USER WANTS TO PRINT!

  • Highlighting multiple days in Month View?

    Hello everyone & Happy Friday All !!!
    I'm new to this forum, and VERY new to using ical -
    Here's my question:
    In my old method of using a calendar to do my schedule on my old PC -
    I'd make a spreadsheet in MS Excel that would show me monthly views that I could highlight days,
    weeks or entire months..... It's crude in comparison to ical, yet it IS effective for my needs......
    I am used to highlighting either a single day or a string of days in my "month" view,
    so... for example - let's say that Monday thru Thursday of next week I am going to be "out of the office in London - UK" -
    I would simply highlight the four days of next week - and instead of leaving those cells "white"
    like every other day in the month - I'd change those four cell's colored "fill" option from white to
    bright yellow - (or any other color that signifies a specific action or function - like "green" for vacation days, or "blue" for a sick day or surgery, etc....
    This way - that at a glance (literally) - I can tell that I'm "out of the office" on those days next week that are colored other than "white"..... NOTE: the ENTIRE CELL - Not Just the Day Title is colored......
    (I wish I could insert a visual example of what I am trying to describe here...)
    Is there a way of doing this same kind of function in ical - so that I can have an "at a glance" or
    "heads up display" that I can see quickly and know I'm committed on those days next week - or
    any week or group of days for that matter?
    This would help me tremendously of there is a way of doing this...... Otherwise - I'll be STUCK
    in the 90's using my improvised Excel Spreadsheet Calendar.....
    Thanks in advance for your help
    kevin

    Welcome to the discussions, azstoneconsulting.
    In iCal colours are tied to specific calendars, so make a vacation calendar and a sick calendar (you forecast your sickness? Cool) and an out of office calendar and set the colours to whatever colour suits. Then when you are going to be in London select the out of office calendar and set it to last the four days. It will show as a coloured bar across those days in month view.
    AK

  • I would like to propose sites when i type a letter in the addressbar WITHOUT highlighting it, help me ?

    Hello :)
    I am very happy when the Firefox browser suggests me sites I have already visited, when I just type one letter in the address bar, but I don't like that this letter gets highlighted in all the suggested urls,
    I'd like Firefox always to offer me these suggestions, but if possible without highlighting the letter I type, and I don't know if I can (or how to if I can) change the settings of my browser to be so,
    Can you please help me with that?
    Thanks in advance :)

    The involved CSS code can be found in this file that you can open via the location bar.
    * chrome://global/skin/autocomplete.css
    Look for class .ac-emphasize-text and apply modified rules as you like.
    You need to add the !important flag to override rules.
    Add code to the <b>userChrome.css</b> file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    @namespace html url("http://www.w3.org/1999/xhtml");
    html|span.ac-emphasize-text {
    box-shadow: none!important;
    background-color: transparent !important;
    border-radius: 0px;
    text-shadow: none !important;
    </nowiki></pre>
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    * Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
    * Use a plain text editor like Notepad to create a (new) userChrome.css file in this folder (the names are case sensitive)
    * Paste the code in the userChrome.css file in the editor window and make sure that the userChrome.css file starts with the default @namespace line
    * Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css. Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file

  • How can I highlight more than one pic at a time?

    First of all, THANKS for anyone that may answer since APPLE obviously has no desire to get off their ***** and help their customers.
    About ten days ago I was prompted to install apples new operating system. So of course I clicked OK, idiot that I am!
    Now I'm stuck with this new piece of **** operating system that I wish I could uninstall.
    ANYWAY,
    I upload a lot of pix for stuff I sell on EBay, sometimes 3-400 at a time. When I delete photos it's usually 1,000 at a time, and I assure you I'm not exaggerating. Up until now I was able to touch the END pic and swipe the whole horizontal row with two fingertips and the whole row of 7 would get checked. With the new ios7 I am unable to do it anymore (yet ANOTHER reason I don't want this 'improved' OS).
    Does ANYONE know of a way to highlight more than one pic at a time?? Remember the old windows system where you could click one pic, then hit SHIFT and click a lower one and it would highlight them all, in between, for a quick delete?
    There MUST be a way to delete, or rather highlight (or CHECK) more than one pic at a time? Anyone?
    THANKS, Rich

    Yes, I know the photos stored on the device... But which app are you accessing the photos with? Which app do you want to be able to highlight more than one pic at a time in?
    There are literally thosands of apps that access the iOS Photo Library - which one(s) are you using?

  • In Pages 5.0 How do I change the highlight color?

    In Pages 5.0 How do I change the highlight color?

    Oh!  I understand now.  See screenshot below.  It's called "Character Fill Color":

  • Why can I not highlight single words in a pdf document with Adobe Reader for Android?

    I, like other users I have seen, am unable to highlight single words or phrases in pdf files.  I am using a Galaxy Note 10.1 tablet.

    Hi,
    Welcome to Adobe forums.
    Please see : http://helpx.adobe.com/acrobat/kb/print-comments-acrobat-reader.html
    I hope this will help you.
    Please let me know, if you need any more help on this.
    ~ Aditya

  • What is the shortcut key to highlight words in adobe reader in macbook pro

    what is the shortcut key to highlight words in adobe reader in macbook pro?
    Shift + U is not working
    how can i change shortcut key?

    I don't believe there is a keyboard shortcut available for that feature. But I believe if you click-select the topmost chapter, and Shift-click the bottommost chapter, it should select them all.
    Other shortcuts for books can be set up in Edit > Keyboard Shortcuts in the Panel Menus product area. There are no default shortcuts in that area.

Maybe you are looking for