WebJan 24, 2014 · The first thing I've always done on a new Delphi install is go to Tools->Options->VCL Designer (Form Designer in newer versions) and uncheck "Auto-create forms and data modules". – Ken White Jan 24, 2014 at 1:05 Add a comment Your Answer By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and … WebJan 14, 2014 · Define your two main forms as frames. Put all your functionality there. Then define a single form that will act as the parent of one of the two frames. Instead of …
Closing a Form - Mastering Delphi - Delphi Power
WebJul 22, 2024 · 1 Answer. Sorted by: -4. In Delphi, app should automatically close itself if user closes a main form. OnClose event of main form: procedure TfrmMain.FormClose (Sender: TObject; var Action: TCloseAction); begin Action := TCloseAction.caFree; frmMain:= nil; end; Btw you can also terminate your app with halt command. Share. WebFeb 3, 2012 · In order to control the owner of a VCL form you need to use the PopupMode and PopupParent properties. MySecondaryForm.PopupMode := pmExplicit; MySecondaryForm.PopupParent := MyOtherSecondaryForm; At the moment, your code is probably using the default PopupMode of pmAuto. does maggie smith have a glass eye
How to set the main form in Delphi - Code World
WebJun 5, 2024 · Is it possible to change the main form while the application is already running? for instance. I have two forms. when I want to hide the one form and show the other form, then the taskbar icon should stay at the taskbar and the main form should switch to the other form. I am using Delphi XE6 and it is a VCL Forms application. WebDec 26, 2013 · 1 Answer Sorted by: 3 The text displayed in the taskbar is the window text of the window associated with the taskbar button. So SetWindowText will do the job, provided you find the right window. Often the window you need is the main form's window. But, as seems to be the case here, not always. WebMar 23, 2024 · Set AutoSize = True for your form. I've tested AutoSize with the following code, using Delphi 2010: Create a new VCL application. On the blank form drop a single Panel, let it keep it's name ( Panel1 ). Make sure the panel is not too small, because we'll write code to decrease it's size at runtime. Set the form's AutoSize property to True. facebook ads for affiliate marketing