RRUZ / vcl-styles-utils

Extend and improve the Delphi VCL Styles
https://theroadtodelphi.wordpress.com/
329 stars 115 forks source link

invalid used windows api to make MainMenu’s Item right-aligned #289

Open frankwu-delphi opened 2 years ago

frankwu-delphi commented 2 years ago

Hello, in my project, I used windows api to make MainMenu’s Item right-aligned. However, after enabling Vcl style Utils, the right-alignment is invalid. procedure TForm1.FormCreate(Sender: TObject); begin ModifyMenu(MainMenu1.Handle, 1, MF_BYPOSITION or MF_HELP, mnuRight.Handle, PChar(mnuRight.Caption)); end;

The attachment is a test example. ScreenSnap_20211207085237349 Vcl Style Test.zip