Skip to content

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

Open
@delphidabbler

Description

@delphidabbler

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 riccardo.faiella@alice.it

Metadata

Metadata

Assignees

Labels

consideringConsidering or investigating the issueenhancementNew feature or request

Projects

Status

Considering

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions