Delphi Program in Parallels 7; not in Parallels 6

Discussion in 'General Questions' started by david@orbital.co.za, Dec 17, 2011.

  1. david@orbital.co.za

    david@orbital.co.za Bit poster

    Messages:
    9
    I have a message in Delphi 7 on Parallels 7: "Cannot focus a disabled or invisible window" when inserting a new record into a DBGrid in the Delphi Application.

    For 4 hours I thought it was a Delphi problem, but wondered why it suddenly happened in a program that is 9 years old.

    Then I phoned my client and asked if they had a problem in a new version I gave them the previous day. They said they don't have it. They run Windows XP only without Parallels and not on a Mac.

    I then tried the .exe outside Delphi in Coherence mode on Parallels 7 and got the same message.

    I then tried the .exe in and outside Delphi in Windows mode on Parallels 7 and didn't get a message.

    Then I fetched all the new code from VSS onto my MacBook, which is still running Parallels 6 and exactly the same environment as my Parallels 7 (before the upgrade as I copied the .pvm file from my MacPro to my MacBook) and there is no error in either Coherence or Windows mode.

    This is definitely a Parallels Coherence problem, eg when pressing tab, but Parallels keep telling me its a Delphi problem. I would agree with them if I had the same problem in Parallels 6 and 7.

    I have now found a problem with QuickBooks, which I think is displaying the same kind of <tab> behaviour, ie it is trying to access an application outside the current application when tab is pressed.

    What should I do?
     
  2. david@orbital.co.za

    david@orbital.co.za Bit poster

    Messages:
    9
    I've managed to write a program that shows the problem. But I haven't worked out why it only happens in Delphi (5 and 7 tested so far) in Coherence Mode on Parallels 7. The problem doesn't happen in Windowed Mode on Parallels 7 and it didn't happen in Parallels 3,4,5,6 (in any mode).

    See attachment for sample program.
     

    Attached Files:

  3. david@orbital.co.za

    david@orbital.co.za Bit poster

    Messages:
    9
    Info about running the program:

    I have a search form. When returning from the third search and pressing tab, I get the error. If I use the mouse to put the cursor in the 4th field there is no problem. The problem only happens in Coherence Mode in Parallels 7 and when I press tab. It doesn't happen in Windowed mode in Parallels 7.

    The first search button uses a simple InputBox displayed on the same form.

    The second search button uses another form to enter data and return it to the main form.

    The third search button uses Search functionality that I wrote. It also opens another form, but for some reason the focus isn't in the right place after the form closes.

    Do you have interbase? There is a free version.

    If not, I'll try to make a version which doesn't need a database.

    I haven't found out why this bug suddenly appears when I have been using this kind of search functionality since Delphi 1 and later in Delphi 3, and then later in Delphi 5,6 and 7 on Parallels 3.

    Screen shot of program attached.
     

    Attached Files:

  4. david@orbital.co.za

    david@orbital.co.za Bit poster

    Messages:
    9
    I managed to replicate this problem in Microsoft Word 2010 and TOAD for Oracle

    The problem also happens in TOAD, although it isn't obvious.

    After clicking on the File Open Dialog, and double clicking on a file in the pop up list, when one clicks on the File Open Dialog Button again, nothing happens. One needs to click on the File Open button twice.

    It also happens in Microsoft Word 2010. Add the File Open Button to the list of open buttons. Open a File by Double Clicking on the file name. Then click on the Open File Button. Nothing will happen the first time you click on it.

    This behaviour only happens in Coherence mode and not in "Exit Coherence" mode.

    Does this happen to anyone else?
     

Share This Page