View Issue Details

IDProjectCategoryView StatusLast Update
0001670JEDI VCSClient (Gui)public2010-01-25 00:54
ReportermaxirobainaAssigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionwon't fix 
Product Version 
Target VersionFixed in Version 
Summary0001670: Main menu - Project (strange menu popup with low resolution)
DescriptionIn Main menu, Project option, the menu appear over menu Project and hide this opction.
Additional InformationSteps:
Open JVCS client. Click in Server option. Move the mouse cursor to the Project option and this hide this item and close items.
TagsNo tags attached.
Fix in JVCS version2.40 RC2
Releasedocumentationhistory

Relationships

related to 0002511 closedobones JEDI VCL JvToolBar + JvMainMenu issues 

Activities

USchuster

2004-05-07 13:50

manager   ~0004185

I couldn't reproduce this so far, because my client is always maximized.
I've started the client with empty settings and in that case it has a small size. Then when I move the mouse from "Server" to "Project" then the subitems of "Project" hide the "Project" item ("Project"\"New" is over "Project").
It doesn't close any item in this case.

Is that what happens ?
If you have any visible anomaly can you add a screenshot here ?

2004-05-12 15:04

 

jvcs_scrshot.zip (37,523 bytes)

maxirobaina

2004-05-12 15:07

reporter   ~0004229

>>Then when I move the mouse from "Server" to "Project" then the subitems >>of "Project" hide the "Project" item ("Project"\"New" is over "Project").
>>Is that what happens ?

Yes, It's what happen.
Sorry my mistake. I wouldn't say close items. Only hide items from main menu.
I upload a screenshot.

USchuster

2004-05-14 04:07

manager   ~0004257

Looks like a bug in Delphi 6 VCL and maybe this bug does also exist in Delphi 7.
The Delphi 6 IDE also shows such a behavior.

It seams that this bug only exist with low resolution (800x600) or a not maximized client.

maxirobaina

2004-05-14 05:00

reporter   ~0004268

>Looks like a bug in Delphi 6 VCL and maybe this bug does also exist in
>Delphi 7. The Delphi 6 IDE also shows such a behavior.

I never look this behavior in Delphi 6 (D6 Enterprise), neither working with 800x600 screen resolution.

USchuster

2004-05-14 10:25

manager   ~0004276

Of course Delphi 6 only shows this behavior if you move the window with the menu from the top of the screen approximately to the middle of the screen (depends on the resolution).
With 800x600 and Delphi's menu window on top everything is fine.

KevinOfOz

2004-06-03 23:36

reporter   ~0004458

It would appear to be a limitation of TMainMenu.

Occurs in D5 & D7 with TMainMenu whenever the height of the menu is greater than the space above and the space below the menu bar. Basically the menus need to split or have scroll options to work under these circumstances.

If a menu is increased in height so that it does not fit on the screen at all the scroll arrows appear.

When I use Internet Explorer (6.0.2800..) (favorites menus can get fairly long!) to duplicate it works properly. Scroll arrows appear on the menu as required and the menu is limited in height so as not to obscure the menu bar itself.

One possible solution is ..

procedure TForm1.N11Click(Sender: TObject);
var
  lIndex: integer;
  lBreakCount: integer;
  lMenuItemHeight: integer;
begin
  lMenuItemHeight := GetSystemMetrics(SM_CYMENU);

  lBreakCount := Max(Top, Screen.Height - Top - lMenuItemHeight) div lMenuItemHeight + 1;

  for lIndex := 0 to (Sender as TMenuItem).Count - 1 do
    if (lIndex > 0) and (lIndex mod lBreakCount = 0) then
      TMenuItem(Sender).Items[lIndex].Break := mbBarBreak
    else
      TMenuItem(Sender).Items[lIndex].Break := mbNone;
end;

The code is called in the OnClick of the top level menu items. It makes a (rough) calculation of the number of items the screen can cope with and sets the Break property of each of the menuitems appropriately.

USchuster

2004-07-10 03:55

manager   ~0004731

Kevin unfortunately your solution doesn't help here because the menu still popups over the parent item.

Issue History

Date Modified Username Field Change
2004-04-20 04:59 maxirobaina New Issue
2004-05-07 13:50 USchuster Note Added: 0004185
2004-05-07 13:51 USchuster Status new => feedback
2004-05-12 15:04 maxirobaina File Added: jvcs_scrshot.zip
2004-05-12 15:07 maxirobaina Note Added: 0004229
2004-05-14 04:07 USchuster Note Added: 0004257
2004-05-14 04:07 USchuster Status feedback => acknowledged
2004-05-14 04:10 USchuster Summary Main menu - Project => Main menu - Project (strange menu popup with low resolution)
2004-05-14 05:00 maxirobaina Note Added: 0004268
2004-05-14 10:25 USchuster Note Added: 0004276
2004-06-03 23:36 KevinOfOz Note Added: 0004458
2004-07-10 03:55 USchuster Note Added: 0004731
2005-01-16 04:04 USchuster Relationship added related to 0002511
2005-01-17 02:47 obones Status acknowledged => assigned
2005-01-17 02:47 obones Assigned To => obones
2005-01-17 12:21 obones Assigned To obones =>
2005-01-17 12:22 obones Fix in JVCS version => 2.40 RC2
2005-01-17 12:22 obones Status assigned => acknowledged
2010-01-25 00:54 THuber Releasedocumentation => history
2010-01-25 00:54 THuber Status acknowledged => closed
2010-01-25 00:54 THuber Resolution open => won't fix