Is there a way to get Shells by Z-Order?

If there are more than one Shell for a Display,
some Shells could cover others,
I want to get all Shells by Z-Order: Top first.
Is there a way?
Thanks.
Frank

"Brian de Alwis" <forums-noreply@xxxxxxxx> 写入消息
news:molrbj$nf0$[email protected]..
> I don't see a portable way of accomplishing this. You can determine what
> is the top element (Display#getActiveShell()). You might be lucky and
> find Display#getShells() returns the shells in Z-order, but it's not
> listed as a feature on its doc.
>
> What are you trying to accomplish?
>
Well, since DND does not support dragging position (for drawing a rectangle
just like eclipse does), I implement myDND.
When dragging, I try to count which shell and which composite (with
ImyDropTarget interface) is dragover by mouse.
If shells are not covered to each other, I can get right shell & right
composite,
but if any shell(s) are covered to other(s), I cannot get right shell (and
neither right composite) sometimes.
That's why I need to get shells by Z-order.
Frank

Similar Messages

  • Apart from using a DNS Service, is there a way of getting an Xserve to notify an administrator of a change of external IP address?

    I have an Xserve running 10.5.8 which is I want to notify me when its external IP address changes.
    Is there a way to get it to do this?

    Here is my finished solution using applescript.
    If it is of use to anyone else please feel free to use/improve it.
    global OLD_IP
    global Current_IP
    global IP_text
    set OLD_IP to ""
    set Current_IP to ""
    set Test_text to ""
    ---on run get the current external IP address & set it as the Base IP to compare to
    do shell script "curl -s checkip.dyndns.org"
    set Pub_IP to result
    set OLD_IP to Pub_IP as string
    ---show the address
    display dialog "IP is: " & return & OLD_IP giving up after 2
    on idle
        try
            set IP_Changed to false
            set Current_IP to ""
            ---get the current external IP address
            do shell script "curl -s checkip.dyndns.org"
            set Pub_IP to result
            set Current_IP to Pub_IP as string
            if Current_IP is equal to OLD_IP then
                set IP_Changed to false ---if it is the same then it hasn't changed (false)
            else
                set IP_Changed to true ---if it is different then it has changed (true)
            end if
            if IP_Changed is true then ---if there is a difference the email the change to administrator(s)
                set target_string to Current_IP as string
                set replacement_string_1 to "<html><head><title>Current IP Check</title></head><body>"
                set replacement_string_2 to "</body></html>"
                my replace_and_select(target_string, replacement_string_1, replacement_string_2) ---removes HTML coding
                tell application "Mail"
                    set Mail_to_1 to "[email protected]"
                    set Mail_from to "[email protected]"
                    set theName to "Administrator"
                    set theAddress to Mail_to_1
                    set theSubject to "Server Public IP Address"
                    set theBody to IP_text
                    set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody & return & return}
                    tell newMessage
                        set visible to true
                        set sender to Mail_from
                        make new to recipient at end of to recipients with properties {name:theName, address:theAddress}
                        activate
                        send
                    end tell
                end tell
                set OLD_IP to Current_IP ---set Base IP to the new one ready for next test
            end if
        end try
        return 3600 ---wait one hour before repeating the test
    end idle
    on replace_and_select(target_string, replacement_string_1, replacement_string_2)
        set this_text to target_string as string
        set this_offset to the offset of the replacement_string_1 in this_text
        set this_offset_2 to the offset of the replacement_string_2 in this_text
        set this_offset_3 to this_offset + (length of the replacement_string_1)
        if this_offset is not 0 then
            set IP_text to items this_offset_3 thru (this_offset_2 - 1) of target_string as string
        end if
           return
    end replace_and_select

  • Is there a way of getting a "schedule view" in iCal on a mac and on iPad in the same way you can get one on iPhone?

    IS there a way to get a schedule view of events on a busy day in iCal on the iPad 2 Air and on the Macbook Pro?  I can get this view on an iPhone.

    I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks) or share some of my personal information (scanned copies of my birth certificate, passport, certificates, photos, etc.) on the web.
    If you put your info into the computer and hand it to another, you have to assume they will copy everything.
    Why are you putting scanned copies of valuable identity information into a computer than can be hacked, stolen, lost or compromised by a dirty tech?
    Have you lost your mind?
    Is there a way of finding out what activity has taken place whilst they've had it in their possession?
    No. The tech would just deny it if he did, or tell the truth which the answer would be "NO" in either case.
    The employer won't ask that sort of questions without solid proof, less they make a enemy of the employee and/or risk being sued for defamation of character.
    It's not like they bother to have a team of people watching over his shoulder that he doesn't stick a USB thumb drive of your data into his pocket to take home.
    I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks)
    If it's iTunes music, it has your personal ID embedded into the song files. Most IT techs know this though.
    I appreciate any advice you guys can offer.
    Too late now, all you can do is not worry about it.
    Take your personal info out of the machine and if you need it, burn cd/dvd copies, a few USB thumb drives, Iron Keys or self encrypting external storage drives with key and/or keypad.

  • Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    You can seach the net for solutions like this one http://appletvvpn.com/how-to-connect-apple-tv-2-to-vpn/ another idea is to use a PC as the control and fit that with a wireless card and set up a ad hoc wireless network that the Apple TV uses. 

  • Is there a way to get a log of the bluetooth devices my iphone has been connected to?   My Bluetooth car speaker phone was recently stolen from my car and appears to be on Craigslist.

    Is there any way to get a log of the bluetooth devices my Iphone has been connected to?  I recenly had my Bluetooth Jabra stolen from my car and now a simliar one is on Craigslist.  I'd like to give my connection log to the police before I go and see if my Iphone recognizes the device in question.  Any way to get any type of bluetooth device connection log out of my iphone?

    Your contacts should still be on whatever program you sync your iphone to (i.e. Outlook, address book).
    The iphone is not a stand alone device. It is designed to be synced with a computer. If you have not been syncing with a compatible program, then you are out of luck. Your contacts are not included in the back-up because it is meant to be synced with your computer.
    "Although iTunes backs up most of your iPhone and iPod touch settings, downloaded applications, and other information (Contacts, calendars, notes, images in the Camera Roll), your audio, video, and photo content are not included in the backup."
    http://support.apple.com/kb/HT1414

  • In previous versions of i Tunes you could highlight a song in your library and there would be a genious list on the right side of the screen showing songs like the one highlighted in the library. Now I do not get that list. Is there a way to get this back

    In previous versions of i Tunes I could highlight a song in my library and a genious list would show on the right side of the screen listing songs that were like the one highlighted. Now I do not get that list. Is there a way to get that back?

    Hi again Bob,
    I believe I've found the feature you were speaking about now. Information on the "In the Store" feature of iTunes can be found here:
    Apple - iTunes - Inside iTunes - Using In the Store from within your iTunes Library.
    http://www.apple.com/itunes/inside-itunes/2013/01/using-in-the-store-from-within -your-itunes-library.html
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Is there a way to get a version of the Garage Band app that runs on version 5.1.1?  I have an iPad 1 and can't get any higher iOS.  The App store is telling me that Garage Band only runs on iOS 7.

    Is there a way to get a version of the Garage Band app that runs on version 5.1.1?  I have an iPad 1 and can't get any higher iOS.  The App store is telling me that Garage Band only runs on iOS 7.

    Unfortunately the answer is still no.

  • Is there a way to get iCal to put the time of each event on Monthly view without going in and editing each event?

    When I enter a new event on iCal with the time, it leaves the time off of the Monthly view and in order for me to glance at the times of the day's events I have to click on each event or go into the event and edit it again putting the time on, for it to show.  Is there a way to get it to show without doing this?

    Sorry.  Only after posting did I see that this question has been asked already and the answer given.  Please ignore this post.

  • Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstorepls help

    Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstore...pls help as im only a teenager and have no credit credit and my parents dont trust me with theres and they dont care about the fact that you can set up a password/.... PLEASE SOMEONE HELP I WILL BE SO GRATEFUL... And i would really like to get the iphone 4 but if there is no way of etting apps without your credit number then i would have to get a samsung galaxy s3 maybe ...

    You can set up an Apple ID without a credit card.
    Create iTunes Store account without credit card - Support - Apple - http://support.apple.com/kb/ht2534

  • Probably asked and answered a million times but my laptop died and my boyfriend and i are now sharing a computer when i went to back up my contacts i ended up with all of his! Is there a way to get them off and how do i prevent this from happening again?

    probably asked and answered a million times but laptop died and my boyfriend and i are now sharing a computer when i went to back up my contacts i ended up with all of his? Is there a way to get them off without deleting each one? Also how do i prevent this from happening again? can someone direct me to some info on multiple phones on one itunes i am lost.

    Hey there 79usma79!
    I have a couple of articles for you that can help you troubleshoot the issues you are seeing with iTunes on Windows XP. The first is a general troubleshooting article, which can be found right here:
    iTunes for Windows XP: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/TS1421
    This article can help you find out if there are any conflicts between your copy of Windows XP and iTunes, and can tell you what to do if there are. Before going down the troubleshooting route though, you should take a look at this article, which can help you back up your entire iTunes library to an external hard drive, so if this issue is recurring, you will be able to restore from that backup and will not have to worry about losing your playlists or music again:
    iTunes: Back up your iTunes library by copying to an external hard drive
    http://support.apple.com/kb/HT1751
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Is there a way to get the voice memos from my iPhone on to my pc?

    Is there a way to get the voice memos from my iPhone on to my pc?

    See http://www.tech-recipes.com/rx/6403/iphone-transfer-voice-memos-from-iphone-to-c omputer/.

  • Is there any way to get the height/width of an image before importing it in the indesign document.

    Hi All,
    I need to obtain an image's attributes such as dimensions (height, width in pixels) without placing image in indesign document.
    I have full path of the image (say abc.jpg is stored at c:\my pic\abc.jpg).
    I have obtained the IDFile for this image, tried getting size using GetFileSize() which correctly return size in bytes.
    Is there any way to get the height/width of image without importing it in the indesign document.
    Please, give me some hints. I have spent quite a lot time digging in CHM. I have searched in FileUtils, IDFile API's but found no method which serves this purpose.
    At this point I am clueless where to search next.
    Any help will be appriciated.
    Just a point to mention, I am able to get image height and width for an image in indesign doc though Its not my requirement.
    Thnx,
    D.

    You might be able to examine the contents of the PlaceGun after calling kImportAndLoadPlaceGunCmdBoss without actually placing the image in a document. Not sure, but would be worth looking at.
    Otherwise you will probably have to write platform specific code, ideally with a generic platform-independant wrapper (see SDKSamples/paneltreeview/PlatformFileSystemIterator).
    For the Mac, look at CGImageGetWidth() etc., not sure what the best option is for windows.
    Perhaps Quicktime could provide you with a platform independant solution.

  • Is there any way to get the appStore link for my application

    Hi everyone , i am developing an app which has a feature of sharing its appstore link with the friends through mail,so that they can see my appplication in appstore and buy it directly on click of a button. For that i need to use the app store link of my application for sending it . is there any way to get that and using it dynamically in my app immediately after releasing it.

    Your best bet would be to create a web page of your own for the app. Design that page so that it uses 'META REFRESH' to redirect the visitor straight to the App Store link.
    That way you can hard-wire your own web page address into your app.
    This has the advantage that it can work well even before you've noticed that your app has arrived on the App Store. Create a real web page, describing the app and telling people to search for it in the App Store by name - then replace it with the auto-redirect page when you've discovered your application's App Store address.

  • HT1386 i am trying to restore a backup og my iphone 4 from itunes on my macbook, it asks me for a password which i do not recall setting up, is there any way of getting this password.

    i am trying to restore a backup og my iphone 4 from itunes on my macbook, it asks me for a password which i do not recall setting up, is there any way of getting this password.

    No there's not.  Otherwise that wouldn't be very secure, would it?

  • Is there a way to get the songs back after you do a sync and erase? I no longer have them stored on my harddrive.

    Thanks to a wonderful geeksquad agent all my songs have been deleted from my ipod. They had to restore my computer so the ones I downloaded are no longer on my harddrive or in itunes. Is there a way to get the songs back after you do a sync and erase?

    If they are on the iPod there are third-party programs that will transfer then to  a computer. See:
    Copy music from Ipod to new computer...: Apple Support Communities
    If they ae not on either the iPOd or the computer they are gone.

Maybe you are looking for

  • Performance problem with Filters of Crystal Report

    Hi, I have been facing this problem for a month now. Whenever I try to run a Crystal Report from Infoview it takes 5min or more to get the prompts screen but sometimes(mostly when i restart all servers) the filter screen appears real quick say 5 to 1

  • How do I move default text along an arc over time?

    I have placed "Default Text" on a separate video track. In the video, a hand is pointing along an arc for 1.5 seconds.  I want the text to follow the arc as the hand is moving. I stumbled upon how to do this while pointing and dragging at different t

  • My iPod touch 4g won't connect to the internet, what do I do?

    My ipod touch 4g isn't going on to the internet, It's my SECOND IPOD TOUCH 4G WHITH PROBLEMS! The first iPod touch i had it swiched off while charging and i could not get it to switch on agian. NOW THIS! This iPod is starting to be a Freaking problem

  • Why should we use DSO instad of Infocube i BW7.4-SAP BW7.4

    Dear All, now I'm working with HCM- Payroll (BWreports) Standard reports, data flow is datasource--->Infocube--->Reports, but my architecture given data flow datasource--->DSO--->Multiprovider-->Reports, this is in SAP BW7.4, could any one explain me

  • Photoshop crash and 10.4.6

    So I too am having the photoshop crashing problem since updating to 10.4.6. Whenever working on a file and saving it the program just crashes. It seems like the easiest fix I can find is to re-install and then upgrade only to 10.4.5. Problem is that