- This topic has 1 reply, 2 voices, and was last updated 2021-08-25 at 2:22 am by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › Konopka Signature VCL Controls (formerly Raize Components) › TRzMenuController – UseMenuColorForMainMenu
Tagged: mainmenu color
Currently in 7.0 (and older) the space after the last main menu item is not colored.
The following modification fill all space with color:
`if UsingSystemStyle( nil ) then
begin
if FUseMenuColorForMainMenu then
Canvas.Brush.Color := FMenuColor
else
Canvas.Brush.Color := clBtnFace;
// mod
if (not RightToLeftMenu) and Assigned(Form) and Assigned(Item.Parent) and (Item.Parent.Count>0) and
(Item.Name = Item.Parent.Items[Item.Parent.Count-1].Name) then
Canvas.FillRect( System.Types.Rect(CaptionRect.Left, CaptionRect.Top, TForm(Form).Width, CaptionRect.Bottom) )
else
//mod
Canvas.FillRect( CaptionRect );
end
Hi,
Thanks for the post. Since Embarcadero owns the controls, I would suggest submitting a bug or enhancement request for them to fix this. Also, I’m not sure if the code you posted is complete. I’m not sure where Form is defined.
Ray
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Stripe is a payment processing platform that enables businesses to accept online payments securely and efficiently.
Service URL: stripe.com (opens in a new window)