Fixing the position of TitleWindow component.

Hello,
I am trying to create an application which has different pages using Flex. Each page is a Flex Title window.
When I click on an icon in the main application window, another page should open (which is actually a title window).
I am trying to fix the position of title window from moving. I should not be able to drag title window in the browser.
I am trying to find a way but was failing each time
Can you please help me in resolving this problem?
Thank you for your cooperation.
Cheers,
KK

Try using a Panel component instead of TitleWindow.
HTH,
Kenny Yates

Similar Messages

  • How to fix the position of different component?

    Hay all,
    Can anybody tell how to fix the position of any component so that they cant be moved from there initial positiion
    Regards,
    Sharad Agarwal

    Set layout to null and set bounds of the component to whatever you like.

  • How do you fix the position of an object vertically only ("static" position horizontally)?

    I want to fix a "title" bar of a table vertically, but allow it to scroll with the rest of the page content horizontally. At the moment it's position is "fixed" which fixes the position vertically but horizontally too. I would like to have the coloured cells move horizontally with the rest of the table in the case that the browser window is not wide enough.
    Can this be done? If so, how?
    (this picture shows that the horizontal positions are different - would like them to remain in line with each other)
    Sorry if this is a silly question, I've only started using Dreamweaver yesterday... Thank you in advance for any help and advice.

    If you want to align your item horizontally center, left or right (along with other website content), you can put that item within a fixed position container, then align the item within the container however you see fit.
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <div id="container" style="position:fixed; top:0px; height:100px; width:100%; border:1px solid orange;">
         <div id="item" style="width:300px; margin:auto; border:1px solid black">Some Content</div>
    </div>
    </body>
    </html>
    In the simplified example above, the container div is fixed to the top of the page, the item div is also then fixed at the top, however using css, it is  centered to the browser window. The border properties are there for illustrative purposes

  • How to fix the position of JInternal frames added in JFrame

    Hay Frnds, I am having a problem. I have a JFrame ,in which i have added five JInternalFrames. My problem is that i want to fix the position of thaose Internal frames so that user cant move them from one place to other. Is there any way to fix there position. Plz reply as soon as possible. Its very urgent.
    Thanks.

    In Jframe I added one rootPanelI don't know what a rootPanel is or why you think you need to add one.
    The general code should probably be something like:
    frame.add(userPanel, BorderLayout.CENTER);
    frame.add(buttonPanel, BorderLayout.SOUTH);
    frame.pack();Read the section from the Swing tutorial on [Using Layout Managers|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html] for more information and working examples.
    For more help create a [SSCCE (Short, Self Contained, Compilable and Executable, Example Program)|http://sscce.org], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • How to fix the position of JInternalFrames added in JFrame.

    Hay Frnds, I am having a problem. I have a JFrame ,in which i have added five JInternalFrames. My problem is that i want to fix the position of thaose Internal frames so that user cant move them from one place to other. Is there any way to fix there position. Plz reply as soon as possible. Its very urgent.
    Thanks.

    import javax.swing.plaf.basic.*;
            BasicInternalFrameUI internalframeUI = (BasicInternalFrameUI)frame1.getUI();
            internalframeUI.getNorthPane().addMouseListener(new MouseAdapter() {
                public void mouseReleased(MouseEvent evt) {
                    frame1.setBounds(0, 0, frame1.getWidth(), frame1.getHeight());
            });

  • Please help me ! how to fix the position of NSWindow ?

    Hello everybody,
    I have a NSwindowController < NSWindowDelegate > (with windowWillUseStandardFrame implemented) which is supposed to fix the position of my window.
    Except never this method is called ! Nevertheless there is indeed a delegate...
    In fact in the launch of my soft, the system makes little as it wants: it cascades me windows or keeps me the last position of every window.
    I tried to deactivate the cascading, the same problem...
    All the directives concerning the NSWindow seem to be ignored !
    I do not know if it is a pure coincidence, but since I passed of a macBook 13p under 10.6 (XCode 4.0.1) in a mini mac with screen 24p under 10.7 (XCode 4.3), everything seems not to work any more as before ?!
    I wish I can align in the topleft of my screen all my windows (I tried all the concerned methods, the same problem) to loosen me of the resolution of the screen.
    If you have an idea, it will be welcome.
    Thanks you in advance.
    FM.

    OUNAS wrote:
    I find very openly the management of the positioning of a window very complex while it is a basic task !
    Thanks.
    FM
    Bonjour Ounas,
    It is not complex, within Cocoa simple things are easy to implement (and complex are possible). If you find it the other way you made a mistake somewhere.
    In your case I would start by putting a breakpoint in the methods and run the application in Debugg Mode.
    And if :
    - your method is not called
    - your window is 0x0 inside the method
    Closely look in Interface Builder if the connection is correct between your window and its variable in code and if your controller object is well assigned as its delegate. For that just select the window object in the nib and do a right/control click on it to see if it is well connected with controller's objects (alternatively use the Menu -> View -> Utilities -> Show Connections Inspector).
    As for the time to call your "fix" method what about the "- (void)windowDidLoad" call in your window controller subclass ?
    I had lots of troubles to get it called when I started with Cocoa. For it to works you have to be sure the window is well connected in IB to your window variable. And you need to load that f*¿!^ fichue window by any call to it via your controller like
    //After call window is 0x0 in the debugger if you look at it by unfolding the triangles self>controller>NSWindowController
    controller = [[RTWindowController alloc]init];
    //This one will trigger the controller's windowDidLoad method
    [controller showWindow:self];
    //a simple [controller window] is enough to bring it to life
    hth
    laurent

  • How to fix the position of controls, so table expands into whitespace and doesn't push lower controls down (invoice report in SSRS 2005)

    I am designing an invoice report. There are some controls at the top of the report (company logo, date, invoice number etc), followed by a table listing the items in the invoice, followed by some controls at the bottom (subtotals, returns address etc). The report should always print onto a single page.
    I want the controls at the bottom to have a fixed position on the page. There is sufficient whitespace between these controls and the table above for the table to expand to list many items. However whenever it expands it pushes the lower controls down. This results in them spilling onto a second page.
    Is there a way to fix the position of controls and suppress the "gets pushed down when controls above expand" effect?

    Thanks for that. I found a good solution using rectangles here: SQL Server 2005: Report Design Best Practices and Guidelines
    Here's the relevant part (see underlining):
    Using Rectangles to Keep Objects Together
    Rectangles in Reporting Services can be used either as graphical elements or as containers of objects. As object containers, they keep objects together on a page and control how object move and push each other.
    To keep multiple objects together on a page, put the objects within a rectangle. You can then put a page break before or after the rectangle by using the PageBreakAtStart or PageBreakAtEnd properties for the rectangle.
    Using Rectangles to Control Item Growth and Displacement
    Items within a rectangle become peers of each other and are governed by the rules of how peer items are positioned on the page as they move or grow. For example:
    Items will push or displace each other within the rectangle.
    Items will not push or displace items outside the rectangle, because they are not their peers.
    If necessary, a rectangle will grow to accommodate the items it contains.
    You can use this logic to your advantage when dealing with objects that expand. For example:
    If you want to leave a blank space in your report for a table to expand into, group the blank space and the table in the same rectangle. When the table grows, it will push the blank space .
    If you want to prevent a matrix from pushing items off the right edge of the page, put the matrix within a rectangle with blank space to its right. Now, the matrix is no longer a peer to the other item on the page and will not be able to push it until the matrix can no longer be contained within its rectangle.

  • How to fix the position of table columns.

    Hay all,
    Can anybody tell me that how to fix the position of columns in a table.By default the columns can be moved to any position in the table.
    Regards,
    Sharad Agarwal

    table.getTableHeader().setReorderingAllowed(false);this will do...
    Regards,
    Byju

  • Getting the position of a component in a container for repainting

    This may be a stupid question but, I want to get the position of a custom component as it lays in a JFrame. This is needed for a repaint of the special component. getX() and getY() return the origin of the component as it is painted in paintComponent(). How might this be done without messy parameters to an overridden repaint method?
    I need the position so that I can cut out a portion of an underlying background image in the JFrame, so that I can repaint the component's text without clearing away the image or painting over it with a color. If anyone has a better idea, I'm all ears. . .
    Thanks.

    as a near solution to my problem, I have created the following method to locate the exact origin of the custom component:
         private int[] getAbsolutePosition(Component c)
              int pos[] = {this.getX(), this.getY()};
              int x = 0;
              int y = 0;
              Container parent = c.getParent();
              while (parent != null)
                   x = parent.getX();
                   pos[0] += x; // append next width
                   y = parent.getY();
                   pos[1] += y; // append next height
                   parent = parent.getParent();
              pos[0] -= x;     // Remove the position of the parent frame
              pos[1] -= y;     // from the totals.
              return pos;
         }The custom component has 3 JPanels, one Container, and a JFrame beneath it. I remove the JFrame positions becuase they would mess things up. Still, the x values it returns are off by a small but noticible amount. Does anyone know what might account for this?

  • How to fix the positions of two Mail.app viewer windows on the screen?

    I use Mail.app as my main IMAP Mail application. I work with two Mail viewer windows which I position on the screen so that the upper window shows the Inbox and the lower window the Send-box. The windows are aligned to each other and do not overlap. Fine.
    But when I quit Mail.app and open the program again, the windows have forgotten their postions. They "jump" to a new location on the screen. This is in contrast to all other applications I use. Another bad example of window managment is the Mail.app-Preferences window which also does not stick to a given position.
    Is this a (known?) bug or does it only happen on my Macs? (two: one in the office, one at home, both running 10.4.6)

    I guess the difference is that my description text is longer.
    Try this text for a new rule:
    "From: blacklisted senders 1 - move to SPAM-blacklisted-addresses"
    When you want to see this text completely with the default font, you will need to enlarge the Preferences window for "Rules". After that, click to "Signatures": the window stays at the enlarged width. Then click on any of the other areas in Preferences, and the window goes back to the "normal" width. When you then click on either "Signatures" or "Rules", the Preferences window will stay at the "normal" width (resulting in a truncated display of the rule description text).
    Also: when you have moved the Preferences window to a position not covered by a (large) viewer window to access it with a mouse click, close the window and re-open Preferences, it is back to a position covered by the viewer window. Again not accessible when the viewer window is the front-most Mail.app window. BTW: the "Activity viewer" window does a better job in sticking to a fix position.

  • How can I fix the position of Adobe reader?

    I want to keep Adobe reader on the right of the screen. When I return to Adobe reader from a different window, Adobe reader jumps to a different position, sometimes it's half off the screen. Any advice appreciated as this is driving me nuts.

    Try downloading the full installer and using that.
    Link: Adobe - Adobe Reader Distribution

  • Fixing the position of table Display

    Hi ,
    I am trying to develop a RTF template which will generate PDF output. This is a invoice document which may have multiple invoices. For each Invoices there is line Item table and tax summary table. In both table number of rows are dynamic.The requirement here is to have Tax table always in the bottom portion for each invoice. For example if there is only one item in Line item table put sufficient gap between that table and summary table to make sure summary table is displayed at bottom.If there are multiple line items and rows get carried over to next page make sure Tax Summary table is always together and displayed at bottom portion of the page.
    Can anyone suggest how I can achieve that content portion is always fixed in the RTF layout.

    First of all Thanks for your time.
    I am not sure that I would like to remove the sub template.I only sent you a part of template. Based on different condition I need to have different sub templates and call the depending upon the type of Invoice.
    If I remove sub templates template is going to be hard to manage and understand.
    I did try the last -page first approach but the problem with that is it prints the last page header if it is only one page.

  • Fix the position of the movieClip

    Hello all,
    yesterday i got solution from murphy that to load the xml value in a duplocate movie clip.
    Thanks you murphy... now i have done a math class to make it xml value in best fit in my screen.
    1. now  i want o make my moviClip in fixed postion...
    please help me
    for the referance i have attached the source files 1.fla 2. xml and 3. uiDesign image
    Thanks for the advance help

    Hi,
    Try this
         var h = holder_mc._height;
         var w = holder_mc._width;
        best_fit = Math.round((h > w ? (contheight / h) : (contwidth / w)) * 100);
        holder_mc._xscale = best_fit;
        holder_mc._yscale = best_fit;
        holder_mc._y = 500;
    Saransoft

  • How to lock the position of text in XML RTF

    Hi Experts,
    I am working in XML Publisher reports. I am working on invoice report, i have following issue.
    RTF:
    <?for-each:headergroup?> --header
    <?header-data1?> <?header-data2?>
    --inside table
    <?for-each:linegroup?> --lines
    <?line-data1?> <?line_data2?>
    <?end for-each?> --lines
    --end of table
    <?Total?>
    <?end for-each?> --header
    **My requirement is, if i get more line data, it will push the <?Total?> to next page, but i want to fix the position of <?Total?> at same place. if line data is more, just lines should go to next page,but <?Total?> should be in the same position.**
    Kindly help.
    Thanks in advance.

    Hi,
    Thanks for your reply. Actually my requirement is, i have 2 page template.
    RTF:
    page1
    <?for-each:headergroup?> --header
    <?header-data1?> <?header-data2?>
    --inside table
    <?for-each:linegroup?> --lines
    <?line-data1?> <?line_data2?>
    <?end for-each?> --lines
    --end of table
    <?Total?>
    <?end for-each?> --header
    page2
    SOME DESCRIPTION IS THERE RECORDING INVOICE
    Output Using above RTF:
    Page1:
    header-data1 header-data2
    line-data1 line-data2
    Total
    Page2:
    Description.
    page 3
    header-data1 header-data2
    line-data1 line-data2
    Total
    page 4:
    Description.
    After each header and line info, it will print Description.
    Till now it's perfect.
    Requirement: In first page, i need to have a footer, no footer in second page.
    For this, i put a section break in page1, now there is no footer in page2.
    But the output is coming like below.
    page1:
    header-data1 header-data2
    line-data1 line-data2
    Total
    page2
    header-data1 header-data2
    line-data1 line-data2
    Total
    page3
    header-data1 header-data2
    line-data1 line-data2
    Total
    page4
    Description.
    After keeping section break, it's not printing the DESCRIPTION after header and line info page.
    Could somebody help me, how to achieve the DESCRIPTION after header and line info with no footer on second page.
    Kindly help.
    Thanks in advance.

  • The fotos i recieve are up side dawn or the position is left or right, how do i fix this?

    the fotos i recieve are up side dawn or the position is left or right, is there an add on to fix this or must i do something else?

    It would seem that those who send you pictures either don't care about the orientation or are not able to get them the right way up.
    This add-on:
    https://addons.mozilla.org/en-US/thunderbird/addon/image-zoom/
    might be useful to handle the pictures in Thunderbird.
    If the pictures were worth keeping, I'd be inclined to add them to my "My Pictures" folder and sort them out there using a proper graphics tool.
    How to install an add-on: http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html

Maybe you are looking for