Minimise and maximise buttons in Flex Store

Hi,
I'm writing a Flex app and would like to implement something
similar to the Flex Store's minimise and maximise buttons. I know
how to add an icon using titleIcon in the Panel properties but I
would like to add two buttons to the panel header. Can anyone give
me any ideas on how to add these buttons to the header of the
panel?
Thanks in advance,
Pete

Hi
I'm trying to do something similar and I'm looking at the
code from Flexstore to work out what is going on.
The problem I'm having is I keep getting:
"Access of undefined property titleBar"
"Access of undefined property statusTextField"
"Access of undefined property titelTextField"
Is there something obvious that I'm missing? I'm really new
to Flex and it could be something obvious.
I wondered if it was something to do with the changes made
for the final release, but when I downloaded the Flexstore source I
got it to work locally.
Here is the code I'm using that is sat inside a panel
component:
<mx:Script>
<![CDATA[
import mx.core.IUIComponent;
import mx.effects.Move;
import mx.containers.Panel;
[Bindable]
private var titleButtons:CatalogTitleButtons;
override protected function createChildren():void
super.createChildren();
titleButtons = new CatalogTitleButtons();
titleBar.addChild(titleButtons);
override protected function
layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void
super.layoutChrome(unscaledWidth, unscaledHeight);
titleButtons.width = unscaledWidth / 2;
titleButtons.height = titleButtons.measuredHeight;
titleButtons.move(statusTextField.x - titleButtons.width,
titleTextField.y);
]]>
</mx:Script>
Any advice would be great.
Thanks
Elsa

Similar Messages

  • How do I get my Close, Minimise and Maximise Buttons to Show

    When I first installed Photoshop CS6 Extended on my Mac it had a bar running along the top that had the program name in it (Photoshop) with the red, orange and green, close, minimise and maximise buttons in it.
    Somehow I have turned this off and the three buttons no longer show. Below is an example picture of the bar I'm wanting to turn on:
    I have the application frame turned on and they still do not show. I'm sure the answers simple, however any help would be hugely appreciated.

    Would this help solve the following issue:
    Like most people, I work with most of the CS6 programs open at the same time.  If I tweak a graphic from Photoshop and then return to Illustrator or InDesign to see how the updated graphic will appear, my usual mode of doing so would be to hit "Command-W" to close the Photoshop window/work environment/application frame - or whatever one calls it.  Then, I'd click on the program beneath to see the update occur.  In CS5, that worked just fine.  Command-W and Photoshop was out of the way.  With CS6, I hit Command-W and the opaque application frame/workspace is still there and I can't seem to get it out of the way without using Control/Comman/M.  I figure that I'm missing something rather elementary.  The new GUI of Illustrator and Photoshop is bad enough (flat Windows mess) without this little annoyance.
    Thanks.
    PS: Well, it was my "minimized" brain.  I had "Application Frame" selected in the Window menu.
    PPS: the GUI is still Windows-Ugly.  Any ideas?
    Message was edited by: SlamDesi

  • My system recovered from a serious error recently. During the error, Firefox crashed. Since I have restarted my syetme and Firefox, I cannot use any of the toolbar options such as:close, minimise and maximise. Also, when I right click, an outline of a box

    My system recovered from a serious error recently. During the error, Firefox crashed. Since I have restarted my system and Firefox, I cannot use any of the toolbar options such as:close, minimise and maximise. Also, when I right click, an outline of a box appears without the visible options although on some occasions they appear after 10 seconds or so. Can you advise me of what to do to cure this problem please or is it a case of using a Windows tool such as System Restore?
    == This happened ==
    Every time Firefox opened
    == 22nd May 2010

    I HAVE NOW SOLVED THE PROBLEM BY RUNNING WINDOWS REGISTRY REPAIR TOOL WHICH HAS OBVIOUSLY REPAIRED CORRUPT REGISTRY FILES.

  • Maximise,minimise and close button of Jframe to be disabled

    Please help me out to to disable the close,maximise and minimise button of Jframe

    Use the
    setUndecorated(boolean ); method of JFrame
    or
    Use the Dialog
    or
    set resizable false

  • Minimisation and controlling button clicks in swings

    Hello All,
    I had some problem in swings.
    Here I am giving my problem in detail.
    1st ......
    On one window named as "Main Screen" contains two buttons.
    Say Button1 and Button2.
    By clicking on Button1 another window will be opened named as "Sub Screen1".
    By clicking on Button2 another window will be opened named as "Sub Screen2".
    I need clarifaction on minimisation.
    If I minimise my main window "Main Screen" all windows which are opened have to be minimised.
    What I mean is if Main window is minimised all subwindows are also to be minimised.
    2nd ........
    When Button1 window "Sub Screen1" is opened by clicking again on Button1 another window is opening.
    How to control the next click until the first have to close.
    If any one will have any idea please give reply as soon as possible.
    ThankYou All,
    Rajiv.V

    Hi Rajiv,
    I assume you are using JFrames in your app.
    You could use the Windowiconified method for your MainScreen and call SubScreen1.setState(Frame.ICONIFIED) and SubScreen2.setState(Frame.ICONIFIED). When you have pressed Button1 the instance of SubScreen1 is not null so you can do sth like this:Button1_actionPerformed(ActionEvent e()){
      if (SubScreen1 == null)
         SubScreen1 = new Frame(..);// or new SubScreen()
      else
         SubScreen1.setvisible(true);
    }Phil

  • User account control message displays every time, minimise and close buttons not displaying, pages slow to load

    Every time I try to open a page, I get a user account control message asking for permission to proceed. I have tried to adjust the frequency of this but have been unsuccessful. This has only started to occur recently.
    Pages are slow to load and do not properly display the close, minimise etc buttons in the top right corner (these are blacked out)
    I have tried to reset firefox. This does not fix the problem.
    The problem does not occur using Internet Explorer

    There are several things to try.
    Some problems occurs when your Internet security program was set to trust the
    previous version of Firefox, but no longer recognizes your updated version as
    trusted. Now how to fix the problem: To allow Firefox to connect to the Internet
    again;
    * Make sure your Internet security software is up-to-date (i.e. you are running the latest version)
    * Remove Firefox from your program's list of trusted or recognized programs, then add it back. For detailed instructions, see
    '''[https://support.mozilla.org/en-US/kb/configure-firewalls-so-firefox-can-access-internet?esab=a&s=Configure+firewalls+&r=0&as=s Configure firewalls so that Firefox can access the Internet.]''' {web link}

  • When open Mozilla it displays only an a blank screen,the only visual is the minimise and close buttons

    Operating system:Windows 7 64.b
    Ram 2gb:
    This bug is generated every time i try to open Mozilla ,it looks like its open a window but everything is black or with some.Everything is invisible except the closing and minimise button at the top-right corner!Its just like a big blank window with three buttons!

    Hi Philip
    The thing is that i don't have access to any option of the mozilla,safe mode also doesn't work.They haven't been any updates on the computer just start behave that way

  • Portlet minimise/maximise button url code

    Hi,
    I need to change the minimise and maximise button url for the portlet.
    I need to include the page label to the url. Right now it takes only the window label which causes problems when I click the browser back button and then minimise/maximise a portlet on that page.
    Could anyone let me know where I can locate this code.
    Thanks,
    RK

    To change minimize/maximize button images navigate to
    framework\skins\path\to\images( if using default navigate framework\skins\default\images) and replace the image files with the images required.
    The following is the kind of url when I run sample portals:
    http://localhost:7001/samplePortal/*.portal?_nfpb=true&_pageLabel=page_1
    I see that the url has pageLabel. I dont understand your context. Can you elaborate??
    --SJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Dreamweaver CS5.5 Slow down when minimising and loading pages.

    Hi there
    I'm having a really strange problem with Dreamweaver CS5.5
    I'm currently in the process of building a CMS for a client and I am experience slow down in Dreamwever when opening and closing certain pages, it also causes slow down/hanging when opening and minimising Dreamweaver itself if these certain pages are open at the time. Which starts to get very annoying when you're swapping between Photoshop and Dreamweaver all the time...
    I narrowed it down to a CSS file causing the slow down/hanging. This being the main stylesheet for the CMS... admin.css
    When I comment out the CSS file Dreamweaver minimises and maximises quickly, and the page in question opens fast.
    The stylesheet is about 900 lines long at the moment, but I've got php and javascript files (and also other CSS files) which are much longer and none of them cause slow down/hanging.
    I've looked myself but from what I can see all of the CSS is valid.
    Any ideas guys?
    Thanks in advance

    I can't explain this at all, but I've solved it.
    I changed the style below:
    @media only screen and (min-width: 35em) {
    .ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
    .ir br { display: none; }
    .hidden { display: none !important; visibility: hidden; }
    .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
    .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
    .invisible { visibility: hidden; }
    /* Clear Floated Elements + Fix */
    .clear {clear:both; display:block; overflow:hidden; visibility:hidden; width:0; height:0;}
    .clearfix:before,.clearfix:after{content: '.'; display: block; overflow: hidden; visibility: hidden; font-size: 0; line-height: 0; width: 0; height: 0;}
    .clearfix:after {clear: both;}
    .clearfix {zoom: 1;}
    /*END DONT CHANGE*/
    To this:
    @media only screen and (min-width: 35em) {
    .ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
    .ir br { display: none; }
    .hidden { display: none !important; visibility: hidden; }
    .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
    .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
    .invisible { visibility: hidden; }
    /* Clear Floated Elements + Fix */
    .clear {clear:both; display:block; overflow:hidden; visibility:hidden; width:0; height:0;}
    .clearfix:before,.clearfix:after{content: '.'; display: block; overflow: hidden; visibility: hidden; font-size: 0; line-height: 0; width: 0; height: 0;}
    .clearfix:after {clear: both;}
    .clearfix {zoom: 1;}
    /*END DONT CHANGE*/
    Moved it outside of the media query. It was put there by mistake by the looks of it.

  • Hi, i've just bought my first macbook pro, i just installed office mac and when i open the page i cannot see the minimise maximise and close buttons as it's hidden behind the apple menu bar, also when it's at full screen, those buttons do not appear

    hi, i've just bought my first macbook pro, i just installed office mac and when i open the page i cannot see the minimise maximise and close buttons as it's hidden behind the apple menu bar, also when it's at full screen, those buttons do not appear

    Try to edit the size of the page using the sides of the page, or if you are desperate, force quit using command-Q. In full screen put your cursor on the top of the page, and the menu bar will appear. If it doesn't keep "pushing" it up until it does. Hope this helps!

  • Hey my lock screen button and home button jammed it doesnt work.How can I fix this problem.But first of all I live in Turkey.But my Iphone 4 is bought from apple store victoria gardens CA.Do I have warranty in Turkey ?

    Hey my lock screen button and home button jammed it doesnt work.How can I fix this problem.But first of all I live in Turkey.But my Iphone 4 is bought from apple store victoria gardens CA.Do I have warranty in Turkey ?

    The warranty is only good in the country of purchase.

  • Where is the "accept" button for iTunes Store Terms and Conditions on the iPad?

    Where is the "accept" button for iTunes Store Terms and Conditions?  Can't use iTunes on my iPad without accepting conditions.

    Which tab in the iTunes app are you in ? If you are in the Downloads tab then the Ts & Cs link shows if you don't have any outstanding downloads - your download and synced films and TV shows should be in the Videos app and your music, audiobooks and audio podcasts in the Music app

  • Mavericks won't install, the button in App Store is blank and non-responsive.

    This is extremely frustrating, and I have read every website trying to answer this issue. None of their problems match mine.
    I tried to download Mavericks yesterday. It appeared to download as normal, with the icon in launch pad, but the progress bar never moved. I cancelled the download, and tried to restart it. The download button is non-responsive. I've tried going to the store tab, clicking unfinished downloads, and it says all downloads are complete.
    When I go to purchases, Mavericks is listed under "other downloads," but the button is solid black with no text, e.g. download or install, and is non-responsive. Clicking the button does nothing.
    I have tried using CCleaner to clean the app store's cache, restarting the computer with a full shutdown, quitting and restarting App Store, etc. Nothing works.
    If I close and reopen App Store after a full shut down, Mavericks will disappear from the purchases menu. If I go to Mavericks, click "free upgrade," then button changes to "install." When I click install, nothing happens. Mavericks reappears under the purchases menu with its button, again, completely black with no text. The button is non-responsive.
    Having a $2,500 Mac, I have to say that I am extraordinarily upset with the shoddy work of Apple over the past few years. For $2,500 I expect the product to work.

    Actually, it appears to have started downloading, even the the purchases tab still doesn't reflect it.
    Try what I did, typing "sudo nvram boot-args="-x"" (include the quotations around the -x), and then entering your account password.
    Reboot the system, which will cause it to do a full reboot (you'll find your mac operates very slowly). Log into your account, then try hitting "free upgrade" and "download" from the Mavericks page in app store (not the purchases tab). It will ask you for your Apple ID and password, then it *should* automatically take you to launch pad.
    If the download doesn't seem to be progressing, press the icon in launch pad to pause it. Exit launch pad and scroll down in App Store to 'free apps" on the right side. Click to download one of them, enter your password and Apple ID as usual, and see if it downloads. Once finished, hit the Mavericks icon again to unpause it. It should start then. It's clearly a very large install, so over the past thirty minuites the progress bar has moved roughly a milimeter.

  • Just installed InDesign on my Mac and there are no minimise or exit buttons and...

    Just installed InDesign and there are no minimise or exit buttons and the viewing window seems to be bugged and see through. Any one have any idea? See Image. Very odd, tried doing a cmd+alt+shift open and still no joy.
    Thanks

    [Moving the discussion to InDesign Forum]

  • My Ipod isn't charging , even when I do hold down the home and lock button to resttore it . Its plugged in but I dont know what to do next . Apple Store isnt a opioion .

    My Ipod Touch is not charging . I even plugged it into my computer . It comes up not charging and it Itunes . Apple Store is not a opioion . What do I do ?

    Try a hard reset.
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

Maybe you are looking for