Hi GRS, About the ShellExecute,
I would suggest to check the web site below. Also go through the short help snippet below: http://www.latiumsoftware.com/en/delphi/00002.php function declared in the ShellAPI unit. The syntax is: ShellExecute(Handle, Operation, FileName, Params, Folder, ShowCmd) Handle (HWND) is the window handle of the parent window, for instance the window handle of the main form of our application. Operation (PChar) is a pointer to a null terminated string that contains the name of the operation to perform, which can be 'edit' (launches an editor and opens the document for editing), 'explore' (explores the specified directory), 'find' (opens the find window starting from the specified directory), 'open' (executes or opens the file with the associated application), 'print' (printes the specified file) or 'properties' (displays the file or folder's properties). This parameter can also be nil and in this case 'open' will be assumed. FileName (PChar) is a pointer to a null terminated string that contains the path and the name of the application to execute, the document to open or print with its associated application, or the folder to open or explore. Params (PChar) is a pointer to a null terminated string that contains the parameters that will be passed to application specified in FileName. If FileName doesn't indicate an executable file but a document, then Params should be nil. Folder (PChar) is a pointer to a null terminated string that contains the path that will be taken as the application's folder by default. This parameter can be nil. ShowCmd (Integer) indicates the way the application specified in FileName will be shown. There are various possible values: SW_HIDE SW_RESTORE SW_SHOW SW_SHOWNA SW_SHOWNORMAL SW_SHOWDEFAULT SW_MAXIMIZE SW_MINIMIZE SW_SHOWMAXIMIZED SW_SHOWMINIMIZED SW_SHOWMINNOACTIVE SW_SHOWNOACTIVATE Regards, Abhijeet Patil. --- [EMAIL PROTECTED] wrote: > Send Delphi mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.elists.org/mailman/listinfo/delphi > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Delphi digest..." > > > Today's Topics: > > 1. Re: ShellExecute (M Tuttle (KS)) > 2. Re: ShellExecute (Rob Kennedy) > 3. RE: Darg?Drop Question (Rob Kennedy) > 4. Re: Unexpected Exit from ShowModal Form (Ross Levis) > 5. Re: Looking for an Instructor & Course ... (adolf hitler) > 6. RE: Looking for an Instructor & Course ... (Marco Congedo) > 7. Re: Looking for an Instructor & Course ... (Paule Ecimovic) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 14 Dec 2005 14:33:38 -0600 > From: "M Tuttle (KS)" <[EMAIL PROTECTED]> > Subject: Re: ShellExecute > To: "Borland's Delphi Discussion List" <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > ShellAPI > > ----- Original Message ----- > From: "George Smith" <[EMAIL PROTECTED]> > To: "Borland's Delphi Discussion List" <[email protected]> > Sent: Wednesday, December 14, 2005 1:54 PM > Subject: ShellExecute > > > > I am trying to compile a program on Delphi 6 and the compiler is not > > recognizing ShellExecute. Can someone tell me what Unit it is in, I can > > not find it. > > > > > > > > Thanks > > > > > > > > grs > > > > _______________________________________________ > > Delphi mailing list -> [email protected] > > http://www.elists.org/mailman/listinfo/delphi > > > > > > ------------------------------ > > Message: 2 > Date: Wed, 14 Dec 2005 15:22:14 -0600 (CST) > From: "Rob Kennedy" <[EMAIL PROTECTED]> > Subject: Re: ShellExecute > To: "Borland's Delphi Discussion List" <[email protected]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain;charset=iso-8859-1 > > George Smith wrote: > > I am trying to compile a program on Delphi 6 and the compiler is not > > recognizing ShellExecute. Can someone tell me what Unit it is in, I can > > not find it. > > Go to your Delphi\Source directory and run this command: > > grep -r ShellExecute * > > It will find you all the places where "ShellExecute" appears, including > the ShellAPI unit, where the function is declared. > > -- > Rob > > > > > ------------------------------ > > Message: 3 > Date: Wed, 14 Dec 2005 15:28:06 -0600 (CST) > From: "Rob Kennedy" <[EMAIL PROTECTED]> > Subject: RE: Darg?Drop Question > To: "Borland's Delphi Discussion List" <[email protected]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain;charset=iso-8859-1 > > Fair Lee wrote: > > Does anyone know how to disable Alt key from Delphi3 program? I have an > > application program that calls a DLL to do the product search. After the > > product search pops up, if user hits Alt+x (for Exit), the error message > > 'Access Violation' came up. > > You're trying to treat the symptom instead of the illness. > > Why does your program crash? I assure you there is nothing wrong with the > Alt key, so don't cripple your users just because your program doesn't > work. > > Figure out why you get an access violation. Does the debugger should you > where the error occurs? Do you have the "debug DCUs" option enabled? Maybe > a tool like JclDebug or MadExcept can tell you where the error is even if > the IDE can't. > > -- > Rob > > > > > ------------------------------ > > Message: 4 > Date: Thu, 15 Dec 2005 11:57:56 +1300 > From: "Ross Levis" <[EMAIL PROTECTED]> > Subject: Re: Unexpected Exit from ShowModal Form > To: "Borland's Delphi Discussion List" <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > I think it is a fairly common practise in Windows applications to enable > users to use the keyboard to OK or Cancel a modal dialog no matter which > component has the focus. This is particularly useful for blind users. > As mentioned, you have most likely set the Default property on the OK > button to True, which I always do on model forms. It is also common to > set the Cancel property on the Cancel button to True, so the user can > press Escape to exit the form without saving changes. > > Regards, > Ross. > > ----- Original Message ----- > From: "Rainer von Saleski" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Thursday, December 15, 2005 6:02 AM > Subject: Unexpected Exit from ShowModal Form > > > I use ShowModal forms all over the place ... and they all have a button > that > does some cleanup and sets ModalResult to mrOK in order to exit ... and > the > button only activates when the user clicks it, or the button has the > focus > and the user presses Return (I think). > > But I have one form, not horribly complex, where pressing Return causes > the > form to exit, no matter where the focus is (seemingly). It has 2 > TListViews > (View Style = vsReport), 3 panels, a dozen buttons, half a dozen check > boxes, one combo edit box, half a dozen labels, three timers, and a Rave > RvSystem. > > Any ideas? It's driving us nuts, because we "feel" like hitting Return > all > too often. > > Rainer > > > > ------------------------------ > > Message: 5 > Date: Thu, 15 Dec 2005 01:54:01 -0800 (PST) > From: adolf hitler <[EMAIL PROTECTED]> > Subject: Re: Looking for an Instructor & Course ... > To: Borland's Delphi Discussion List <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=iso-8859-1 > > Hello Alan > > You have a very nice idea. I wrote a few texts on delphi but newer published > and I would teach you.. even start a teaching webpage if you want to help. > WRITE ME PRIVAT with subjet "MIRZASOFT" > > > > Alan Colburn <[EMAIL PROTECTED]> wrote: Hi all -- > > Delphi is a wonderful language--in fact, I can't figure out why anyone would > choose C++ when Delphi is around! However, it's hard to find an instructor > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

