View Issue Details

IDProjectCategoryView StatusLast Update
0003487JEDI VCL00 JVCL Componentspublic2006-02-09 07:27
Reporterivan_raAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version3.10 
Target VersionFixed in Version 
Summary0003487: TJvPopupMenu: different drawing
DescriptionI have TJvPopupMenu on form with bitmaps assigned to items. It draws differently depending on a way of popup. Look at screenshots:
1.jpg - popup by mouse
2.jpg - popup programmatically. This is code for button click:

procedure TForm1.BitBtnContextClick(Sender: TObject);
begin
  with TControl(Sender) do
    ContextMenu.Popup(ClientOrigin.X,ClientOrigin.Y+Height);
end;
TagsNo tags attached.

Activities

2006-02-01 07:55

 

1.JPG (4,520 bytes)
1.JPG (4,520 bytes)

2006-02-01 07:56

 

2.JPG (5,676 bytes)
2.JPG (5,676 bytes)

2006-02-01 08:01

 

11.JPG (7,221 bytes)
11.JPG (7,221 bytes)

2006-02-01 08:01

 

12.JPG (7,397 bytes)
12.JPG (7,397 bytes)

ivan_ra

2006-02-01 08:03

developer   ~0008485

JVCL is latest CVS version.
11.jpg and 12.jpg - another example

obones

2006-02-06 07:08

administrator   ~0008507

Which version of Delphi?

If 2005 or 2006, this is a known issue, I'm having a hard time understanding it.

ivan_ra

2006-02-07 00:54

developer   ~0008514

Screenshots made in D5 project.
There is not such problem when I use TPopupMenu

obones

2006-02-07 01:33

administrator   ~0008515

Very interesting that it is under D5.
Can you create a small sample application that shows this behaviour? I believe that the russian characters have something to do with this, and would like to investigate starting from this end.

ivan_ra

2006-02-07 04:37

developer   ~0008516

I have closer look at my project and found the cause of trouble.
Actually there are 2 identical menus: one with assigned imagelist and one not.

I have made illustrating project and on it is visible that TPopupMenu has same problem, but it not so appreciable

2006-02-07 04:38

 

TestMenu.zip (3,213 bytes)

obones

2006-02-08 10:13

administrator   ~0008517

Ah ok then. You can use ImageSize to specify a "virtual" size instead of using an empty image list if you want to.
Can I consider this issue closed then?

ivan_ra

2006-02-08 12:49

developer   ~0008519

Yes, I think it may be closed

obones

2006-02-09 07:27

administrator   ~0008526

Thanks, this is now marked as resolved

Issue History

Date Modified Username Field Change
2006-02-01 07:55 ivan_ra New Issue
2006-02-01 07:55 ivan_ra File Added: 1.JPG
2006-02-01 07:56 ivan_ra File Added: 2.JPG
2006-02-01 08:01 ivan_ra File Added: 11.JPG
2006-02-01 08:01 ivan_ra File Added: 12.JPG
2006-02-01 08:03 ivan_ra Note Added: 0008485
2006-02-06 07:08 obones Note Added: 0008507
2006-02-06 07:08 obones Status new => feedback
2006-02-07 00:54 ivan_ra Note Added: 0008514
2006-02-07 01:33 obones Note Added: 0008515
2006-02-07 04:37 ivan_ra Note Added: 0008516
2006-02-07 04:38 ivan_ra File Added: TestMenu.zip
2006-02-08 10:13 obones Note Added: 0008517
2006-02-08 12:49 ivan_ra Note Added: 0008519
2006-02-09 07:27 obones Status feedback => resolved
2006-02-09 07:27 obones Resolution open => no change required
2006-02-09 07:27 obones Assigned To => obones
2006-02-09 07:27 obones Note Added: 0008526