RE: [DUG]: Windows Help macros (OT)

2001-10-11 Thread Patrick Dunford
If you want to open a URL just use ExecFile. We use this for executing hyperlinks and it works just fine e.g. !ExecFile(http://www.delphi.org.nz/) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ross Levis Sent: Thursday, 11 October 2001 18:01

Re: [DUG]: Some pointers

2001-10-11 Thread Nello Sestini
Sergei I have no idea why that post sat around in the ether for over a week and then suddenly appeared. (check the date - the is the true date I posted it) Glad to hear the Indy stuff worked out - one of these days I'd like to take a look at those components. Have heard a lot of good things

[DUG]: Array of labels in QR

2001-10-11 Thread Mark Howard
Hi Is it possible to use an array of QRLabels in a Quick Report? If so, Is it possible to to create and place these at design time? and the next question (design time or run time) would be "How"? TIA Mark BEGIN:VCARD VERSION:2.1 N:Howard;Mark FN:Mark Howard

Re: [DUG]: Array of labels in QR

2001-10-11 Thread Nello Sestini
I don't see a way to get the Report to recognize array elements in the report design. But if your purpose is to be able to manipulate groups of labels using an index you can use the following shameless hack. Adopt some naming scheme to identify the indexed labels - say for example that the _n

Re: [DUG]: passworddlg

2001-10-11 Thread abaddon
On Fri, 12 Oct 2001 00:38:12 +0530, you wrote: Quiet simple. Open the project source file. Before the Application.Run method, do a LoginForm.Create and ShowModal. In that itself you can decide if you want to continue else you can always do a Application.Terminate. say what?? ...

Re: [DUG]: Array of labels in QR

2001-10-11 Thread Nello Sestini
need to typcast the return value ... function GetMyLabel(Index:Integer): TQRLabel; property MyLabels[Index: Integer]: TQRLabel read GetMyLabel; default; function GetMyLabel(Index:Integer):TQRLabel; begin // in production probably should do some error checking ... return

Re: [DUG]: Windows Help macros (OT)

2001-10-11 Thread Ross Levis
Thanks Patrick. ExecFile doesn't show in the list of macros available in the help software I'm using but I entered it works! Cheers, Ross. Patrick Dunford wrote: If you want to open a URL just use ExecFile. We use this for executing hyperlinks and it works just fine e.g.

[DUG]: Simulate F1 Help?

2001-10-11 Thread Ross Levis
Another Help question. Is there a Delphi command that emulates the pressing of F1 for Help? Application.HelpContext requires a HelpContext parameter but only my main parent controls have HelpContext set. More Info: I have a PageControl with 5 TabSheets, 1 of the TabSheets contains a further

Re: [DUG]: passworddlg

2001-10-11 Thread NIRAV KAKU
LoginSuccessful is a boolean variable in frmLogin which has to be set True or False. Application.Initialize; Application.CreateForm(TfrmMainForm, frmMainForm); Application.CreateForm(TdmdSecureApp, dmdSecureApp); Application.CreateForm(TfrmLogin, frmLogin); frmLogin.ShowModal;

[DUG]: Unconditional Shutdown

2001-10-11 Thread vss
Hi all. I have an app. that can only shutdown IF its logged on as an administrator, and even then it askes if you are sure etc. I need to shut the app. down from another app. but if I do SendMessage (hwnd, WM_CLOSE, 0, 0) it obviously tells you that only the admin can close the app. etc. Is

Re: [DUG]: Delphi 6 Command Line compiler.

2001-10-11 Thread vss
I had a similar problem when using commandline to compile a DPK I have. I found that I had to include the FULL path to the unit. i..e MyUnit in 'c:\units\myunit.pas'; Jeremy Coulter -Original Message- From: Stacey Verner [EMAIL PROTECTED] To: Multiple recipients of list delphi

RE: [DUG]: Delphi 6 Command Line compiler.

2001-10-11 Thread Stacey Verner
I am compiling a dpr (in an automated build process) rather than a dpk, and the units that it can't find are not in list of project files, as they are units for components. This worked fine in Delphi 4. Stacey -Original Message- From: vss [mailto:[EMAIL PROTECTED]] Sent: Friday, 12

RE: [DUG]: Unconditional Shutdown

2001-10-11 Thread Myles Penlington
I presume you use either ExitProcess or TerminateProcess, however you need the process handle for this to work - there is no mention of requiring these to be called by a process it self. Myles. -Original Message- From: vss [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 October 2001 4:17

RE: [DUG]: Unconditional Shutdown

2001-10-11 Thread vss
Thanks for that.its a good place to strat. I had doen a search on the net, but it was all talking about TerminateApp.which is not in Delphi 6 or 5sigh...but this will get me futher I suspect. Thanks, Jeremy Coulter -Original Message- From: Myles Penlington [EMAIL

RE: [DUG]: Unconditional Shutdown - SOLVED

2001-10-11 Thread vss
I did a search on the net, and look what I found !! This procedure takes the name of the EXE then kills it. I am posting as I am SURE others what this too Cheers, Jeremy Coulter uses Tlhelp32, Windows, SysUtils; Function KillTask(ExeFileName: string): integer; const