Hi, I noticed TMainMenu allows to ownerdraw so I experiment a little with this like so:
procedure TForm1.MainMenu1DrawItem(Sender: TObject; ACanvas: TCanvas;
ARect: TRect; AState: TOwnerDrawState);
begin
ACanvas.GradientFill(ARect, clSilver, clWhite, gdVertical);
end;
Of course there is no code here for checking the state of the items etc I will handle those later, the main thing I would like to know is how to paint the menu background? I can only see a way of painting the menu items not the actual background? And I dont mean the item background, but the menu strip if you like to call it that, eg from 0 position to form clientwidth.
This routine is also named DrawItem so I know I cannot paint the background here but equally i see no other place to do this?
Any suggestions or is it simply not possible?