Bug #4194 Problematic window positioning
Submitted: 17 Jun 2004 20:17 Modified: 5 Aug 2004 18:32
Reporter: John McGrath Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQLCC Severity:S3 (Non-critical)
Version:0.9.4-beta OS:Windows (Windows / Linux)
Assigned to: CPU Architecture:Any

[17 Jun 2004 20:17] John McGrath
Description:
This seems to occur with most windows opened from within MySQLCC.  For example, it occurs with query windows, "edit table", table properties, analyze table, check table, optimize table, repair table, etc.

When the window is opened, MySQLCC seems to try to tile the open windows, but it does not take into account the positions of fixed desktop features such as the Windows or KDE task bar.  As a result, it sometimes positions the windows under the task bar.  This sometimes makes it impossible to access the new window's menu or even to close the window.

I have seen this behavior on Windows XP Professional (SP1) and on Red Hat Linux 9 with the KDE desktop.

How to repeat:
1) Move the Windows or KDE task bar to the top of the display.
2) Start MySQLCC.
3) Make sure that at least one server is configured.
4) Right-click on the server in the "MySQL Servers" pane and choose "New Window from Here".
5) The new window opens, but it is placed under the task bar.

Suggested fix:
1) When computing the window position, take into account the positions of desktop features such as the task bar.

-OR-

2) Center new windows within the parent window.
[14 Jul 2004 9:46] MySQL Verification Team
Sorry I didn't understand well what you meant. The MySQLCC is an MDI
application and the new window will be placed inside the main form.
Maybe a picture will be more illustrative in this case.

Thanks.
[27 Jul 2004 16:49] Daniel Smith
I can also report that when double-clicking on a text field in a table row to edit, a text editor appears.  This works fine, but the placement of the text editor is always half off the viewable screen. Each time a user must drag the editror back to the center of the screen.  It is most common to have the editor window at the extreme lower right corner of the screen.
[1 Aug 2004 7:55] John McGrath
> The MySQLCC is an MDI application and the new 
> window will be placed inside the main form.

That is curious!  It does not always work that way.  I just installed MySQLCC on my home system and it does indeed act like an MDI application and opens windows inside of a main form.  But on my client's system, it opens individual top-level windows.  Both systems are running Windows XP Pro w/SP1 and both are running MySQLCC 0.9.4-beta.

Here is a screen capture from the client's system:
    http://www.jpmcgrath.net/files/MySQLCC.png

I guess there must be something in the Windows XP libraries that allows MDI applications to open using separate windows.  I will see if I can chase this down from that angle.
[1 Aug 2004 8:43] John McGrath
This is controlled by the "MDI" checkbox on the "Options" menu.  With MDI selected, it behaves as you described.

With "MDI" deselected, windows open under the task bar.  This occurs for both Windows and Linux.
[5 Aug 2004 18:32] Hartmut Holzgraefe
MySQLCC developement has been discontinued in favor
of MySQL Adminstrator:

  http://www.mysql.com/products/administrator/

We are still fixing critical bugs in MySQLCC but i don't
think this one is really a serious issue.