Web2 days ago · I have a button on the main form. I create a small form when the user clicks the button. procedure TForm1.Button1Click(Sender: TObject); begin var f := TSmallForm.Create(nil); end; Everything seems work fine. But the problem is that when the user minimizes the main form, the small form also got minimized. WebJun 4, 2013 · You could export a function from your DLL that created and showed the form. The function might look like this: function ShowMyForm (ParentWindow: HWND): Pointer; stdcall; Note that you cannot pass the parent as a Delphi object for exactly the same reasons as I describe above.
How to show a modal dialog from a modeless form?
WebJul 4, 2016 · The options menu is a VCL Form. In that Form there are basically 2 panels. All of the (bit)buttons, checkboxes and other stuff in this form are inserted in these two panels (mostly with other panels, so fe panel in panel in panel --> button). These two 'main' panels have constrained sizes and are aligned to Left and Right (at start). WebDec 13, 2012 · 1 I would like to show a form (modally) in a COM DLL (as a user prompt). The DLL methods will eventually be invoked by some JavaScript in the browser (yeuck, but not my choice & can't be changed). However, when I invoke the DLL method from my Delphi test program, I get an access violation. Can I do what I am trying to do? delphi dll … kieler yacht club kiel restaurant
delphi - How i can to Destroy (free) a Form from memory
WebApr 24, 2024 · 1. There are a few number of unspecified items in your problem. Anyway, I made a simple example of what can be done. You'll get started and modify this code to suit your needs. This code has a form (TForm1) with a single button. Each time the user click on the button, a new button and a new form are created. The created button is show on … WebFeb 4, 2024 · if not PostMessage (PreviousHandle,WM_RESTORE_FORM,PreviousHandle,0) then ShowMessage ('Can''t automatically show the Form program. '+ 'Please click the taskbar icon.'); Here's what the message handler looks like. It is in the Modal Form. As you can see, I pass the form's … WebFeb 5, 2024 · Any code that explicitly shows the form when it's created (such as the OnCreate event) would obviously cause the form to be shown. However, one would … kiel football alumni