FunkyOverlay Window help

I've been teaching myself, and trying to understand Cocoa (used applescript sucessfully before..trying something new)
I found (and manipulated) some Objective-C code.
http://developer.apple.com/samplecode/FunkyOverlayWindow/listing8.html
(to long to copy and paste).
I manipulated it to become a simple window that will fade in and out when the mouse drags over it. However I can't drag and move the window. The window is borderless. I've used other code in transparent borderless windows that will let you drag the window around. I've tried to incorperate it into the fade code, but it wont work.
can anyone/developer give me a hand/advive on solving this
thanks

A Borderless window does not implement dragging, so you have to do it yourself. I've done this on apps by having a custom NSWindow subclass for my borderless window and overriding the mouseDown: and mouseDragged: methods.
Try adding an NSPoint instance variable to your window subclass called 'lastDragPoint' or something. In your mouseDown: method set lastDragPoint to the position of the mouse onscreen. You can do this with:
lastDragPoint = [self convertBaseToScreen:[theEvent locationInWindow]];
where 'theEvent' is the parameter passed to mouseDown:. In your mouseDragged method, get the new position of you mouse onscreen and compare it to lastDragPoint to find the difference in X and Y co-ords. Adjust your window's origin by the X and Y difference.
This will give you basic drag support, but with a couple of caveats: Your window may drag sluggishly if if is being redrawn on every mouseDragged call. Also if you have a view covering the whole frame of the window (for example an NSImageView that is displaying the window background image) it may be handling the mouseDown: & mouseDragged:, so they don't get called on your window. You can get round this in some situations (inlcuding the NSImageView example I mentioned) by making the view non-enabled in Interface Builder.
Jim
iMac G4, PowerBook G4   Mac OS X (10.4.9)  

Similar Messages

  • I have two faults! 1, an error comes up in Ps CC 2014 "could not apply the saved panel configuration, restring to default and my tools have disappeared completely and anything ive tried I cannot get them back not even the drop down menu in 'window' helps

    I have two faults! 1, an error comes up in Ps CC 2014 "could not apply the saved panel configuration, restring to default and my tools have disappeared completely and anything ive tried I cannot get them back not even the drop down menu in 'window' helps at all. And 2, Lr everytime I load it up it gives me the option to retry or switch to and it takes a while for me to even get anywhere with it I think it has something to do with the catalogs? I've been using these programs for a few years now on a Mac...no problem but when I use a PC when I'm away coz it's the (only) comp available these happen PC's are so useless! Please can anyone help??...

    I can give a few suggestions on Photoshop CC 2014, but Lightroom is a separate forum and you should ask Lr questions there.
    First close Photoshop.
    Then start Photoshop by double-clicking on it's icon and very quickly after that, hold down the ctrl-alt-shift keys until you see the reset dialog. answer "Yes" to delete settings, and let Photoshop continue to load.
    It's tricky to do and may take a few tries, but at least it should reset Photoshop CC 2014 to defaults.
    Gene

  • Disabling the F1 Windows Help and Support key

    Hello! I see there's lots of people that have been having this problem, but I felt I was in a unique (HA) position in that I have a Windows 8 OS, so the problem can't be solved following the steps to a Windows 7 solution. I've tried several things.
    First off, background; I have an HP 2000 laptop running Windows 8. I have wanted to use the function keys in a video game, but they were set as macromedia function priority. I went into BIOS and switched the action keys to DISABLED so that I could use FN+F
    Key in order to use the macromedia, and instead they revert to normal function. This is fine. BUT: It only worked for F2-F12. The F1 key is still mapped to open Windows Help and Support. I've tried to rename the helppane.exe (I am admin but only "Trusted
    Installer" can modify the file), and ran into problems. SO I tried to follow the steps to use regedit to block the helppane.exe, but the .exe isn't located where it is on a Windows 7 machine. 
    I have been working to try to find a solution to this problem for going on hours now, with no recourse. ANY solutions would be very welcome. Thank you. 

    You sure you already save after changing setting in BIOS
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=id&dlc=en&lc=en
    If yes, find your model in HP site and find the update BIOS, update your BIOS, and try again
    since this PC OEM. HP will provide better answer for you, and if you keyboard also comes with extra software I suggest to uninstall it first to check

  • Windows Help and Support screen glitch? And keyboard malfunction! Help!

    I have 3 problems. At the log in screen of my hp stream notebook 11, I wasn't able to complete my password due to a malfunction in one of the keyboard keys. I shut down the computer and came back later to try again. It worked but when I logged in, the Windows Help and Support screen kept repeatedly popping up even when x'd out. I would let it repeatedly pop up (like a glitch) and I would x it out and it would go away. Also as I was typing in anything (wordpad, internet, search), every other key letters and numbers were acting as shortcuts to different screens such as apps, the log in screen, control panel etc. then the Windows Help and Support screen would pop back up again as a glitch. Please help!

    Hi @aaliyah22 
    Welcome to the HP Support Forums!
    You mention three different issues, and I am happy to assist with this. Obviously we need to start with the keyboard. As it is just the one key you describe as  a problem, I would try a cleaning. You could see if some compressed air helps first as some debris may have gotten into it. Also you can look at these two pages and see if anything helps.
    Notebook Keyboard Troubleshooting (Windows 8)
    Cleaning your Notebook PC
    The other two problems sound a lot like something like a software or possibly a malware related issue, but you can start with trying a system restore to a point before the problem began and see if that helps.Using Microsoft System Restore (Windows 8)
    Then take a look at these.
    Resolving and Preventing Viruses on Your Computer (Windows 8)
    About Spyware, Adware, and Browser Hijacking Software
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Windows Help and Support Message box keeps popping up

    I am not really sure what happened but my keyboard stopped working.  It kept typing out random letters and not the ones I typed.   At the same this "Windows Help and Support" box started popping up.  So, I can't use my keyboard but the pop up window keeps interuping Netflix and vidoes and I can't watch them and  Word documents.  Pretty much anything I do gets interupted by this box and stops whatever I am trying to which is trying to build a website at the moment. 
    I uninstalled the support.   It no longer appears in my program list but the box still keeping popping up and stopping everything I am doing. 
    What I am suppose to do?  It doesn't say its the HP Support it says "Windows Help and Support" at the top of the box. 
    I have tried everything.

    Hey @c4yp ,
    Welcome to the HP Forums!
    I understand the keyboard on your notebook is not working properly, and the Windows Help and Support window keeps opening. 
    This popup is typically caused by a spyware or malware infection. Please follow the steps below and let me know if it helps.
    Perform a clean boot. See here for a guide to to this: How to perform a clean boot in Windows
    Run Malwarebytes Free scan.
    Run AdwCleaner scan.
    Use Step 3 and Step 5 of this guide for the steps to run Malwarebytes and AdwCleaner: Remove “Ads by GoSave” virus (Easy Removal Guide)
    Thanks!
    Please click the "Kudos, Thumbs Up" at the bottom of this post if you want to say "Thanks" for helping!
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    The Great Deku Tree
    I work on behalf of HP.

  • HP D017TU Laptop - Windows Help ans Support window started popping up and i can't get ride of it

    Just purchased a brand new HP D017TU Laptop so nothing been done with it. I installed windows 7 on my HP D017TU laptop. it was working fine.
    Then 2 days ago the Windows Help ans Support window started popping up and now I can't get ride of it.
    I have tried the following things to get ride of the issue,
    1) Format windows 7 os
    2) Delete All partition and re-create
    3) Re-install windows 7
    Does anyone know how I can stop this happening.

    Hello SaravSB, welcome to teh HP Forums.
    I see that you're having an issue where the Windows help and support is popping up. I will try to help you with this.
    I've looked into this for you, it seems this was an issue from back when Windows 7 launched. Any "solutions" also seemed to vary user to user. You may want to try contacting Microsoft for support on this. I was able to find a couple of posts off the answers.microsoft.com forums.
    "SuperJbye replied on  July 14, 2013
    Hello
    I found a simple yet effective solution for this problem, my friend had the same issue so instinctively as a technician, I suspect this was a malware of somekind so I re-formatted and installed Win7 funny it's still there, so I did a Hard disk wipe using Dalvik's and re-partitioned and formatted again, to my surprise it still have the same problem.
    So I ask Mr. Goo' old Mr. Google for answer, but I've found more complications, sorry for the story, so without further a do, the solution.
    Boot to safe mode. (may also work in "normal mode")
    Go to Task Manager>
    Click the Services Tab>
    Right click "HelpPane.exe" or Help and support service>
    Select Properties>
    Click the Security tab>
    Click the Advanced tab (for permissions options)
    Then select the "permissions entries" one at a time>
    Click Change Permissions>
    Then click Edit>
    CLEAR ALL THE CHECK BOX FOR ALL ENTRIES
    This should prevent access to the HelpPane.exe to all users/programs.
    This resolved my friends Windows 7 "Help and Support thingy" issue, hope it does yours too.
    Message me for questions and/or clarifications/corrections.
    Thank you"
    "EddJosh replied on  April 29, 2014
     In reply to Danel...'s post on April 28, 2014
    To fix the problem of the help pane appearing everytime you start windows do the following:
    1. Run 'msconfig'
    2. Go to the 'Startup' tab
    3. One of your 'Startup items' is causing the pane to appear and you are going to have to find out which one it is!  Untick ALL the items and reboot.  The help pane will not appear harrah!  Rather than adding the Startup Items back in one at a time and rebooting a hundred times, tick half the programs back in and reboot.  You can find the culprit in about 5 reboots if you do it logically and add/remove half/quarter etc at a time.
    4.  Finally you will be left with all your Startup items ticked and the guilty program unticked (and that annoying help pane will no longer be appearing)
    5. Now delete the guilty Startup Item from the registry (which will also remove it from the msconfig startup tab.
    6. Open 'regedit'
    7. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg and delete the guilty program folder.  BACKUP YOUR REGISTRY FIRST!
    8.  You're welcome."
    Both of those, as well as other steps are located in this thread: Windows 7 "Help and Support" keeps popping up.
    You could try those suggestions and even give that thread a read over, other wise the best option would be contacting Microsoft as stated above.
    Thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • Using Excel 2008 for a Mac in my laptop and part of toolbar has disappeared (windows, help, view, etc) and Need to to freeze column headings

    Using Excel 2008 for a Mac on my laptop
    Part of toolbar has disappeared (windows, help, view, etc) --- want to restore
    Need to freeze column headings but freezing option was not working prior to disappearance of tool bar

    Hi Alveretta,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing developing issues on Windows platform. I suggest to get more effective response from
    Office for mac forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or
    learn from your interaction with us.
    Thanks for your understanding.
    Best regards
    Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to use a Windows Help File (.hlp) - URGENT

    Hello!
    Can anybody tell me how to use a windows help file (.hlp) in my Java application? Is there any possiblity to reference a specific topic (by Help Context-ID)?
    Thanks in advance,
    Phil

    try calling the Runtime.exec() method
    pass the paramter String as <filename>.hlp
    i donno about the context
    regards
    rohan

  • How to call windows help files .hlp from Java program

    Hai all everybody
    How to call windows Help file that is xxx.hlp files from java programs
    any help great!!!!
    regards
    veeru

    How about
    Runtime.getRuntime().exec("start xxx.hlp");

  • File edit find view window help does nor appear on my new computer but it does on my old computer

    The line with file edit find view window help does not appear . the line does appear on my old computer

    Good day!
    Could you try hitting the F-key once or twice?
    Regards,
    Pfaffenbichler

  • Exit window help

    I am try to figure out how to have an action to close out the
    browser window.
    I want my button to play a sound then it will go to a certin
    frame in the timeline and when it hits the frame with the action I
    want it to close out the window.
    help Please

    Hi,
    I'm afraid I don't understand your answer. When I look at http://help.sap.com/saphelp_bw32/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/frameset.htm:
    I_STEP = 1
    Call up takes place directly before variable entry
    I_STEP = 2
    Call up takes place directly after variable entry. This step is only started up when the same variable could not be filled at I_STEP=1.
    SInce there wasn't any variable entry yet, I don't see when step 2 will be executed nor how to achieve things with a seperate 0calyear var when one doesn't want to see nor filter on 0calyear.
    Eddy

  • Getting Window help in Oracle Applications 11 and 11i.

    Hi
    I installed Oracle 11 on Windows NT. I have few problems.
    1) I am not getting window help for every screen.
    2) I am not able to install client on other machines. I am getting the welcome screen.
    3) The output from requests is not coming in the HTML window ie., Internet Explorer. It is giving "file not found" error.
    Please help me out.
    Thank you.
    Naren

    If I understand your question correctly, you are talking about accessing the help that is already provided with Oracle Applications, correct? This discussion forum is intended for help authors and developers who are implementing help systems using Oracle Help for Java (OHJ) and Oracle Help for the Web (OHW). Perhaps one of the Oracle E-Business Suite forums would be more helpful for you. For example, you might want to try E-Business Suite > Administration > Managing Oracle Applications.
    If you are indeed asking a question about OHJ or OHW, please respond to this message to correct my error!
    Ben Gelernter
    Oracle Help Technologies (Oracle Help for Java, Oracle Help for the Web)

  • I can't see the menu bar in PSE 9 Organizer.  Where File Edit View Window Help should be

    I can't see the menu bar in PSE 9 Organizer.  Where File Edit View Window Help should be

    Check your Windows Display Preferences, and make sure you're using the default, 100%, smaller screen fonts.
    Ken

  • The "File Edit View Window Help" menu disappears after opening Adobe Acrobat X Standard

    After installing Adobe Acrobat X Standard, when I run the program the "File Edit View Window Help" menu is visible for only a brief second then disappears.  I tried to press F11 or other functions keys to bring it back.  I also installed Adobe Acrobat X Pro which I also have a license for and it would do the exact same thing. Reinstalling the programs did not seem to resolve the problem.  Is there an issue inside the registry?

    Thank you for your comment.  However, F9 does not seem to work.
    When I press F9, the menu bar appears but the words "File Edit View Window Help" are still missing.  
    When I press F9 again the menu bar will close.
    This is a screen capture before the words "File Edit View Window Help" disappear.  After only about a second they are gone.

  • I lost the top toolbar that has Safari-File-Edit-View-History-Bookmarks-Window-Help

    I lost the top toolbar that has apple-safari file-edit-view-history-bookmarks-window help
    How do I restore it?

    View webpages in full screen
    In many applications on the Mac, including Safari, you can expand the window to fill your entire screen. You can make a webpage full-screen with one click, and switch to another webpage (or full-screen window in another application) with a swipe of the trackpad.
    IMPORTANT:Viewing in full screen, and the Mission Control feature, are available only if you have Mac OS X v10.7 Lion or later. For information on upgrading Mac OS X, go to the Mac OS X website.
    OS X website
    To enlarge a webpage so it uses the screen, click the arrows in the top-right corner of an application window:
    To move from one window to another in full screen view, swipe left and right, or press the arrow keys on your keyboard.
    To return to standard view, click the arrows in the window’s upper-right corner:
    If you prefer viewing webpages in full screen, Mission Control lets you see everything running on your Mac, including your full screen windows. Mission Control presents your full screen windows as thumbnail images, making it easy for you to move from one to another.

Maybe you are looking for

  • Print out a column value only if another column has a specific value (CASE Statement)

    Hello all, I tried many hours to find a solution for the following request but wasn't successful. Maybe you could help me. I've using the already existing SQL Views in Microsoft Service Manager to do some basic reporting about my tickets.There is no

  • Basic caching questions

    I have been going through the setup of caching, to get the initial core functionality working for the last couple days and have not made much progress. I believe part of the problem is that there is several different types of caching, all called by t

  • How to have  make to stock strategy for configurable items

    Dear Frndz, My client would like to have make to stock strategy for their configurable items, pls help me out with the step by step procedure of the same. Regards, Srini

  • Running .bat files from java code

    Dear Forum, I have seen numerous postings on the web about this question, still I have found no answer that works (for me) I�m trying to run a simple .bat file from a piece of java code , however it does not work. No error message , but still. Does a

  • Summary Folders vs Materialized Views

    Hi everybody, Which is best to use summary folders/tables or materialized views? In other words , can materialized views replace the summary folders or vice versa? In which situations are we using materialized views and in which other situations are