Board index » delphi » Problem with ShowModal method
Mayes uk
![]() Delphi Developer |
Mon, 16 Mar 1998 03:00:00 GMT
|
Mayes uk
![]() Delphi Developer |
Mon, 16 Mar 1998 03:00:00 GMT
Problem with ShowModal method
Please reply anybody,
in my application when I try to show one of my forms Janette. -- |
Marc Chapma
![]() Delphi Developer |
Mon, 16 Mar 1998 03:00:00 GMT
Re:Problem with ShowModal methodQuoteMayes uk <Ma...@d-m-g.demon.co.uk> wrote: Application.CreateForm(TForm, Form1) in your project file)? If so, then the app is already showing the form, and so your Form1.ShowModal wouldn't work. One solution would be to set Form1's Visible property to False, then call the ShowModal event. Marc |
Mayes u
![]() Delphi Developer |
Tue, 17 Mar 1998 03:00:00 GMT
Re:Problem with ShowModal methodIn article <44eupn$...@news.halcyon.com> mchap...@mstarlabs.com "Marc Chapman" writes: Quote> Mayes uk <Ma...@d-m-g.demon.co.uk> wrote: thank you for a quick responce to my message. Yes, my Form1 is created Janette. |
Zane
![]() Delphi Developer |
Wed, 18 Mar 1998 03:00:00 GMT
Re:Problem with ShowModal methodI'm writing an app that will use plug-in DLL's with common functions. This will necessitate calling functions using GetProcAddress. Could someone shed some light on doing this? I'm calling LoadLibrary to get the handle to the DLL, and I can call Any help would be appreciated. |
Zane
![]() Delphi Developer |
Thu, 19 Mar 1998 03:00:00 GMT
Re:Problem with ShowModal methodCan you pass a TCanvas object to a DLL for drawing? For example, I have the following code in a DLL: procedure DoSomething(PassedCanvas:tcanvas);export; When I call this up in my app, I get a GPF. I've tried re-writing the Anyone had any luck doing this? |
The Green Meddle
![]() Delphi Developer |
Fri, 20 Mar 1998 03:00:00 GMT
Re:Problem with ShowModal methodQuoteza...@aol.com (ZaneR) wrote: 1) A TCanvas is just a wrapper around an HDC.many times, trying to use a) forcing the canvas to get an hdc with a call to RequiredState hope this helps. email me if you still have problems; this is an -- |
Ray Lischn
![]() Delphi Developer |
Fri, 20 Mar 1998 03:00:00 GMT
Re:Problem with ShowModal methodOn 1 Oct 1995 15:02:22 -0400, za...@aol.com (ZaneR) wrote: Quote>Can you pass a TCanvas object to a DLL for drawing? For example, I have graphics objects between an application and a DLL. The Graphics unit maintains information that is kept in a module's data segment (such as a list of TCanvas objects). Using graphical objects in different modules confuses Delphi when it tried to maintain these private lists. Instead, you can pass a canvas Handle, and create a new TCanvas object If you tried this without success, what, exactly, did you try? How |
s..
![]() Delphi Developer |
Sat, 21 Mar 1998 03:00:00 GMT
Re:Problem with ShowModal methodQuoteIn article <44moju$...@newsbf02.news.aol.com>, za...@aol.com (ZaneR) writes: call properly. Are you ".Create"-ing the TCanvas before passing it to to DoSomething()? When using the HDC approach, are you allocating a new DC for your application before passing it? Quote>Anyone had any luck doing this? -* Stephen *- |
1. "Problem with TFORM method SHOWMODAL"
3. Showmodal ERROR: Cannot showmodal a visible...
4. Showmodal ERROR: Cannot showmodal a visible...
5. showmodal from a showmodal form
6. Transaction Methods in Interbase using Delphi 3.0 -Problems in commit-rollback methods
7. Static Methods vs Virtual Methods (with methods you expect to be overridden/redeclared)
8. Problem with ShowModal on Seamless Citrix
10. Problem: No keyboard response after returning from ShowModal.