Page 1 of 1

TElMenuItem Question

Posted: 08 Nov 2019 02:41
by quy
When I use the TElMenuItem, it seems like don't work as expected, so as the TForm's Color property.
My Computer sysetem is win10 64.

Re: TElMenuItem Question

Posted: 08 Nov 2019 09:10
by pjj
And what's your question, exactly? (Screenshots, code snippets will help, too.)

Re: TElMenuItem Question

Posted: 09 Nov 2019 07:19
by quy
the attachment are the code and screenshot

Re: TElMenuItem Question

Posted: 09 Nov 2019 09:27
by pjj
As you can see, It works for me (Win 7), and other colors do too, so clearly this is a bug and it needs Rickard's attention.
blue-modal.png
blue-modal.png (7.9 KiB) Viewed 8991 times

Nb. it would be nice to post your minimal code as text, so one could copy it; here's your code for Rickard to use:

Code: Select all

var f;

f = new TForm(nil);
f.Caption = "Test";
f.Color = clGreen;

f.ShowModal;
f.Free;

Re: TElMenuItem Question

Posted: 09 Nov 2019 11:37
by quy
Thank you for your reply