Combobox dropdown height

Hi,
     Anybody know, how to increase the cell height of a combobox dropdown.
Thanks in advance.

Search more on Custom cell renders you will get your answer.
The process is create your own cell renderer then set it as cell renderer for combobox and use it.
For more info visit: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/listClasses/CellRend erer.html

Similar Messages

  • Combobox dropdown functionality

    Hi,
    I have a combobox dropdown for a Column in my table. it displays "codes Description" something like this
    01 Apparel
    02 Houseware
    03 Kitchenware
    I have a query to get this data in the dropdown from a oracle table.
    Select LEVEL1_CATEGORY_CD, CATEGORY_DESC From PRODUCT_CATEGORY1
    Order By PRODUCT_CATEGORY1.CATEGORY_DESC
    I am using setboundsql() method of the Column class in Quicktable.
    http://quicktable.org/doc/quick/dbtable/Column.html
    I have also tried getting the query data in a hastable as a key/value pair and fill the combo box.
    what i need is when user selects something from the dropdown like "02 Houseware" i need only 02 to be filled into my cell. is this possible? right now its filling "02 Houseware" in the dropdown. can you explain stepwise as i am new to swing API.
    Thanks.

    I guess I am close but doing something silly. thats how I learn.
    here is my code snippet,
    final JComboBox comboBox;
             comboBox = new JComboBox( model );   // model.addElement(rs.getString(1));
             comboBox.setEditable(true);
             comboBox.setSelectedIndex(-1);
          comboBox.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
         if (comboBox.getSelectedIndex()==-1) return;
         String s= comboBox.getSelectedItem().toString().trim();
        comboBox.setSelectedItem(s.substring(0,2));
          c.setCellEditor(new DefaultCellEditor(comboBox));   //c = dBTable1.getColumn(1);My vector has elements like, "01 Apparel".
    I am able to get these in the dropdown. when i select something, its filling, 01 Apparel . after selecting if i click the cell again, then its changing to 01(as i needed). else after selecting if i lose focus and go to other cell, the value remains as 01 Apparel.
    this might be trivial for someone who knows Swing but I am gettting frustrated...have to read complete tutorial this weeknd :)
    Thanks again.

  • ComboBox (dropdown) Need Help Adding URL links!!!

    I am somewhat of a newbie....Anybody know how to use URL
    links in a ComboBox dropdown menu? NEED HELP!!!!!!! I'm trying to
    make it so that after selecting an option, the user is directed to
    another URL within the same browser window. Using flash 8!
    Thanks,

    Im a bit a newbie myslef but i think you make flash
    commuincate to javascript wich will make the browser goto the URL.
    do a search on getURL and javascript together and i am sure
    you will find something.
    And when slecting to redirct i think its on?(onPress)
    something so maybe look throught the help section in flash 8 and
    look at componets. I think there is some actionscript help there.
    Sorry i could not be more helpful.

  • Combobox dropdown doesn't refresh

    Hi all!
    I have a comboBox problem. Please test this simple code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
        creationComplete="init()">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                [Bindable]
                private var dp:ArrayCollection;
                private function init():void
                    dp = new ArrayCollection(["one", "two"]);
            ]]>
        </mx:Script>
        <mx:ComboBox id="cb" dataProvider="{dp}"/>
        <mx:Button label="click me" click="dp = new ArrayCollection(['three', 'four']);dp.refresh()"/>
    </mx:Application>
    What happens is that the dropdown list of the combobox doesn't show the new values. I guess I'm overlooking something here.
    Any advice?
    Thanks!
    Dany

    Hi Archimedia,
    I have run the sample code that you have sent....but I could see no problem I could see the combobox being refreshed when the button being clicked.
    However it is always safer to remove all the elements in the ArrayCollection using the removeAll() method before assigning the new values.
    Try the below code and check whether it's working for you...?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="init()"
    >
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection; 
    Bindable] 
    private var dp:ArrayCollection; 
    private function init():void
    dp =
    new ArrayCollection(["one", "two"]);}
    private function refreshComboBox():void
    if(dp != null){
    dp.removeAll();
    dp.refresh();
    dp =
    new ArrayCollection(['three', 'four']);}
    ]]>
    </mx:Script>
    <mx:ComboBox id="cb" dataProvider="{dp}"/>
    <mx:Button label="click me" click="refreshComboBox()"/></mx:Application>
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • How do I limit typing in a ComboBox Dropdown list

    I’ve created a form and added a ComboBox which generated the code:
    this->DateList = (gcnew System::Windows::Forms::ComboBox());
    this->SuspendLayout();
    // DateList
    this->DateList->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12,
    System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
    static_cast<System::Byte>(0)));
    this->DateList->FormattingEnabled = true;
    this->DateList->Location = System::Drawing::Point(91, 7);
    this->DateList->Name = L"DateList";
    this->DateList->Size = System::Drawing::Size(121, 28);
    this->DateList->TabIndex = 0;
    this->DateList->SelectedIndexChanged += gcnew System::EventHandler(this,&Form1::DateList_SelectedIndexChanged);
    And then I added some custom code to add the items to the DateList
    for ( int x = numSnapShots - 1 ; x >= 0 ; x-- )
      String ^ item = gcnew String ( SnapShots[x]->dateStr );
        this->DateList->Items->Add(item);
    this->DateList->SelectedIndex = 0;
    All is working fine, I can select any Snapshot date I want from the list. 
    The problem is that I can also type anything I want in the ComboBox. 
    The dropdown of 12/31/2014 is in the list, but I can also type “Last Year” and of course the code doesn’t know how to handle that.
    What item in the combobox do I have the change to what to disable the user’s ability to type in the combobox?

    David,
    Maybe I didn’t look hard enough, but I could not find a way to create a C# WinForms project and include my existing C++ code as is and then interface the form front end to the existing C++ logic.
    I did find relatively easy ways for a C++ CLI Windows Forms Application to communicate with standard C++. 
    I had to limit the data types that I passed pack and forth, but the link up was relatively easy.
    I have externals in Form1.h which can then simply call the primary C++ interface:
    extern std::string str;
    extern std::string strPage;
    extern std::string strDate;
    extern
    void Initialize();
    extern
    int RebuildPage(int);
    Initialize() is called right after Initialize Component() to load all the data into memory and build the first HTML page.
    if (RebuildPage(7))    
    RefreshThePage();
    Exists for most of the button clicks and dropdown selections. 
    The number tells the C++ code what form control was clicked and a nonzero return tells the form to refresh the page. 
    Refresh the page is a simple Form1.h method that does just that, changes the labels on the form header and refreshes the HTML string to the new HTML data created by the C++ logic.
    void RefreshThePage(void)
    this->webBrowser1->DocumentText =
    gcnew String( str.c_str() );
    this->ViewLabel->Text =
    gcnew String( strPage.c_str() );
    this->DateLabel->Text =
    gcnew String( strDate.c_str() );
    This allowed me to perform all of the complex operation in the existing code with minimal changes, like changing the fprintf’s that created the original HTML files into str.append logic to pass the pages directly to the form.
    It’s true that all of my other code was batch style console applications, but the form front end was not totally difficult to learn and the simple fixes like David Lowndes just suggested makes the coding even easier. 
    Thanks again Dave.
    I created a very complex program to make visualizing mutual fund trends very simple. 
    The problem with the batch console application was that if I wanted to stop highlighting symbol ABC and wanted to start highlighting XYZ, I had to modify a data file by hand and then rerun the batch process to recreate the entire website on my local
    drive so I could not instantly see the change.  Using a form front end and building and displaying the pages interactively make that process instant.

  • Combobox dropdown menu bug in FlashPlayer 10

    Hello,
    I discovered that the combobox drop down menu do not drop UP
    in fullscreen with a screen format 16/10.
    Could you confirm ?
    See sample on
    http://gdfsuez.visitonweb.com/flash/awirs.html
    Regards,
    Dimitri

    Hi,
    Google should definitely help you with this. I am sure that there may be people here who will guide you through each step in this forum. But, you learn only when you do things yourself. Please take some time to go through the links in google. You will definitely find all the things required to solve your problem.
    1) JDBC examples to populate your dropdown.
    2) DHTML+Javascript to handle selection/display of fields.
    You can come here for help only after you have tried to some extent and not able to proceed with something. Trust me, you should be able to do it yourself.
    Karthik.

  • Combobox dropdown closes when refreshing dataprovider

    Hi,
    i'm having a small problem when filtering a dataprovider of a
    combobox and then refresh it.
    When the dropdown is open before the refresh() call, it'll
    close itself when refreshing the dataprovider.
    I've tried overriding the close() method but close() doesn't
    get called during this close operation.
    Also, the close event is not dispatched.
    Anyone knows if it's possible to prevent the dropdown from
    closing ?

    I don't think its possible, because the items in the list
    could completely change and it needs to close so it can remove the
    old lists and add the new items.
    You couldn't hold me to that thought its just my
    guess.

  • ComboBox / DropDown with UIX

    Hello People,
    I'm bulding an application using Business Components and UIX JSP for BC, how can I put a ComboBox or a DropDown Control that contains all the information of an attribute of a table.
    regards

    >
    I use the messageChoice element and works fine for me. But for it works we must to define the bc4j:viewObjectDef element into bc4j:registryDef element, is it correct?
    Yes, you do need the viewObjectDef in the registryDef.
    >
    Well, if it is, we must to put two parameters into bc4j:registryDef element that are the name of the view and the rangeSize of the view. The rangeSize determines the amount of records to fetch, is it correct? If it is, how can I fetch all records?
    I believe that the rangeSize parameter is optional and that omitting it means "return me all rows". Try leaving it off and see if that returns everything.
    -brian
    Team UIX

  • How to display a combobox(dropdown menu) in a jsp page?

    Hi friends,
    I need to create a jsp page which contains three text fields and a single dropdown menu,,, . and my functionality is while loading the page itself that dropdown menu gets the data from database and holds in it..... i mean the data in theat combo box must gets from Database and based on the particular selection the remaing fields has to be filled ...... so plz helpme to solv this and any help is appriciated....
    regards
    priya......

    Hi,
    Google should definitely help you with this. I am sure that there may be people here who will guide you through each step in this forum. But, you learn only when you do things yourself. Please take some time to go through the links in google. You will definitely find all the things required to solve your problem.
    1) JDBC examples to populate your dropdown.
    2) DHTML+Javascript to handle selection/display of fields.
    You can come here for help only after you have tried to some extent and not able to proceed with something. Trust me, you should be able to do it yourself.
    Karthik.

  • Ho to resolve gantt chart rendering issue as webpart

    When I am showing gantt chart view as webpart, it is not rendering properly (same in IE) and for few instance it is correcting after few days(but not all sites).
    Please help us to understand.
    Regards Sudip Misra [email protected] +1-412-237-5435 Pittsburgh, PA

    1. Download the css below.
    2. Rename the file as “.css” extension
    3. Now upload this file to the team site assets library 
    4. Now navigate to the page were the web part is inserted
    5. Click on site action and edit page
    6. Let’s click on insert and add web part 
    7. Select Script editor web part from Media and content  
    8. In the Script editor web part Past the code <LINK REL=StyleSheet HREF="https://domainname.sharepoint.com/SiteAssets/myjgrid.css" TYPE="text/css" >
    9. In the highlighted section past the URL of the File added to site assets library
    a. Open the site assets library 
    b. Right click on the file myjgrid.css
    c. Select copy shortcut ( IE browser) 
    10. Now save the changes made on the page.
    /* _lcid="1033" _version="16.0.2930"
    _LocalBinding */
    .jsgrid-control-text
    padding-left:4px;
    .jsgrid-control-text-rtl
    padding-right:4px;
    input[type=text].jsgrid-control-editbox,.jsgrid-control-editbox
    border:0px;
    padding:2px 4px 2px 4px;
    overflow:hidden;
    z-index:1;
    input[type=text].jsgrid-control-editbox::-ms-clear
    display:none;
    textarea.jsgrid-control-multiline,.jsgrid-control-rte
    border-width:0px;
    /* [ReplaceColor(themeColor:"BackgroundOverlay",opacity:"1.0")] */ background-color:#fff;
    .jsgrid-widget-dock
    /* [ReplaceColor(themeColor:"ButtonBorder")] */ border:1px solid #ababab;
    /* [ReplaceColor(themeColor:"ButtonBackground",opacity:"1.0")] */ background-color:#fdfdfd;
    height:20px;
    cursor:pointer;
    z-index:1;
    .jsgrid-widget-dock-hover
    /* [ReplaceColor(themeColor:"ButtonHoverBorder")] */ border-color:#92c0e0;
    /* [ReplaceColor(themeColor:"ButtonHoverBackground",opacity:"1.0")] */ background-color:#e6f2fa;
    .jsgrid-widget-dock-pressed
    /* [ReplaceColor(themeColor:"ButtonPressedBorder")] */ border-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"ButtonPressedBackground",opacity:"1.0")] */ background-color:#92b7d1;
    .jsgrid-widget-cell
    overflow:hidden;
    padding:2px;
    float:left;
    height:16px;
    width:16px;
    top:0px;
    .jsgrid-widget-hyperlink
    /* [ReplaceColor(themeColor:"BackgroundOverlay",opacity:"1.0")] */ background-color:#fff;
    /* [ReplaceColor(themeColor:"Lines")] */ border:solid 1px #ababab;
    .jsgrid-widget-hyperlink-buttonarea
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ background-color:#f1f1f1;
    .ms-core-needIEFilter .jsgrid-widget-hyperlink-buttonarea
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#c6efefef,endColorstr=#c6efefef)";
    .jsgrid-widget-hyperlink-okbutton
    /* [ReplaceColor(themeColor:"SubtleEmphasisCommandLinks")] */ color:#262626;
    .combobox-placeholder > .combobox-img
    /* [ReplaceColor(themeColor:"StrongLines")] */ border:1px solid #92c0e0;
    margin:auto;
    padding:0px;
    .combobox-placeholder > input[type="text"]
    /* [ReplaceColor(themeColor:"BackgroundOverlay",opacity:"1")] */ background-color:#fff;
    .outer-scroll-bar
    background-color:#E6E8EB;
    top:0px;
    left:0px;
    .inner-scroll-bar
    border-right:1px solid #F8F9F9;
    border-left:1px solid #F5F6F7;
    border-top:1px solid #F5F6F7;
    border-bottom:1px solid #F5F6F7;
    background-color:#F0F0F0;
    top:1px;
    left:1px;
    .scroll-bar-cell
    border:1px solid #F6F6F6;
    background-color:#D5DDED;
    .scroll-bar-inner-arrow-cell
    border:1px solid transparent;
    .scroll-bar-arrow-cell
    border:1px solid transparent;
    top:0px;
    left:0px;
    .scroll-bar-outer-box
    border:1px solid #A3A6AB;
    background-color:#EEEFF2;
    top:0px;
    left:0px;
    .scroll-bar-background-main
    background-color:#F2F3F5;
    .scroll-bar-background-shade
    background-color:#EDEEF0;
    .scroll-bar-inner-box-main
    background-color:#DBDFE5;
    .scroll-bar-inner-box-shade
    background-color:#E5E8EC;
    .scroll-bar-arrow
    border:0px;
    padding:0px;
    text-align:center;
    vertical-align:top;
    .scroll-bar-grip
    top:0px;
    left:0px;
    border-color:#A7AAAF;
    background-color:#FEFEFE;
    .horiz-scroll-bar-inner-box-main
    .horiz-scroll-bar-inner-box-shade
    .horiz-scroll-bar-bg-block
    float:left;
    height:100%;
    .horiz-scroll-bar-arrow-cell
    top:-2px;
    .horiz-scroll-bar-outer-box
    top:-1px;
    .horiz-scroll-bar-grip
    border-left:1px solid;
    height:5px;
    width:1px;
    .vert-scroll-bar-inner-box-main
    float:right;
    .vert-scroll-bar-inner-box-shade
    float:left;
    .vert-scroll-bar-background-main
    float:right;
    .vert-scroll-bar-background-shade
    float:left;
    .vert-scroll-bar-arrow-cell
    left:-2px;
    .vert-scroll-bar-outer-box
    left:-1px;
    .vert-scroll-bar-grip
    border-top:1px solid;
    height:1px;
    width:5px;
    .jsgrid-gantt-vert-delim
    top:0px;
    height:100%;
    border-left-width:1px;
    border-left-style:solid;
    border-right-width:1px;
    border-right-style:solid;
    background:transparent;
    .jsgrid-gantt-vert-today
    top:0px;
    height:100%;
    border-left-width:1px;
    border-left-style:solid;
    width:0px;
    background:transparent;
    z-index:1;
    .ms-jsgrid-cell-selected-editable,
    .ms-jsgrid-cell-selected-editable a:hover
    cursor:text;
    .ms-jsgrid-cell-selected-editable [ms-jsgrid-click-passthrough=true]
    cursor:auto;
    .jsgrid-header-eyebrow
    height:4px;
    cursor:pointer;
    .jsgrid-header-content{
    height:100%;
    width:100%;
    .ms-core-needIEFilter .jsgrid-header-content
    overflow:hidden;
    .jsgrid-header-core-content{
    overflow:hidden;
    text-overflow:none;
    white-space:nowrap;
    color:#2E4F69;
    .jsgrid-header-core-img-content
    overflow:hidden;
    text-overflow:none;
    white-space:nowrap;
    color:#2E4F69;
    .jsgrid-header-sort-arrow-div
    height:6px;
    padding-bottom:1px;
    overflow:hidden;
    cursor:move;
    .jsgrid-header-menu
    display:none;
    height:100%;
    cursor:pointer;
    .jsgrid-header-filter-state
    display:none;
    height:100%;
    cursor:pointer;
    .jsgrid-header-expand
    height:100%;
    width:4px;
    .jsgrid-error-notification{
    /* [ReplaceColor(themeColor:"ErrorText")] */ color:#bf0000;
    text-align:left;
    .jsgrid-vml
    behavior:url(#default#vml);
    .combobox-placeholder
    white-space:nowrap!important;
    padding:0px!important;
    .cb-textbox[dir="rtl"]
    float:right;
    .cb-textbox[dir="ltr"]
    float:left;
    .cb-textbox
    /* [ReplaceColor(themeColor:"BackgroundOverlay",opacity:"1.0")] */ background-color:#fff;
    border-width:0px!important;
    margin:0px!important;
    .combobox-img
    /* [ReplaceColor(themeColor:"BackgroundOverlay",opacity:"1.0")] */ background-color:#fff;
    padding:0px;
    font-size:8px;
    width:22px!important;
    min-width:22px!important;
    border-width:1px;
    border-color:transparent;
    .combobox-img:hover,.combobox-img:active,.combobox-img-active
    /* [ReplaceColor(themeColor:"HoverBackground")] */ background-color:rgba( 205,230,247,0.5 );
    border-color:inherit;
    .ms-core-needIEFilter .combobox-img:hover,.ms-core-needIEFilter .combobox-img:active,.ms-core-needIEFilter .combobox-img-active
    background-color:transparent;
    /* [ReplaceColor(themeColor:"HoverBackground")] */ -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#7fcde6f7,endColorstr=#7fcde6f7)";
    .combobox-img[dir="rtl"]
    float:right;
    border-style:none solid none none;
    text-align:right;
    .combobox-img[dir="ltr"]
    float:left;
    border-style:none none none solid;
    .combobox-icon[dir="ltr"]
    margin-left:3px;
    .combobox-icon[dir="rtl"]
    margin-right:3px;
    .listbox-panel,.combobox-dropdown
    /* [ReplaceColor(themeColor:"BackgroundOverlay",opacity:"1.0")] */ background-color:#fff;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-color:#2a8dd4;
    border-style:solid;
    border-width:1px;
    overflow:hidden;
    .listbox-hidden-input
    top:-2000px;
    width:1px;
    height:1px;
    overflow:hidden;
    .combobox-dropdown
    height:20em;
    left:0px;
    clear:both;
    html>body .combobox-dropdown
    height:auto;
    max-height:300px;
    .combobox-panel-table
    cursor:default;
    border:0px none!important;
    padding:0px!important;
    width:100%;
    .cb-dp-highlight
    background-color:Highlight;
    color:HighlightText;
    .cb-dp-rw:hover
    /* [ReplaceColor(themeColor:"HoverBackground")] */ background-color:rgba( 205,230,247,0.5 );
    .ms-core-needIEFilter .cb-dp-rw:hover
    background-color:transparent;
    /* [ReplaceColor(themeColor:"HoverBackground")] */ -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#7fcde6f7,endColorstr=#7fcde6f7)";
    .cb-dp-rw-selected
    /* [ReplaceColor(themeColor:"SelectionBackground")] */ background-color:rgba( 156,206,240,0.5 );
    .ms-core-needIEFilter .cb-dp-rw-selected
    background-color:transparent;
    /* [ReplaceColor(themeColor:"SelectionBackground")] */ -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#7f9ccef0,endColorstr=#7f9ccef0)";
    .combobox-dropdown-celldiv
    overflow:hidden;
    border:0px;
    margin:0px;
    padding:4px 4px 4px 4px;
    .cb-dp-celldiv-first
    padding-left:8px;
    .cb-dp-celldiv-last
    padding-right:8px;
    .combobox-dropdown-celldiv[dir="ltr"]
    text-align:left;
    .combobox-dropdown-celldiv[dir="rtl"]
    text-align:right;
    .combobox-dropdown-cell,.combobox-dropdown-hdrcell
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-right-color:#2a8dd4;
    border-right-style:solid;
    border-right-width:1px;
    margin:0px;
    padding:0px;
    .cb-td-rtl
    border-right-style:none;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    border-left-style:solid;
    border-left-width:1px;
    .combobox-dropdown-imghdrcell,.combobox-dropdown-hdrcell
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    border-bottom-style:solid;
    border-bottom-width:1px;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ background-color:#f1f1f1;
    font-weight:bold;
    .combobox-dropdown-imghdrcell,.combobox-dropdown-imgcell
    width:10px;
    margin:0px;
    padding:2px 0px 2px 4px;
    .combobox-dropdown-foot
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-top-color:#2a8dd4;
    border-top-style:solid;
    border-top-width:1px;
    .combobox-headerwrapper,.combobox-tablewrapper
    background-color:transparent;
    z-index:1!important;
    width:100%;
    border-width:0px;
    margin:0px;
    html>body .combobox-headerwrapper,html>body .combobox-tablewrapper
    width:auto;
    .combobox-headerwrapper
    overflow:hidden;
    .combobox-tablewrapper
    overflow:auto;
    .combobox-link,.cb-progress-text,.cb-retry-text,.cb-err-link
    font-family:Segoe UI,Tahoma,Verdana;
    font-size:8pt;
    color:#444444;
    .combobox-link
    background-color:#f0f2f5;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-top-color:#2a8dd4;
    border-top-style:solid;
    border-top-width:1px;
    display:none;
    height:12px;
    padding-top:4px;
    padding-bottom:4px;
    .cb-err-link,.combobox-link
    color:#0072bc;
    padding-left:8px;
    .combobox-link[dir="ltr"]
    text-align:left;
    .combobox-link[dir="rtl"]
    text-align:right;
    .cb-progress-text
    padding-left:12px;
    white-space:nowrap;
    .cb-progress-cell,.cb-retry-cell
    text-align:center;
    padding-top:17px;
    padding-bottom:17px;
    .cb-progress-cell
    line-height:24px;
    .cb-progress-img
    vertical-align:middle;
    .ms-grid
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-right-color:#c6c6c6;
    border-right-style:solid;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-bottom-color:#c6c6c6;
    border-bottom-style:solid;
    /* [ReplaceColor(themeColor:"BackgroundOverlay",opacity:"1.0")] */ background-color:#fff;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    .ms-grid-link
    /* [ReplaceColor(themeColor:"Hyperlink")] */ color:#0072c6;
    /* [ReplaceColor(themeColor:"Hyperlinkfollowed")] */ background-color:#663399;
    .ms-grid-selection
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-top-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    border-right-color:transparent;
    /* [ReplaceColor(themeColor:"SelectionBackground",opacity:"1.0")] */ color:#9ccef0;
    .ms-grid-selection-readonly
    /* [ReplaceColor(themeColor:"DisabledLines")] */ border-bottom-color:#e1e1e1;
    .ms-grid-edit
    /* [ReplaceColor(themeColor:"HoverBackground",opacity:"1.0")] */ background-color:#cde6f7;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"ErrorText")] */ border-top-color:#bf0000;
    .ms-grid-cell
    font-size:1em;
    font-weight:normal;
    font-style:normal;
    /* [ReplaceColor(themeColor:"BodyText")] */ color:#444;
    /* [ReplaceColor(themeColor:"BackgroundOverlay",opacity:"1.0")] */ background-color:#fff;
    .ms-grid-cell-readonly
    /* [ReplaceColor(themeColor:"BodyText")] */ color:#444;
    /* [ReplaceColor(themeColor:"BackgroundOverlay",opacity:"1.0")] */ background-color:#fff;
    .ms-grid-cell-readonly-focused
    /* [ReplaceColor(themeColor:"DisabledText")] */ color:#b1b1b1;
    /* [ReplaceColor(themeColor:"DisabledBackground")] */ background-color:#fdfdfd;
    .ms-grid-timescale
    font-size:1em;
    font-weight:normal;
    /* [ReplaceColor(themeColor:"BodyText")] */ color:#444;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-right-color:#c6c6c6;
    border-right-style:solid;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-bottom-color:#c6c6c6;
    border-bottom-style:solid;
    /* [ReplaceColor(themeColor:"Lines")] */ border-left-color:#ababab;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-top-color:#2a8dd4;
    .ms-grid-col-header-normal
    font-size:1em;
    font-weight:normal;
    /* [ReplaceColor(themeColor:"SubtleBodyText")] */ color:#777;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-bottom-color:#c6c6c6;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-right-color:#c6c6c6;
    border-left-color:transparent;
    /* [ReplaceColor(themeColor:"Lines")] */ border-top-color:#ababab;
    .ms-grid-col-header-elem-bg-colors-normal
    border-left-color:transparent;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-bottom-color:#c6c6c6;
    /* [ReplaceColor(themeColor:"Lines")] */ border-right-color:#ababab;
    .ms-grid-col-header-elem-hover-bg-colors-normal
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ color:#f1f1f1;
    /* [ReplaceColor(themeColor:"StrongLines")] */ border-right-color:#92c0e0;
    .ms-core-needIEFilter .ms-grid-col-header-elem-hover-bg-colors-normal
    background-color:transparent;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#c6efefef,endColorstr=#c6efefef)";
    .ms-grid-col-elem-colors-click-normal
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    .ms-grid-row-header-normal
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-bottom-color:#c6c6c6;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-right-color:#c6c6c6;
    .ms-grid-col-header-normal-hover
    font-size:1em;
    font-weight:normal;
    /* [ReplaceColor(themeColor:"BodyText")] */ color:#444;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-color:#2a8dd4;
    .ms-grid-col-header-elem-bg-colors-normal-hover
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-left-color:#c6c6c6;
    background-color:transparent;
    border-bottom-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-right-color:#2a8dd4;
    .ms-grid-col-header-elem-hover-bg-colors-normal-hover
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-top-color:#2a8dd4
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    .ms-grid-col-elem-colors-click-normal-hover
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    .ms-grid-row-header-normal-hover
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-right-color:#c6c6c6;
    .ms-grid-col-header-part-selected
    font-size:1em;
    font-weight:normal;
    /* [ReplaceColor(themeColor:"SubtleBodyText")] */ color:#777;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-right-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-top-color:#2a8dd4;
    .ms-grid-col-header-elem-bg-colors-part-selected
    border-left-color:transparent;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-right-color:#2a8dd4;
    .ms-grid-col-header-elem-hover-bg-colors-part-selected
    /* [ReplaceColor(themeColor:"AccentText")] */ color:#0072c6;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-right-color:#2a8dd4;
    .ms-grid-col-elem-colors-click-part-selected
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    .ms-grid-row-header-part-selected
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-right-color:#c6c6c6;
    .ms-grid-col-header-part-selected-hover
    font-size:1em;
    font-weight:normal;
    /* [ReplaceColor(themeColor:"BodyText")] */ color:#444;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-color:#2a8dd4;
    .ms-grid-col-header-elem-bg-colors-part-selected-hover
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-left-color:#c6c6c6;
    background-color:transparent;
    border-bottom-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-right-color:#2a8dd4;
    .ms-grid-col-header-elem-hover-bg-colors-part-selected-hover
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-top-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    .ms-grid-col-elem-colors-click-part-selected-hover
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    .ms-grid-row-header-part-selected-hover
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-right-color:#c6c6c6;
    .ms-grid-col-header-all-selected
    font-size:1em;
    font-weight:normal;
    /* [ReplaceColor(themeColor:"BodyText")] */ color:#444;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-right-color:#c6c6c6;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-left-color:#c6c6c6;
    /* [ReplaceColor(themeColor:"StrongLines")] BLOCK_COMMENT_ENDborder-bottom-color:#92c0e0;
    .ms-grid-col-header-elem-bg-colors-all-selected
    border-left-color:transparent;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-bottom-color:#c6c6c6;
    /* [ReplaceColor(themeColor:"Lines")] BLOCK_COMMENT_ENDborder-right-color:#ababab;
    .ms-grid-col-header-elem-hover-bg-colors-all-selected
    /* [ReplaceColor(themeColor:"SubtleBodyText")] */ color:#777;
    /* [ReplaceColor(themeColor:"StrongLines")] */ border-right-color:#92c0e0;
    .ms-grid-col-elem-colors-click-all-selected
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    .ms-grid-row-header-all-selected
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-right-color:#c6c6c6;
    .ms-grid-col-header-all-selected-hover
    font-size:1em;
    font-weight:normal;
    /* [ReplaceColor(themeColor:"BodyText")] */ color:#444;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-color:#2a8dd4;
    .ms-grid-col-header-elem-bg-colors-all-selected-hover
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-left-color:#c6c6c6;
    background-color:transparent;
    border-bottom-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-right-color:#2a8dd4;
    .ms-grid-col-header-elem-hover-bg-colors-all-selected-hover
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-top-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    .ms-grid-col-elem-colors-click-all-selected-hover
    background-color:transparent;
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-left-color:#2a8dd4;
    .ms-grid-row-header-all-selected-hover
    /* [ReplaceColor(themeColor:"AccentLines")] */ border-bottom-color:#2a8dd4;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-right-color:#c6c6c6;
    .ms-grid-splitter
    /* [ReplaceColor(themeColor:"Lines")] */ border-top-color:#ababab;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-left-color:#c6c6c6;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-bottom-color:#c6c6c6;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ background-color:#f1f1f1;
    .ms-core-needIEFilter .ms-grid-splitter
    background-color:transparent;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#c6efefef,endColorstr=#c6efefef)";
    .ms-grid-splitter-handle
    /* [ReplaceColor(themeColor:"StrongLines")] */ border-top-color:#92c0e0;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-left-color:#c6c6c6;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-bottom-color:#c6c6c6;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ background-color:#f1f1f1;
    /* [ReplaceColor(themeColor:"SubtleBodyText")] */ color:#777;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ border-right-color:#f1f1f1;
    .ms-core-needIEFilter .ms-grid-splitter-handle
    background-color:transparent;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#c6efefef,endColorstr=#c6efefef)";
    .ms-grid-splitter-hover
    /* [ReplaceColor(themeColor:"StrongLines")] */ border-top-color:#92c0e0;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-left-color:#c6c6c6;
    /* [ReplaceColor(themeColor:"SubtleLines")] */ border-bottom-color:#c6c6c6;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ background-color:#f1f1f1;
    .ms-core-needIEFilter .ms-grid-splitter-hover
    background-color:transparent;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#c6efefef,endColorstr=#c6efefef)";
    .ms-grid-splitter-handle-hover
    /* [ReplaceColor(themeColor:"StrongLines")] */ border-top-color:#92c0e0;
    /* [ReplaceColor(themeColor:"Lines")] */ border-left-color:#ababab;
    /* [ReplaceColor(themeColor:"Lines")] */ border-bottom-color:#ababab;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ background-color:#f1f1f1;
    /* [ReplaceColor(themeColor:"SubtleBodyText")] */ color:#777;
    border-right-color:transparent;
    .ms-core-needIEFilter .ms-grid-splitter-handle-hover
    background-color:transparent;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#c6efefef,endColorstr=#c6efefef)";
    .ms-grid-splitter-drag
    /* [ReplaceColor(themeColor:"StrongLines")] */ border-top-color:#92c0e0;
    /* [ReplaceColor(themeColor:"Lines")] */ border-left-color:#ababab;
    /* [ReplaceColor(themeColor:"Lines")] */ border-bottom-color:#ababab;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ background-color:#f1f1f1;
    .ms-core-needIEFilter .ms-grid-splitter-drag
    background-color:transparent;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#c6efefef,endColorstr=#c6efefef)";
    .ms-grid-splitter-handle-drag
    /* [ReplaceColor(themeColor:"StrongLines")] */ border-top-color:#92c0e0;
    /* [ReplaceColor(themeColor:"Lines")] */ border-left-color:#ababab;
    /* [ReplaceColor(themeColor:"Lines")] */ border-bottom-color:#ababab;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ background-color:#f1f1f1;
    /* [ReplaceColor(themeColor:"SubtleBodyText")] */ color:#777;
    border-right-color:transparent;
    .ms-core-needIEFilter .ms-grid-splitter-handle-drag
    background-color:transparent;
    /* [ReplaceColor(themeColor:"SubtleEmphasisBackground")] */ -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#c6efefef,endColorstr=#c6efefef)";
    .ms-grid-group1
    /* [ReplaceColor(themeColor:"ContentAccent1")] */ background-color:#0072C6;
    .ms-grid-group2
    /* [ReplaceColor(themeColor:"ContentAccent2")] */ background-color:#00485B;
    .ms-grid-group3
    /* [ReplaceColor(themeColor:"ContentAccent3")] */ background-color:#288054;
    .ms-grid-group4
    /* [ReplaceColor(themeColor:"ContentAccent4")] */ background-color:#767956;
    .ms-grid-group5
    /* [ReplaceColor(themeColor:"ContentAccent5")] */ background-color:#ED0033;
    .ms-grid-group6
    /* [ReplaceColor(themeColor:"ContentAccent6")] */ background-color:#682A7A;
    .ms-grid-group7
    /* [ReplaceColor(themeColor:"ContentAccent1")] */ background-color:#0072C6;
    .ms-grid-group8
    /* [ReplaceColor(themeColor:"ContentAccent2")] */ background-color:#00485B;
    .ms-grid-group9
    /* [ReplaceColor(themeColor:"ContentAccent3")] */ background-color:#288054;
    .clip6x9,.clip9x6,.clip11x11,.clip13x13,.clip16x16{;overflow:hidden;}.clip6x9{width:6px;height:9px;}.clip9x6{width:9px;height:6px;}.clip11x11{width:11px;height:11px;}.clip13x13{width:13px;height:13px;}.clip16x16{width:16px;height:16px;}.clip6x9 img,.clip6x9 input,.clip9x6 img,.clip9x6 input,.clip11x11 img,.clip11x11 input,.clip13x13 img,.clip13x13 input,.clip16x16 img,.clip16x16 input{;margin:0;padding:0;width:auto;height:auto;}.jsgridcluster_editheader{top:0;left:0;}.jsgridcluster_newrowheader{top:0;left:-16px;}.jsgridcluster_conflictheader{top:-16px;left:0;}.jsgridcluster_transferheader{top:-16px;left:-16px;}.jsgridcluster_cell-error{top:0;left:-32px;}.jsgridcluster_jsgrid-header-filter-icon{top:-16px;left:-32px;}.jsgridcluster_scrollbar-mousein-rightarrow{top:-32px;left:0;}.jsgridcluster_scrollbar-mousein-downarrow{top:-32px;left:-6px;}.jsgridcluster_scrollbar-mousein-uparrow{top:-32px;left:-15px;}.jsgridcluster_scrollbar-mousein-leftarrow{top:-32px;left:-24px;}.jsgridcluster_scrollbar-mouseout-rightarrow{top:-27px;left:-32px;}.jsgridcluster_scrollbar-mouseout-uparrow{top:-27px;left:-38px;}.jsgridcluster_scrollbar-mouseout-downarrow{top:-33px;left:-38px;}.jsgridcluster_scrollbar-mouseout-leftarrow{top:-41px;left:0;}.jsgridcluster_jsgrid-up-arrow{top:-38px;left:-6px;}.jsgridcluster_jsgrid-down-arrow{top:-44px;left:-6px;}
    Regards Sudip Misra [email protected] +1-412-237-5435 Pittsburgh, PA

  • How edit a combobox class for dropdown direction changing?

    hi all,
         i wanna change the direction of combobox dropdown so How can i edit a combobox class for dropdown direction changing?

    Someone gave me a class file to put into my applet.
    ... Does anyone know how to go
    into the class file and change it? And why can't you ask "someone" for the source? Or ask them to modify it for you?

  • New Skinning For ComboBoxes

    Does anyone know a good resource for Skinning Comboboxes?  I know basic skining, and have been able to skin the text fields, and the 'openButton' for comboBox, however I am looking to do more.
    Specifically, I want to skin the BG of the dropDown so it will look similiar to this: http://screencast.com/t/NzY5YjYx however, with the BG scaling properly.
    Right now the BG is a MC i made in Flash (cs4) with 9 Slice enabled, and turned on. The skin that I currently have set on the box is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx">
        <!-- host component -->
        <fx:Metadata>
            [HostComponent("spark.components.ComboBox")]
        </fx:Metadata>
        <!-- states -->
        <s:states>
            <s:State name="open" />
            <s:State name="disabled" />
            <s:State name="normal" />
        </s:states>
        <!-- SkinParts
        name=textInput, type=spark.components.TextInput, required=false
        name=openButton, type=spark.components.supportClasses.ButtonBase, required=true
        name=dropDown, type=flash.display.DisplayObject, required=false
        name=scroller, type=spark.components.Scroller, required=false
        name=dropIndicator, type=mx.core.IFactory, required=false
        name=dataGroup, type=spark.components.DataGroup, required=false
        -->
        <s:PopUpAnchor id="popUp"  displayPopUp.normal="false" displayPopUp.open="true" includeIn="open"
                       left="0" right="0" top="0" bottom="0" itemDestructionPolicy="auto"
                       popUpPosition="below" popUpWidthMatchesAnchorWidth="true">
            <s:Group id="dropDown" maxHeight="184" minHeight="50" >
                <!-- drop shadow -->
                <!--- @private -->
                <s:RectangularDropShadow id="dropShadow" blurX="20" blurY="20" alpha="0.45" distance="7"
                                         angle="90" color="#FF0000" left="0" top="0" right="0" bottom="0"/>
                <!-- border -->
                <!--- @private -->
                <s:Rect id="border" left="0" right="0" top="0" bottom="0">
                    <s:fill>
                        <s:SolidColor color="0xff0000" alpha="0"/>
                    </s:fill>
                    <s:stroke>
                        <!--- @private -->
                        <s:SolidColorStroke id="borderStroke" weight="1" alpha="0" />
                    </s:stroke>
                </s:Rect>
                <mx:Image source="@Embed('src/com/mindspark/SkinTest1/assets/testSwf.swf#box2')"  id="background"  height="{dropDown.height}" width="{dropDown.width}"/>
                <!-- fill -->
                <!--- Defines the appearance of drop-down list's background fill. -->
                <s:Rect id="background2" left="1" right="1" top="1" bottom="1" >
                    <s:fill>
                        <!--- 
                        @private
                        The color of the drop down's background fill.
                        The default color is 0xFFFFFF.
                        -->
                        <s:SolidColor id="bgFill" color="0x000000" alpha="0"/>
                    </s:fill>
                </s:Rect>
                <!--- @private -->
                <s:Scroller id="scroller" left="0" top="0" right="0" bottom="0" hasFocusableChildren="false" minViewportInset="1">
                    <!--- @copy spark.components.SkinnableDataContainer#dataGroup-->
                    <s:DataGroup id="dataGroup" itemRenderer="spark.skins.spark.DefaultItemRenderer">
                        <s:layout>
                            <s:VerticalLayout gap="0" horizontalAlign="contentJustify"/>
                        </s:layout>
                    </s:DataGroup>
                </s:Scroller>
            </s:Group>
        </s:PopUpAnchor>
        <s:TextInput id="textInput" text="DOOOGs" skinClass="com.mindspark.SkinTest1.view.skin.TextInputSkin" />
        <!---  The default skin is ComboBoxButtonSkin.
        @copy spark.components.supportClasses.DropDownListBase#openButton
        @see spark.skins.spark.ComboBoxButtonSkin -->
        <s:Button id="openButton" width="19" right="0" top="0" bottom="0" focusEnabled="false"
                  skinClass="com.mindspark.SkinTest1.view.skin.OpenButtonSkin" /> 
    </s:Skin>
    Any help to what i am doing wrong, or a point to a good resource would be really super.  Thanks for the help.

    Hi,
    If you set the constraints rather than width and height it should work
    <mx:Image source="@Embed('src/com/mindspark/SkinTest1/assets/testSwf.swf#box2')"  id="background"
    top="1" left="1" bottom="1" right="1"/>
    David.

  • Problems skinning/styling ComboBox component

    So the first image is the design brief, and below it is my attempt so far. Some ways to go, and the limitations and scarce documentation of this process is getting to me. So i'm putting a call out to see if anyone's well across this process and could assist, or step me through it?
    been a while since i skinned a component in AS2, and I remember I prefered to write my own components rather than go through this process at the time. but i am hoping to use the built-in Flash component this time.
    So what I need help with is:
    Adjust scrollbar scrubber and track width, hopefully add padding around scrubber, and hopefully this would resolve the issue of losing the scrubber's black border on the right.
    Resolve issues with the combo-button (what's that white border doing there?)
    Style font correctly in combo-button
    Increase list row height
    Add dotted line between list rows
    (I'm ignoring the blue numbers)
    If anyone can help with even just one of those issues, i'd love to hear from you.
    Info about my attempt so far:
    I have skinned several clips, such as scrollThumb*, scrollUpArrow*, scrollDownArrow*, comboDownArrow*, etc.
    I have styled with the following:
    comboBox.setStyle("backgroundColor", 0x504C4B);
    comboBox.dropdown.setStyle("backgroundColor", 0x504C4B);
    comboBox.setStyle("themeColor", 0x1F90AE);
    comboBox.setStyle("color", 0xC4C0BF);
    comboBox.setStyle("textSelectedColor", 0xC4C0BF);
    comboBox.setStyle("textRollOverColor", 0xC4C0BF);
    comboBox.setStyle("alternatingRowColors", [0x504C4B, 0x504C4B]);
    comboBox.setStyle("borderStyle", 'none');
    I have attached the fla I've worked with so far in a zip.
    Thanks for your help!

    Well I resolved this merely by lowering my expectations!
    Leaving this unanswered because I am hoping there must be answers to these issues out there for future reference.
    But for now, my comboBox looks like this:
    And i achieve this by skinning some clips, and adjusting my styling code:
    combo.setStyle("backgroundColor", 0x504C4B);
    combo.dropdown.setStyle("backgroundColor", 0x504C4B);
    combo.setStyle("themeColor", 0x1F90AE);
    combo.setStyle("rollOverColor", 0x46bbda);
    combo.setStyle("color", 0xC4C0BF);
    combo.setStyle("textSelectedColor", 0xFFFFFF);
    combo.setStyle("textRollOverColor", 0xFFFFFF);
    combo.setStyle("alternatingRowColors", [0x504C4B, 0x504C4B]);
    combo.setStyle("borderStyle", 'none');
    combo.text_mc.setStyle("borderStyle","none");
    combo.text_mc.setStyle("themeColor", 0x00FF99);
    combo.text_mc.setStyle("borderColor",0xFFFFFF);
    combo.text_mc.setStyle("color",0xC4C0BF);
    combo.dropdown.setStyle("color",0xC4C0BF);

  • Powershell Script Dropdown List Passes Argument to Expiration Date

    Hello,
    I am trying to configure this script so that the user has a choice to make.  If the user chooses "FTE", then the script proceeds to the next function.  If the user chooses "Contractor", he is then taken to the expiration date portion
    of the script.  How do I configure this script to flow in that manner?
    # Edit This item to change the DropDown Values
    [array]$DropDownArray = "FTE", "Contractor"
    # This Function Returns the Selected Value and Closes the Form
    function Return-DropDown {
    $Choice = $DropDown.SelectedItem.ToString()
    $Form.Close()
    #Write-Host $Choice
     $MyChoice = $Choice
     #Write-Host $MyChoice
     $Script:Choice = $DropDown.SelectedItem.ToString()
     $Form.Close()
    [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") |Out-Null
    [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") |Out-Null
    $Form = New-Object System.Windows.Forms.Form
    $Form.width = 300
    $Form.height = 150
    $Form.Text = ”User Type”
    $DropDown = new-object System.Windows.Forms.ComboBox
    $DropDown.Location = new-object System.Drawing.Size(100,10)
    $DropDown.Size = new-object System.Drawing.Size(130,30)
    $DropDown.DropDownStyle = "DropDownList" # This style of combobox will prevent blank
    # item selection.
    ForEach ($Item in $DropDownArray) {
    $DropDown.Items.Add($Item) | Out-Null # Added pipe to out-null to prevent index from
    # showing up in the console window.
    $DropDown.SelectedIndex = 0 # Select the first item by default
    $Form.Controls.Add($DropDown)
    $DropDownLabel = new-object System.Windows.Forms.Label
    $DropDownLabel.Location = new-object System.Drawing.Size(10,10)
    $DropDownLabel.size = new-object System.Drawing.Size(100,20)
    $DropDownLabel.Text = "Items"
    $Form.Controls.Add($DropDownLabel)
    $Button = new-object System.Windows.Forms.Button
    $Button.Location = new-object System.Drawing.Size(100,50)
    $Button.Size = new-object System.Drawing.Size(100,20)
    $Button.Text = "Select an Item"
    $Button.Add_Click({Return-DropDown})
    $form.Controls.Add($Button)
    $Form.Add_Shown({$Form.Activate()})
    $Form.ShowDialog() | Out-Null # out-null to prevent "OK" or "Cancel"
    # from appearing in the console window
    #Set the expiration date
    $ans=Read-Host 'What is the expiration date of this account? (mm-dd-yyyy)'
    $expDate=[datetime]$ans
    HELP Read-Host -Full
    ##End of Script
    Thanks in advance for your help.

    Here is an example of one way to do this in a form:
    [void][reflection.assembly]::Load("System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
    [void][reflection.assembly]::Load("System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
    [System.Windows.Forms.Application]::EnableVisualStyles()
    $form1 = New-Object 'System.Windows.Forms.Form'
    $datetimepicker1 = New-Object 'System.Windows.Forms.DateTimePicker'
    $radiobuttonFTE = New-Object 'System.Windows.Forms.RadioButton'
    $radiobuttonContractor = New-Object 'System.Windows.Forms.RadioButton'
    $buttonOK = New-Object 'System.Windows.Forms.Button'
    $InitialFormWindowState = New-Object 'System.Windows.Forms.FormWindowState'
    $radiobuttonContractor_CheckedChanged={
    if($radiobuttonContractor.Checked){
    $datetimepicker1.Visible=$true
    }else{
    $datetimepicker1.Visible=$false
    $Form_StateCorrection_Load=
    #Correct the initial state of the form to prevent the .Net maximized form issue
    $form1.WindowState = $InitialFormWindowState
    $Form_Cleanup_FormClosed=
    #Remove all event handlers from the controls
    try
    $radiobuttonContractor.remove_CheckedChanged($radiobuttonContractor_CheckedChanged)
    $form1.remove_Load($FormEvent_Load)
    $form1.remove_Load($Form_StateCorrection_Load)
    $form1.remove_FormClosed($Form_Cleanup_FormClosed)
    catch [Exception]
    $form1.Controls.Add($datetimepicker1)
    $form1.Controls.Add($radiobuttonFTE)
    $form1.Controls.Add($radiobuttonContractor)
    $form1.Controls.Add($buttonOK)
    $form1.AcceptButton = $buttonOK
    $form1.ClientSize = '508, 262'
    $form1.FormBorderStyle = 'FixedDialog'
    $form1.MaximizeBox = $False
    $form1.MinimizeBox = $False
    $form1.Name = "form1"
    $form1.StartPosition = 'CenterScreen'
    $form1.Text = "Form"
    $form1.add_Load($FormEvent_Load)
    # datetimepicker1
    $datetimepicker1.Location = '160, 91'
    $datetimepicker1.Name = "datetimepicker1"
    $datetimepicker1.Size = '200, 20'
    $datetimepicker1.TabIndex = 3
    $datetimepicker1.Visible = $False
    # radiobuttonFTE
    $radiobuttonFTE.Location = '33, 57'
    $radiobuttonFTE.Name = "radiobuttonFTE"
    $radiobuttonFTE.Size = '104, 24'
    $radiobuttonFTE.TabIndex = 2
    $radiobuttonFTE.TabStop = $True
    $radiobuttonFTE.Text = "FTE"
    $radiobuttonFTE.UseVisualStyleBackColor = $True
    # radiobuttonContractor
    $radiobuttonContractor.Location = '33, 87'
    $radiobuttonContractor.Name = "radiobuttonContractor"
    $radiobuttonContractor.Size = '104, 24'
    $radiobuttonContractor.TabIndex = 1
    $radiobuttonContractor.TabStop = $True
    $radiobuttonContractor.Text = "Contractor"
    $radiobuttonContractor.UseVisualStyleBackColor = $True
    $radiobuttonContractor.add_CheckedChanged($radiobuttonContractor_CheckedChanged)
    # buttonOK
    $buttonOK.Anchor = 'Bottom, Right'
    $buttonOK.DialogResult = 'OK'
    $buttonOK.Location = '421, 227'
    $buttonOK.Name = "buttonOK"
    $buttonOK.Size = '75, 23'
    $buttonOK.TabIndex = 0
    $buttonOK.Text = "OK"
    $buttonOK.UseVisualStyleBackColor = $True
    #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($Form_StateCorrection_Load)
    #Clean up the control events
    $form1.add_FormClosed($Form_Cleanup_FormClosed)
    #Show the Form
    $form1.ShowDialog()
    ¯\_(ツ)_/¯

  • Combobox scrollbar width  and item list padding

    Hello, I am running an application on a touchscreen, and the default combobox is way too small to be used.
    I have tried skinning the combo box component to make the scrollbar wider, it didn't work.
    I tried combobox.dropdown.horizontalScrollBar.width = 300;
    Nothing happens.
    Is there any way to do this?
    Also, I needed to increase to font size of the list items, which I was able to do. However now all the list items are squished fairly close together. Is there a way to widen each list item/ add padding around the text?
    Or heck, is there even a custom combobox control that will allow me to do this? I really need this, but can't figure it out.

    Hi Siva/Viswas,
    Problem got solved.I fixed width in pixels and the width does not change.
    But as Viswas said,if the text is long then the user will not be able to see entire text..How to solve this problem other than showing a different text to user(As the user does not want that way).
    I tried by dynamically creating a tool tip i.e, i bound the tool tip of list box to a attribute and i was setting the attribute to the selected text in list box.But unfortunately tool tip does not show up.Do you guys worked on dynamically generating a tool tip or else can you tell how to solve this problem.
    Thanks and Regards,
    Pradeep

Maybe you are looking for