Making popup menus stop painting over the current window

I'm making up a game that relies on a regular menu bar for it's menus. But for some reason the drop-down menus insist on rendering themselves over the current window instead of creating a new object over it like it should. This causes them to vanish right after opening because the game is constantly refreshing the area it paints over, but if I reduce the window drastically in a way there's no room to paint the drop-down menus over the existing area, they appear normally because a new window is created to display them.
How do I ferce it to always create a new window?

Jack Mcslay wrote:
I'm making up a game that relies on a regular menu bar for it's menus. But for some reason the drop-down menus insist on rendering themselves over the current window instead of creating a new object over it like it should.No it shouldn't, and your saying so doesn't change anything.
This causes them to vanish right after opening because the game is constantly refreshing the area it paints over,... implying that you have a wrong approach to custom painting
but if I reduce the window drastically in a way there's no room to paint the drop-down menus over the existing area, they appear normally because a new window is created to display them.As expected
How do I ferce it to always create a new window?Wrong question. Ask how to perform custom painting correctly -- which is answered in the tutorial suggested twice.
db

Similar Messages

  • On websites which open pop-under windows, Firefox 4 seems to be opening these over the current window instead of under. Is this a bug or an intentional feature?

    I have noticed a problem on FF4 when browsing sites that open pop-under windows on a user action. With all other browsers (including FF3) these open underneath the main window, but on Firefox 4 they open over the top - acting as pop-ups and not pop-unders.
    While pop-unders are annoying, it is even more annoying to have them keep appearing as pop-ups instead.
    I have run some tests and the following code successfully opens a pop-under on all browsers except Firefox 4.
    It appears that window.focus() is not correctly bringing the current window to the top.
    Example code:
    var w = window.open('http://www.mydomain.com/', 'mywin', 'width=400,height=300,toolbar=1,menubar=1,resizable=1,scrollbars=1');
    if(w){
    w.blur();
    window.focus();
    }

    This is normal. Firefox 4 has disabled the default "window flip".
    - go to adress about:config
    - accept and search dom.disable_window_flip set to false;
    And popunder, blur/focus javascript function will be back ;)

  • Stop Painting over JComboBoxes?

    I'm programming a game in Java (MasterMind) that uses simple graphics, and JComboBox to get inputs. The problem is that the graphics "paint over" the options in my JComboBoxes. When I mouse hover over the options, the problem fixes itself, but the initial graphics getting in the way is annoying. My code is kind of a mess so far, so it would probably be better to just post a screenshot, since I haven't made any sense so far:
    http://home.comcast.net/~falcorthedog/untitled.JPG
    As you can see, the colored pegs get in the way of my selections. Any way around this? Any help would be greatly appreciated... my project is due Tuesday! Thanks in advance!

    From what I've seen, I supose you altered the paint(Graphics) method of the underlying JPanel which also contains the JComboBox. Probably your code looks like this:
    public void paint(Graphics g){
    super.paint(g);
    //your stuff, painting the circles etc...
    }First of all, it would be better to overwrite paintComponent(Graphics) in this case, which should already fix your problem, as this method will only affect those parts of the panel not covered by other components (well, it's not what happens, but the effect is the same). Alternately you could simply change the drawing order by making the call to super.paint(g) at the end of your paint method - telling java to paint all your stuff, then the JComboBox on top of it.
    sarcan

  • My imessage stopped working over the wknd when I went to check if it was on it had switched off on its own. Now I try to turn my imessage back on and its giving me some kind of server error. Any suggestions?

    My imessage stopped working over the wknd when I went to check if it was on it had switched off on its own. Now I try to turn my imessage back on and its giving me some kind of server error. Any suggestions?

    Ok actually my mistake it says "an error occurred during activation. try again" I spoke with apple tech support right now and she mentioned they are having trouble with there servers.  Do you by any chance know what the restrictions area means? Should that be activated or deactivated, does that make a difference?

  • I don't have a "save as" option only a "save a version".  This only saves over the current document without letting me rename it.  I recently upgraded to the lion OS

    I don't have a "save as" option in pages only a "save a version".  This only saves over the current document without letting me rename it.  I recently upgraded to the lion OS.

    Yvan KOENIG (VALLAURIS, France) vendredi 6 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please :
    Search for questions similar to your own
    before submitting them to the community

  • My notes have stopped syncing over the air, why?

    my notes from outlook have stopped "syncing " over the air, as apple describes..how do I correct this
    Thanks

    These are the last two things I can think of to try on the iPad at this point - two very basic troubleshooting tips.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    If these do not work, my only other suggestion would be that some setting went awry in your Outlook client. That's merely a guess, but I assume that it is possible. I don't use Outlook so I have nothing to offer with regard to what the problem may be if it is within Outlook.

  • Does the new Thunderbolt display have any advantages over the current 27" iMac

    Other than being 3kg lighter and including a sub (2.1 stereo system) rather than just stereo speakers, are there any advantages of the new Thunderbolt display over the current 27" iMac?
    We need a new desktop very soon, and will eventually upgrade to an Mac Pro (not until a post Lion version comes out with Thunderbolt built in).  We were contemplating a MacMini Server and a Thunderbolt display, but for only a little extra (weight and cash) we could get a more powerfull 27" iMac.  Are there any benefits of the Thunderbolt display that are not included in the top end 27" iMac?  I'm assuming it's just the same 27" LED backlit TFT LCD with IPS...
    In the end we would probably end up using the iMac or display as a display for a Mac Pro (we're photographers), so if there are significant benefits of the Thunderbolt Display, we'll just get it with the Mini as a stopgap.

    The only real advantage of the new 27" ACD is that you can easily move it from one unit to another (Mini to MBP to Pro, etc).  If you bought a 27" iMac you could always hook up another display to the iMac and run dual monitors fairly easily.
    The advantage of the Pro is that you can add a bigger video card, lots more RAM and up to 4 hard drives.  If you plan on buying a Pro as soon as it comes out, get the Mini, if not get the iMac (it will save you a bit of space over a ACD and a Mini).  I think the real question is, what do you think you are going to use more in the future.
    And yes, the 27" iMac and the 27" ACD use the same IPS screen.

  • Content open up in the current window

    When I add content in the content area but when I click the link it opens up in the current window
    s oppose to if it had been URL Link there is an option to open up in current window.
    As I was searching in metalink I found somebody from Oracle had posted this :
    ### What were you trying to accomplish when the problem occurred? ###
    Author : Jerry Silver Type : N/A
    Date : Jun 6, 2001 11:22 PT
    Here's a solution for Portal 3.0.8 or later that allows you to open a file in
    a new browser window. It requires that you create a custom item type, and use a
    procedure to display a link to the file.
    1. Create the following procedure. You can create it in any schema, but the
    schema has to have select privilege on the view 'WWSBR_ALL_ITEMS' in the portal
    schema. In this example, the portal schema is PORTAL30. If you're running
    version 3.0.8, you'll also need to apply the patch to bug 1724250.
    Create or Replace PROCEDURE OPEN_FILE (p_itemid IN NUMBER) as
    fileURL varchar2(1024);
    baseURL varchar2(256) := '/pls/portal30/docs/';
    begin
    select baseURL | | filename into fileURL
    from portal30.wwsbr_all_items
    where id = p_ItemId;
    htp.p ('Open File');
    EXCEPTION
    when NO_DATA_FOUND then
    htp.p('Document not found or access denied');
    when others then
    htp.p(sqlerrm);
    end;
    The procedure generates a link to the item filename with a target of "_blank",
    which opens the file in a new browser window. Replace the baseURL attribute
    value with the correct Database Access Descriptor (DAD) and Document Access
    Path ("/docs") for your site.
    2. Grant execute on the procedure to the portal public schema. The name of this
    schema is <portal schema>_PUBLIC. So if your portal schema is PORTAL30, grant
    execute on the procedure to PORTAL30_PUBLIC.
    3. Create a custom item type, using the base item type of "File". I recommend
    that you create the type in the Shared Objects content area, so it can be used
    in other content areas (from the Navigator, go to the Content Areas tab, select
    Contents for Shared Objects, Custom Types, and Item Types - Create). Edit the
    Text continued in next action...
    new type and go to the Procedures tab.
    4. In the Procedure Call Properties, enter:
    Type: PL/SQL
    Procedure Call: <your procedure schema>.OPEN_FILE
    Link Text: Open File (it doesn't matter what you put here - it only displays if
    "Display Procedure Results With Item" is unchecked.)
    Check "Display Procedure Results With Item"
    5. Under "Pass Attributes as Parameters", enter:
    Attribute: Item Id
    Pass As: p_itemid
    (Notice how you can pass most of an item's attributes to a procedure. You can
    take advantage of this feature to write procedures that give you precise
    control over the rendering of your items).
    6. In the properties for the content areas in which the new type is to be used,
    go to the Items tab. Specify that you want the new type to be visible. You may
    want to hide the base File item type, so users won't be confused by two
    different item types for files.
    7. Edit the folder style for the content area. Go to Folder Layout. Edit the
    region properties for each region in which you will be using the new item type.
    For each region, replace "Display Name or Image" with "Display Name". "Display
    Name or Image" will render the Display Name as a link to your file that opens
    the file in the same browser window. "Display Name" simply renders the display
    name as text, with no link.
    8. Now you can create items of the new item type. Each item's Display Name will
    appear next to a link that says "Open File". Clicking the link will cause the
    file to open in a new browser window.
    Hope you find this useful.
    But after doing this the issue with this still I am able to see this as link on the page but when I
    click on it opens up in current window. But when I click on the header bar that
    displays Content Area name then it takes to the content are manager. Here there is
    a link that shows OPEN_FILE link and then it opens up in a new window.
    But I don't want user to go inside the content manager to see the content to open up in a new window.
    I want this same functionality to be there on the page rather then in the content area navigator
    Thanks

    fuscia wrote:
    stonecrest wrote:sh -c "cd %f && urxvt"
    can't help being ignorant: what is that?
    A shell script for entering the working directory and launching urxvt.
    Try it and see if it actually works.
    I think I tried something like that but wasn't successful...
    Last edited by moljac024 (2008-09-26 12:28:43)

  • Firefox opens new windows under the current window

    Whenever I right-click on a link and tell it to open in a new window, the window opens behind the current window. I have selected "When I open a link in a new tab, switch to it immediately". That used to solve this problem but seems to have stopped working.
    I have read all the threads on this problem, including the one saying it's caused by Flash.
    However, I have checked in safe mode and I still get the same problem.
    This started happening around Christmas on three computers. Since then, because of problems getting a driver to install for a new peripheral, I have done a fresh install of Windows 7 64 bit, reinstalled FF newest version and restored my profile, but get the same problem. At this point I have started in the FF safe mode which should disable all the add-ons, but the same thing still happens. I have also reset FF using the reset option in the help menu. It doesn't always happen, but it can happen when flash is already running in another window.
    Are there a series of steps I can take which will verify that the fault is caused by Flash? I had thought the safe mode would do that.
    Honestly, this is enough of a problem to make me switch browsers, and I don't even like any of the other browsers. If you can offer any other suggestions I would really appreciate it.

    Safe Mode actually doesn't disable Flash. It's a little confusing: it disables extensions, but not plugins, so "Restart with Add-ons Disabled" is really not a very good description.
    If you want to test with Flash disabled, you can set it to "Never Activate" temporarily. Open the Add-ons page using either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column that lists the categories, click Plugins. You're looking for "Shockwave Flash." Change it to "Never Activate."
    You can keep this tab open during your testing. If you close and re-open the Add-ons page, Shockwave Flash will fall to the bottom with the other disabled plugins.

  • How can I get a query in the search field to open in a new tab or new window from the current window?

    How can I get a query in the search field to open in a new tab or new window from the current window?

    If you are searching via the Search Bar on the Navigation Toolbar, this preference can be changed to have searches there open in a Tab.
    Type '''about:config''' in the Address Bar and hit Enter. Then answer "I'll be careful". Type this pref in the Search at the top.
    '''browser.search.openintab''' = double-click to toggle to '''true'''

  • How can I access the Tabs page in the current window, without opening a new tab?

    I like the new Tabs page. I'd like to open it in the current window, without the need of opening a new tab or window.
    Is this possible?

    You can make a bookmark and set the location to about:newtab to open that page in the current tab.

  • Detecting the current window in Forms 4.5

    Hello,
    Is there a way to detect the current window that is in use? I want to find the window's x/y coordinates to center another form or LOV on top of it. Thanks for any help you can provide.
    Frank

    To help make it more clear... If I have a 'root_window' and I launch an LOV or another form with a button on the window, I want to pass in the form or LOV (to be centered) into a procedure pCenterLOV('myLOV') without having to pass in the window name too. Hope this makes more sense.
    Thanks again for your time.
    null

  • Why does Firefox keep opening new Windows rather than a new Tab in the current window?

    I have " Open a new Tab in the current Window" select in Preferences.
    Why then does this version (Version 4) keep opening new Windows, rather than new Tabs in the current Window.
    This feature worked fine in 3.6.1.3, but in Version 4, it is a frigging pain in the rigging!
    C'mon, Mozilla - time for an URGENT update ...

    That issue can be caused by an extension that isn't working properly.
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How can I get any of the search requests to open in a new tab and not the current window. I have just downloaded the new FF8

    In my previous version of FF, whenever I did a search with any search engine the results opened in a new tab. Now with FF8 the results open in the current window which really is inconvenient. How do I get the search results to open in a new tab instead?
    I have Windows xp FF8

    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)
    Use the Filter at the top of the page to locate this pref: <b>browser.search.openintab</b>
    If the value of the browser.search.openintab pref is false then toggle the value to true with a double click on that line.
    See also http://kb.mozillazine.org/about:config

  • What is the system variable to find the name of the current window in S.F

    hi
    what is the system variable to find the name of the current window in S.F

    Hi ,
    SFSY_PAGEWINDOW
    regards,
    Prashant

Maybe you are looking for

  • Keyboard shortcut no longer working in webapp after FF19 was installed

    I work with a company webapp that uses the keyboard shortcut Shift+F9 to populate text boxes. Prior to Firefox version 19 upgrade on my Windows 7 PC, the shortcut worked just fine. After the upgrade, the shortcut stopped working. I have uninstalled i

  • Calculated field in a Report Template

    Hi, I am trying to create a calculated field based on other calculations made in placeholder fields on a report template. If I have the following 2 fields: e.g. A = (1+2), B = (2*3) what is the best way to get C = A div B rather than having to list o

  • Form won't open until SQL Plus finishes querying

    We have Dev.6 Forms patch 5a, NT, Oracle 8.0.5.2.1. If I run a query such as select count(*) from a large table and while this is running I run a form from within form builder the runtime of the form will not come up until SQL PLUS 8.0.5.0.0 returns

  • When I type in the web address I get Method Not Implemented

    then it says GET to/not supported Apache Server @www.thequiltingschool.com Port 80

  • 9i versus 10 g

    Im trying to prepare for the certification but worried if i do 10g will it affect the job opportunity as most of the topics in OCA 9i are not covered in OCA 10g and is made simple as the exam point of view but the widely used is 9i in industry ,isn't