RE: [DUG]: Welcome image

1999-06-09 Thread Rohit Gupta
Paul, Just an observation. If you force an exception for testing, you will find that VCL does not like this construct. You will get 2 to 5 more exceptions of nasty sorts. :-) On 10 Jun 99 at 11:40, Marshall, Paul wrote: If you edit the project's DPR file thus, frmSplash will appear while

[DUG]: Next Y2K like crisis

1999-06-09 Thread Rohit Gupta
Just an observation from one of my very old apps. The next Y2K like crisis is on 2047. Can anyone figure out why ? :-) Regards Rohit == CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand PH(649)

Re: [DUG]: Windows versions

1999-06-09 Thread Rohit Gupta
Chris, Did that produce any workable results ? I have seen other apps use the environment variables to figure it out. On 9 Jun 99 at 8:41, Chris Crowe wrote: Hi all Can anyone (more than one would be great) create a new app and put the code below in and tell me what version gets

Re: [DUG]: Application Return Code - 2

1999-06-09 Thread Rohit Gupta
John, I believe that this does not function under NT, but dont quote me on it. What I do know is that they have stuffed up environment handling and errorlevel handling. Probably deliberately to kill dos apps. On 8 Jun 99 at 15:57, John Christenhusz wrote: Hi folks, It may look like an

Re: [DUG]: Two Delphi programs need a single source

1999-05-31 Thread Rohit Gupta
One easy way is to use a database that supports an autoincrement field. Another one is to have a third proggy that communicates via messages and acts as a number dispenser. On 1 Jun 99 at 11:33, Jason Webb wrote: I hope someone has some ideas as I'm stuck. I have a situation where two

[DUG]: Update of edit controls - repost

1999-05-31 Thread Rohit Gupta
Is there any way to force edit-controls to pull in modified values from internal buffers. Any FieldByName.updates do not reflect into edit-controls. Rohit == CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New

RE: [DUG]: UnInstall aka WipeReg

1999-05-26 Thread Rohit Gupta
STarted with D2. On 26 May 99 at 14:02, Peter Hyde wrote: Rohit wrote: I have recovered now, but the uninstall had done a thorough job - for eg, it removed registry links to dpr, pas, dpk, rpt etc etc even though I still have D1 and D3 installed and those links were not even pointing

[DUG]: TMemo Flicker

1999-05-26 Thread Rohit Gupta
I am adding lines to a TMemo and it scrolls as they are added. I do set the cursor at the end of the process to the start of the memo. But I dont want it to scroll during the add. Any ideas ? Enabled := false/true block just makes the text grey and it still scrolls. If I add all the

RE: [DUG]: Drawing Speed

1999-05-26 Thread Rohit Gupta
Chris, My suggestion is to break down your bitmap into a number of components and rewrite the code to update only whatis changed. On 27 May 99 at 12:43, Chris Crowe wrote: If an application attempts to draw within a locked window, the system = records the extent of the attempted operation

[DUG]: UnInstall aka WipeReg

1999-05-25 Thread Rohit Gupta
Yes another warning. I just uninstalled D2 and it wiped all registry entries including D3 ones... Now I have to spend hours fixing it. How can a programmer be so stupid. :-( Rohit == CFL - Computer Fanatics Ltd. 21

RE: [DUG]: UnInstall aka WipeReg

1999-05-25 Thread Rohit Gupta
Alistair I did reboot. I had to get rid of it as I dont use it and I needed another 60M on that drive to install SP5. I didnt find out till hours and several reboots later. I have recovered now, but the uninstall had done a thorough job - for eg, it removed registry links to dpr, pas, dpk,

RE: [DUG]: UnInstall aka WipeReg

1999-05-25 Thread Rohit Gupta
Max, there is. But everyone installs components in different drives/directories etc. This is a classic example of why Using the registry is a bad idea. I couldnt restore from tape backup without removing SP5. On 26 May 99 at 11:43, Max Renshaw-Fox wrote: You haven't got another profile /

Re: [DUG]: Remote Execution

1999-05-20 Thread Rohit Gupta
which is all DCOM is anyway... - Original Message - From: Rohit Gupta [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Thursday, 20 May 1999 16:01 Subject: [DUG]: Remote Execution Whats the easiest way to let a workstation execute an app

RE: [DUG]: Another Axe thru the OOP model

1999-05-19 Thread Rohit Gupta
Chris, in that situation I use the dfm-to-txt converter and then a proggie called snr (search and replace) to go through all pas and txt files and then convert txt-to-dfm. Thats how I have handled the various migrations D1-D2-D3 as well. On 14 May 99 at 10:23, Carl Reynolds wrote: This

Re: [DUG]: freeing a component editor when the component i

1999-05-19 Thread Rohit Gupta
Have a look at the method called Notification On 18 May 99 at 11:41, [EMAIL PROTECTED] wrote: Hi, How do I ensure that my component editor is notified when the component it is editing is about to be destroyed (or the unit closed)? Rohit

[DUG]: CNKeyDown

1999-05-19 Thread Rohit Gupta
I am trying to use this in a component to preview the keys, but no luck. It does not even fire when the component has focus. I have looked at the VCls and 3rd-party libs for its usage. I have obviously missed something. Any ideas ? Rohit

Re: [DUG]: freeing a component editor when the component i

1999-05-19 Thread Rohit Gupta
I believe that the notification tells you about every component creation/deletion etc... and the form is a component as well. On 20 May 99 at 11:49, phillip.middlemiss@forestrese wrote: The notification method for which component? The TComponentEditor does not have such a method The

[DUG]: Remote Execution

1999-05-19 Thread Rohit Gupta
Whats the easiest way to let a workstation execute an app on the server (or another workstation). Rohit == CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand PH(649) 489-2280 FX(649) 489-2290 email

Re: [DUG]: Ctrl+Home WM_KEYDOWN Message

1999-05-12 Thread Rohit Gupta
As suggested, you can use SelStart and SelEnd etc... However, for future, you might want to note kbd_event - it generates key messages. On 11 May 99 at 18:58, Kevin Wong wrote: Hi All, Can anyone tell me how can I set a WM_KEYDOWN Windows message to the same as the user pressing a

RE: [DUG]: Ctrl+Home WM_KEYDOWN Message

1999-05-12 Thread Rohit Gupta
Dave, it might help if I gave the correct name... keybd_event. you will find it in winapi help. On 13 May 99 at 10:56, Dave O'Brien wrote: OK... Whats 'kbd_event'? I can't find any reference to it. Dave. Rohit == CFL -

[DUG]: Crystal Report Bug

1999-05-12 Thread Rohit Gupta
For developers that are using it, it might pay them to test the handling of database errors. For us, it does not work at all. 1. The execute always returns true, even if the report is not previewed or printed due to a fatal database error. 2. Similarly, Status always says that the

[DUG]: try except in dpr

1999-05-06 Thread Rohit Gupta
In the dpr file, I have to had to put in try except block as follows. Otheriwse on certain exceptions in in the initializtion of units it is nonsense to carry on running the application. The user would just get so many useless exceptions and possible corruption of database. The problem is

Re: [DUG]: Bizarre bug of the day

1999-05-06 Thread Rohit Gupta
Are you trying to trace through it perhaps ? It appears that the E it gives you is a copy, not the original. It may have something to do with $O+, IDE and the above. On 4 May 99 at 15:20, [EMAIL PROTECTED] wrote: Doing the following : Except On E : Exception Do

Re: [DUG]: Reading dfm files

1999-05-06 Thread Rohit Gupta
Steven, I do it all the time, its the safest way to do global changes when you start using a different component app wide or migrate from one Delphi version to another. Also, if the IDE refuses to open the form, which happens often everytime a field in the tabel is deleted, the only way to

RE: [DUG]: try except in dpr

1999-05-06 Thread Rohit Gupta
Dennis, It was a bad choice of words. I lumped formcreate code into initialisation. Any non-trivial code to deal with maths, strings, objects, forms etc can cause exceptions. One of the things that happens in our apps is that they use a commandline parameter to determine where the data

Re: [DUG]: Panel.handle

1999-03-29 Thread Rohit Gupta
You can resize the panel. I wrote a tphoto component a while ago, a descendant of TPanel, it resizes the image and itself according to the image dimensions to preseve aspect ratio. Which leaves a nice beveled phot frame around the photo. On 27 Mar 99 at 7:00, Alistair George wrote: Hi

Re: [DUG]: Barcodes

1999-03-18 Thread Rohit Gupta
Aaron, Ok, I dug out the manuals for the recent three most popular ones we sell and they all support multiple character preamble and postamble. On 19 Mar 99 at 13:36, [EMAIL PROTECTED] wrote: It look slike my time has come to address the Barcodes issue (perhaps a FAQ should be started for

Re: [DUG]: easy question

1999-03-17 Thread Rohit Gupta
Neil, to my knowledge there is no such thing. Delphi 2 onwards are designed for win32 api, so run on 95,98 and NT. There are ways of determining this at run-time though. On 18 Mar 99 at 7:23, Neil Anderson wrote: Does someone know what the compiler directive is to determine if running

Re: [DUG]: Crystal Reports (was: Report Builder Pro)

1999-03-15 Thread Rohit Gupta
Hi Steve, Its worth mentioning to anyone using Crystal, in case they have not realised. The dratted thing reads every record matching the filter of the master table primary index... and all the linked records. It then makes a new master table with everything in it. Thats my understanding

RE: Re: [DUG]: Dumb question of the day

1999-03-11 Thread Rohit Gupta
On 11 Mar 99 at 16:09, Max Renshaw-Fox wrote: No offence intended. None was taken. :-) Rohit == CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand PH(649) 489-2280 FX(649) 489-2290 email [EMAIL

Re: [DUG]: Delphi and Crystal on NT4

1999-03-10 Thread Rohit Gupta
Russel, I use Crystal with Delphi. I have had absolutely no help from their support email address. I finally complained to the president after two weeks of continual email. That produced the help that I needed. It turns out that if you mis-fill their forms, they are just junked. And the

[DUG]: Delphi and Crystal

1999-03-10 Thread Rohit Gupta
Has anyone been able to get the VCL to retrieve all report values like their propoganda dept claims ? I couldnt, the on line help says I cant either - it will happily retrieve all formulas, variables etc but not their current values. That is, there appears to be no way for the report to

RE: Re: [DUG]: Dumb question of the day

1999-03-10 Thread Rohit Gupta
On 10 Mar 99 at 10:23, Max Renshaw-Fox wrote: I guess I should take up the challenge... (OK I'm feeling combative today) Oops, did I hit a raw nerve. :-) Well, I certainly dont feel combatitive. As you know, I made no comment on the developers using Delphi, just its VCL. First, the kind

Re: [DUG]: Delphi and Crystal on NT4

1999-03-10 Thread Rohit Gupta
Russel, have you tried installing crystal on the WS using the WS setup "disk" that they put together ? One of the subdirectories under CRW is just that. Many of our problems disappeared when we started using the setup in there. I dont use 16bit anymore, the 32bit directory is called

Re: [DUG]: Dumb question of the day

1999-03-08 Thread Rohit Gupta
You can do a character by character analysis by trapping keypress/keydown. I do case conversion, capitalising start of words and filtering out undesired characters that way. On 5 Mar 99 at 16:52, [EMAIL PROTECTED] wrote: It's a string grid so that's no good. Rohit

Re: [DUG]: Dumb question of the day

1999-03-04 Thread Rohit Gupta
Well, first, for precisely that reason, I use Orpheus for some user input. Its a pity that Borland did not retain the excelelnt masking ability in turbo vision. Anyway, one way to fix it if it is a tfloatfield is to check the currency property. in the object inspector. On 3 Mar 99 at

Re: [DUG]: FILE of ....

1999-02-25 Thread Rohit Gupta
Further to that, beware that old names are now property names such as Text, Assign, Close. New ones exist to replace them to clarify for the compiler such as AssignFile CloseFile. Else use System.Assign (I think). On 26 Feb 99 at 9:30, Siegfried Kirchmair wrote: Hi, I noticed that in

Re: [DUG]: WINDOWS NT 4 DELETING PRINT JOBS ?

1999-02-11 Thread Rohit Gupta
Amanda, We get this all the time. Even as far back as NT3.51, the printer code is bottom of the barrel. If you are lucky, just a re-install of the driver works. We have had 4 clients so far, where we have to re- install NT. :-) Printer control should be Hardware (unless you have a good

Re: [DUG]: Packages/components in D3

1999-02-10 Thread Rohit Gupta
Yes, it comes and goes, just another irritant one has to live with. :-) Sometimes (but not always), it happens because the pallette is not in focus when the mouse hovers over it. On 10 Feb 99 at 11:33, Alistair George wrote: Hi all. I have noticed an anomaly with 2 other PCs here using D3

Re: [DUG]: Turning off Scrollbars in an MDI mainform

1999-02-08 Thread Rohit Gupta
Gary, Have you tried Enabled ? On 5 Dec 98 at 3:26, Gary Benner wrote: Hi all, I've been trying to turn off Scrollbars in an MDI mainform but to no avail. TForms have a property for the horizontal and vertical scrollbars of class TControlScrollBar, and the visible property is meant to

Re: [DUG]: Removing the Border from a TComboBox

1999-02-08 Thread Rohit Gupta
Chris, I would suggest using something like Infopower, thier grid supports comboboxes amongst other things integrated into the grid. As for sizing of the combobox, its a real pain having all these controls of varying heights. Supposedly, the font determines the height. All I can say is

[DUG]: GetLastError

1999-02-08 Thread Rohit Gupta
After having got the last error, how do I retrive the string description. I have done a search for possible candidates but cant seem to find the function. Rohit == CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL,

RE: [DUG]: NT Device Driver

1999-02-08 Thread Rohit Gupta
The driver is so trivial, its not funny. I have been playing with GiveIO, but it has a major flaw - it gives access to all ports to the app. Worse, it appears to do it for all apps. So, I would like to restrict it to one port. To recompile I need ntddk.h, Has anyone got a copy they can

[DUG]: Creating Fields at RunTime

1999-02-08 Thread Rohit Gupta
How can I create a calculated field at runtime ? Using FieldDefs.Add puts the field in fieldefs, but no where else. It is missing from Fields property , the grid cant display it etc.. Rohit == CFL - Computer Fanatics Ltd.

Re: [DUG]: Creating Fields at RunTime

1999-02-08 Thread Rohit Gupta
Yes I have that. I have succeeded in Fields, FieldByName and FieldDefs properties to recognise the new field. However, nothing else does, such as the grid On 21 Jan 99 at 16:38, John Huttley wrote: Fielddefs.Update? Rohit Gupta wrote: How can I create a calculated field

[DUG]: TBitBtn Trapping Right Arrow

1999-02-08 Thread Rohit Gupta
I cant seem to be able to trap Right/Left arrows on the TBitBtn. I have tried Keydown, Keypress (just to make sure), wmkeydown and wmsyskeydown none of them fire for th arrow keys. Any hints anyone ? Rohit == CFL -

Re: [DUG]: Why?

1999-02-03 Thread Rohit Gupta
For end consumers, the CGA takes precedence anyway. Thankfully no one has tested it yet. For business customers, you should be actively cancelling out the CGA in writing and then that clause is added protection. On 2 Feb 99 at 19:04, James M Sandbrook wrote: Why do we have to put these

Re: [DUG]: DVR

1999-01-02 Thread Rohit Gupta
Is it just me or is everyone re-receiving yesterdays mail ? Rohit == CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand PH(649) 489-2280 FX(649) 489-2290 email [EMAIL PROTECTED] or [EMAIL

<    1   2   3   4   5   6