Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-21620

Spark TitleWindow should add a showCloseButton property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • Spark: TitleWindow
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Try and compile the following <s:TitleWindow showCloseButton="false" />

      Actual Results:
      Compiler error. There is no showCloseButton property.

      Expected Results:
      Add showCloseButton property

      Workaround (if any):
      change the visible property on the closeButton skin part (shown below) or create a whole new custom skin.

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/halo">

      <fx:Script>
      <![CDATA[
      protected function chckBx_changeHandler(event:Event):void

      { ttlWndw.closeButton.visible = chckBx.selected; }

      ]]
      >
      </fx:Script>

      <s:TitleWindow id="ttlWndw" title="The quick brown fox jumps over the lazy dog" width="

      {sldr.value}

      " height="200">
      <s:controlBarContent>
      <s:CheckBox id="chckBx" selected="true" change="chckBx_changeHandler(event);" />
      <s:HSlider id="sldr" minimum="200" maximum="300" value="300" />
      </s:controlBarContent>
      </s:TitleWindow>

      </s:Application>

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: