Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New tip: Display main menu dialogue style main form #84

Open
delphidabbler opened this issue Nov 19, 2022 · 0 comments
Open

New tip: Display main menu dialogue style main form #84

delphidabbler opened this issue Nov 19, 2022 · 0 comments
Assignees
Labels
considering Considering or investigating the issue enhancement New feature or request

Comments

@delphidabbler
Copy link
Owner

Possible new tip from extra/Topelina Tips.odt


MainFormAsDialog

Show the mainform as a dialog with a mainmenu.

If you want to show your mainform as a dialog (setting BorderStyle := bsDialog) and don't want to miss your main menu...

procedure TMain.FormCreate(Sender: TObject);
begin
  //...
  Windows.SetMenu(Handle, MainMenu1.Handle);
end;

Contributed by: topellina [email protected]

@delphidabbler delphidabbler self-assigned this Jun 18, 2023
@delphidabbler delphidabbler added enhancement New feature or request considering Considering or investigating the issue labels Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
considering Considering or investigating the issue enhancement New feature or request
Projects
Status: Considering
Development

No branches or pull requests

1 participant