Re: [DUG] Testing Tools

2008-12-11 Thread Max Nilson
Rohit Gupta asks: > Has anyone come across it or aware what it might be ? I suggest either debugging his Delphi 2007 inside of another Delphi 2007 session, catching the exception and looking to see the stack trace to find the offending component or library routine, or installing one of the IDE st

Re: [DUG] Rave Reports

2008-11-30 Thread Max Nilson
Jeremy Coulter asked further: > I seemed to remember that it output to PDF, but does it also export to Excel too? Ummm, moderately badly as I have tested. The Excel export engine portion makes a bunch of guesses at cell positioning and stuff the generated report data into Excel with a certain amo

Re: [DUG] Rave Reports

2008-11-30 Thread Max Nilson
Jeremy Coulter asked: > Does anyone use Rave Reports in their apps. ? > What have been your experiences. From memory you have to supply a DLL > or maybe 2 with your app. install? Yes, we use RAVE, or more correctly RPPro in the Accredo Business Software suite (nee Profax Accounting), and we have

Re: [DUG] Error message starting Delphi program on Vista

2008-11-23 Thread Max Nilson
John Bird asked: > I have one program that is prone to getting an exception dialog when it starts on Vista You may want to set the current error mode like this before you start messing about with drive volumes that may be unmounted, or otherwise unavailable: ErrorMode := SetErrorMode(SEM_FAILCRI

RE: [DUG] Indy Smtp and XTRA

2007-08-29 Thread Max Nilson
Reuben asked about Xtra and Indy SMTP sending. Had a customer with the same problem, so I did some tracing and hunting and found that if you set the AuthenticationType to atNone, the XTRA SMTP will allow you to send mail at the moment. Go figure! Cheers, Max. ___

RE: [DUG]: CVS

2003-11-06 Thread Max Nilson
Rohit Gupta asked: > Other VCSs > = > I have had a relook at most of them... primary reason to > discard them is that we need > concurrent checkouts - otherwise Teamsource is superior. :-) Regards I recommend having a look at Perforce (www.perforce.com). We have four developers working

RE: RE: [DUG]: octane

2003-10-07 Thread Max Nilson
Phil Scadden asked: > Is there now a proposal that .NET replaces win32 eventually?? Short answer: YES! My take on this situation is as follows: 1. Microsoft has already been bitten once having to support multiple architectures (see Alpha and MIPS), and to avoid this problem in the future (see

RE: [DUG]: Spanish Problem

2003-10-01 Thread Max Nilson
[EMAIL PROTECTED] asked: > The above function extracts 287.472 which ends up as 287 in Depth > > Any ideas why this may fail on a Spanish OS. It could be because Spanish (like many European counties) uses , (comma) as the decimal seperator, and the numbers with . (dot) as a seperator get the co

RE: [DUG]: anyone heard more about newsgroups and when they will be available again?

2003-09-25 Thread Max Nilson
Chris Veale asks: > Anyone heard more about newsgroups and when they will be > available again? All that I can see is on http://bdn.borland.com/ where John Caster says "The current public newsgroup server problems are the result of both software glitches and hardware failures. We are working to

RE: [DUG]: Form size changing/scrolling?

2003-09-21 Thread Max Nilson
Warren Slater asked re form scaling: > If any one has a better way of doing this comments would be appreciated. I found that the most elegant way to fixing the large fonts scaling issue was to patch the code in Forms so that the scaling code included scaling the form size as well the controls siz

RE: Re[2]: [DUG]: ShellExecute(Application.Handle, nil, 'MailTo:

2003-08-03 Thread Max Nilson
Alistair George said: > I want the system information, not the bug. Try the "MiTeC System Information Component" available from http://www.torry.net/vcl/system/systeminfo/msysinfo.zip and having the following description: MiTeC System Information Component 7.2 Component providing detailed system

RE: [DUG]: Previewing mouse events in a panel

2003-07-30 Thread Max Nilson
Neven MacEwan asked me: > I got the impression that SetCapture forwarded all messages > to the TWincontrol even when not 'hot' so would I have to just call > ReleaseCapture when the mouse went 'out of bounds' Correct. At some point you are shifting you interface into a "mode" where the mouse is c

RE: [DUG]: Previewing mouse events in a panel

2003-07-30 Thread Max Nilson
I just said: > You will also need to handle WM_CANCELMODE messages appropiately, and in > some cases generate your own WM_CAPTUREMODE messages to ensure that all of > your capture state handling remains correct. Oops, nasty typo there, should read "ganerate your own WM_CANCELMODE messages". There

RE: [DUG]: Previewing mouse events in a panel

2003-07-30 Thread Max Nilson
Neven MacEwan said: > No what I'm doing is a panel which can layout the TWincontrols > within it, but I'm using MouseMove to change the cursor to the relevant > drag cursor, but as I hit a control, mousemove ceases for the panel! > So I was wondering if there was some method for previewing mouse e

RE: [DUG]: Interface Inheritance

2003-06-15 Thread Max Nilson
Karl Reynolds asked me: > Hmmm. I'd like to hear of a situation where you wouldn't want an ancestor > interface to be available where the descendant is. OK, one example I foiund within two minutes of looking into the MSDN is the follwing quote directly from Microsoft: (ms-help://MS.MSDNQTR.2003A

RE: [DUG]: Interface Inheritance

2003-06-15 Thread Max Nilson
Todd Martin asks: > I'm thinking the VTable entry for the ISecondDescendant interface, might > link back to IFirstDescendant somehow. No, The VTable specification for interfaces is basically a chunk of of vitutal method table that implements the methods defined by an interface. Interface "inherit

RE: [DUG]: Resizing for XP title bars

2003-06-03 Thread Max Nilson
David O'Brien asks: > Any easy way of dealing with XP's title bar size change? Apart from > leaving a gap at the bottom of the form? Just thinking about that myself. I think the best solution would be some code in in you base forms CreateParams that detects XP and increments the height of the win

RE: [DUG]: Modulizing Apps. with Packages

2003-06-03 Thread Max Nilson
Jeremy Coulter bemoaned: > SO, can I do the above slightly differently so I can just distribute the > EXE without have to also send out the runtime BPL's too? > Or am I better to use some 3rd party plugin tool? I have done some experimenting in this area of distribution and have a few observarion

RE: [DUG]: How to detect if a DLL/BPL is already loaded?

2003-04-03 Thread Max Nilson
Myles Penlington asks: > Subject: [DUG]: How to detect if a DLL/BPL is already loaded? > I can think of several other ways to achieve this. I just don't want > to write any code to achieve it - is is there a Win32 api call that > can achieve this? Just use the GetModuleHandle call to try and get

RE: [DUG]: Large Fonts

2003-03-20 Thread Max Nilson
Alan Rose said: > Third party resizing components aside. I would be keen to hear from anyone > how they dealt with resizing issues between large and small fonts. The > typical problem you see is a form border covering components placed at the > edge of the form when viewed on a PC using large font

RE: [DUG]: Tip for sore eyes

2003-03-12 Thread Max Nilson
Nicholas Sherlock asks: > I'd *love* to have a multiple monitor setup. In my opinion, it would > offer a huge boost in productivity and usefulness.. what have your > experiences been with the multi-monitor setup? I used to run dual Riva TNT2 cards (one AGP, one PCI) and had a second smaller monit

RE: Re: [DUG]: Two questions

2003-03-06 Thread Max Nilson
Samuel Allan asked: > Sorry, I think I have not been clear. I want people to inherit my > component (a data module descendant). When they do so, I want > some code to be written for them, like when I create a new form > the var ... code is written for me. You need to write a New Object expert. Th

RE: [DUG]: Freeing Stringlists.

2003-03-02 Thread Max Nilson
Neven MacEwan commented: > Max > > a 100! as many as that? :-) Well that's just a wild ass guess of the top of my head 8-) If you are wanting a CPU by CPU break down of the theoretical cycle count, followed by a discussion of various effects different levels of caching, memory architecture, code

RE: [DUG]: Freeing Stringlists.

2003-03-02 Thread Max Nilson
> I agree. The use of assigned() is totally unnecessary in that context. Um, guys, your arguing over the difference between perhaps 100 CPU cycles, vs 200 CPU cycles. On modern machines you're not going to be able to measure this difference at user time resolution (that is in seconds). Cheers, Ma

RE: [DUG]: Arrow keys

2003-02-25 Thread Max Nilson
Rohit Gupta asked: > I have a component descended from TCustomPanel. Its keydown > just does not see the arrow keys what gives. I have examined > other controls but can not figure out the missing magic. The arrow keys are being eaten by the TCustomForm.CMDialogKey processing. If you want to

RE: [DUG]: Printing Barcodes

2003-02-12 Thread Max Nilson
James Sugrue said: > Rave Reports in D7 has barcode support built in. Unfortunately we have had feedback from some bar code experts that indicate some problems with the Rave Reports bar code. Firstly is that the quality is only just adequate for general scanning, and secondly that when these are

RE: [DUG]: Terminal Server

2003-01-22 Thread Max Nilson
Rohit Gupta asks: > Has anyone used Terminal Server for their Delphi apps ? > > Have you any experience to share ? Any pitfalls to watch out for ? Yes, we have a fairly large number of clients using our applications via Terminal Server these days. There are two warnings I can provide that may be

RE: [DUG]: Windows ME

2003-01-13 Thread Max Nilson
Andreas said: > Not that this helps you, but for the record, Windows ME's is a progression > of Windows 98 code-base not NT/2000. Windows XP, on the other > hand, evolved > from a Windows 2000 code-base, so I would expect it to return > VER_PLATFORM_WIN32_NT. (Maybe someone could confirm this?) C

RE: [DUG]: C++ Name mangling

2003-01-06 Thread Max Nilson
Phil Middlemiss said: > we don't have the OBJ files, just the lib files. Both MS and Borland have library utilities (the MS one is called LIB) that allows you to stick OBJ's into a library, and remove them later. That's how library files are created in the first place! So it you have the .LIB fil

RE: [DUG]: C++ Name mangling

2003-01-06 Thread Max Nilson
Phil Middlemiss said: > that's what I thought it would be. My problem though, is that I'm > not quite sure what I should be looking for to find the correct > #pragma or declaration I have just thought of another approach that you can take to doing this, although it may be more work that its worth

RE: [DUG]: C++ Name mangling

2003-01-06 Thread Max Nilson
Phil Middlemiss asks: > The header file for the lib has this declaration: > extern int __cdecl mobileCreateConnection(LPTHIS_CONNECTION connection); > and if I call mobileCreateConnection in my code then, when compiling, > I get the error: > [LinkerError] Unresolved external '_mobileCreateConnect

RE: [DUG]: Shortened file paths

2002-12-12 Thread Max Nilson
David O'Brien asks: > Anyone know how to get a string with the '...' replacing long path names? > > I'm sure there is a function to do it but don't know where to look. > > i.e > c:\my documents\the quick brown fox\freds stuff\fred.doc > = > c:\my documents\...\fred.doc I think you are looking for

RE: Re[3]: [DUG]: Case Statement

2002-11-21 Thread Max Nilson
Alistair George gumpted: > Ho Hum, its back to the If then > Else; what a drag!! What about using an ActionList and assigning appropiate actions to each of the menu items? That the beter way to approach this enbtire area, because the same action can be used on a speed button, a menu item , a key

RE: [DUG]: Detecting credit card type by card number

2002-10-16 Thread Max Nilson
Bob Osborn asked: > That's handy! On a similar thread - does anyone have the algorithm for > validating IRD numbers? I had it a few years ago and somehow lost it. Here in all its glory is an IRD number validator. I implemnted this from the IRD documentation and it appears to validate IRD numbe

RE: [DUG]: ODBC

2002-10-03 Thread Max Nilson
Paul McKenzie asks: > Does anyone know how to extract a database filename and path > from an ODBC setting ? Ummm, I've thought hard about this and I have no idea what you mean by "ODBC setting". Perhaps you mean a DSN? or do you mean you want to extract this information from a connection or stat

RE: [DUG]: .frm files

2002-10-03 Thread Max Nilson
Paul Lowman asks: > anyone know of a > way to either translate them or otherwise load them into D4 ? The following code shows you how to do this conversion using Delphi's internal utility routines. procedure ProcessFile(const Filename: string); var DFMStream: TFileStream; NewStream: TMemory

RE: [DUG]: Checkbox

2002-10-01 Thread Max Nilson
Jeremy Coulter asks: > What I want it for is a properties page where the user sets up what they > want the app to look like etc. so saving specific properties like > IndexItem, Value, text etc. of the components based on their type, is > the best way to go. and later mentioned: > Ok, but how do

RE: [DUG]: A COM interface for a TStream object

2002-09-26 Thread Max Nilson
Benjamin Vaughan said: > TstreamAdapter was just what the doctor ordered. Do be aware there was a bug in the Delphi 5 version of TStreamAdapter.CopyTo that I found and should have been fixed for Delphi 6 and 7. If you on Delphi 5 you will need to patch this before going to much further, but of

RE: [DUG]: RTTI

2002-09-25 Thread Max Nilson
Neven MacEwan said: > I just noticed IsPublishedProp in TypeInfo Damn, how about that! You go and add utility routine into your code in Delphi 2 days, and then 6 years later you get told that some where along the upgrade path Borland added a similar routine. Cheers, Max. -

RE: [DUG]: RTTI

2002-09-25 Thread Max Nilson
Rohit Gupta asks: > I cant seem to find it right nowbut how do I find out if a > control has a > particular published property and how do I access it ? The other methods are somewhat lengthy, so here's the code we use for this to determine if a property is available on an object: function P

RE: [DUG]: Interbase and Citrix Environment

2002-09-18 Thread Max Nilson
Kyley Harris said: > I believe it will need to reside on the same machine. Most certainly the data base (tat is GDB files and friends) must reside on the same machine as the IB/FB server. > Or possible with a network drive map you might trick interbase. This is explicitly disallowed by the IB/

RE: [DUG]: Retrieving user details from Outlook

2002-09-18 Thread Max Nilson
Dave Jollie asked: > How do I get at their user profile or at the Address book, > in order to retrieve their DDI number? There are Delphi translated API's available to the Windows Address Book in the JEDI API page. Have a look there and you'll find what you need. You may also want to look at use

RE: [DUG]: Code formatter

2002-09-18 Thread Max Nilson
Neven MacEwan asked: > Also what do people use for source control (quick survey) We currently use CVS running on Linux, with WinCvs front ends. Apart from the usual grunbles about CVS its works nicely. We are concidering moving to "Surround SCM" from Seapine Software www.seapine.com as it has f

RE: [DUG]: Delphi 7 comments...

2002-09-17 Thread Max Nilson
Nahum Wild said: > The XP Theme stuff in Delphi 7 is actually a freeware component available > from this [http://www.lischke-online.de/] site. Check out the news item > about is a bit down the main page. True, but if you look at these components you see that to make it all work Mike has had to

RE: [DUG]: incorrectly handled in Edit Box - WHY?

2002-09-10 Thread Max Nilson
Giovanni asked: > We're not clicking the OK Button just pressing Enter so why is > the handler called? Because VK_ENTER is broadcast to the forms controls as a CM_DIALOGKEY message before being dispatched in the usual way. If the OK button is set to default then its being clicked by the CM_DIALO

RE: [DUG]: Delphi 8 ?

2002-09-04 Thread Max Nilson
Robert Martin asks: > I went to the presentation yesterday. Is anyone planning to rush out and > buy Delphi 7? If so which features attracted you? I want to get my hands on D7 soon. We are still developing with D5 at present as D6 offered no improvements that we needed. But D7 includes XP the

RE: [DUG]: [Q] Dynamic Arrays

2002-08-26 Thread Max Nilson
Donovan J. Edye asked: > Are dynamic arrays automatically released when they go out of scope? Yes. And also released when you destroy an object that conians one, or take a record out of scope that contains one. In actual implementation they sort of piggy back on the same code that handles dynam

RE: [DUG]: Menu appears white on XP

2002-08-14 Thread Max Nilson
Ross Levis asks: > Any ideas why this is happening? reguarding Delphi5 and XP common controls. I've noticed the same sort of wierdness in our application when I did the same thing. But I soon realised that getting Delphi 5 to do XP controls is not a trivial thing, and secondly Delphi 7 has buil

RE: [DUG]: Graphic in QR

2002-08-08 Thread Max Nilson
Mark Howard pleaded: > I feel that the clue to this is the difference in apparent sizes > The natural print size for this image from PhotoPaint is only 30x30mm > while the TQRImage (with autosize set True) is trying to print it at > 120x120mm. It's when I have to reduce it's print size that I su

RE: [DUG]: Emailing out of Delphi - now it works!

2002-08-08 Thread Max Nilson
David Brennan said (tounge in cheek): > Of course! The standard Microsoft trouble shooting check list: > > 1. You have a problem? Reboot your machine. Does the problem > still persist? You missed: 1b. Do you run any program that is locally written and supported? If so ring the authors and blame

RE: [DUG]: TestComplete

2002-08-01 Thread Max Nilson
Rohit Gupta asked us: > Has anyone used TestComplete or AQTest ? Any comments about > > 1. How easy it is > 2. Does it work ?Regards Yes, we have AQTest, purchased in an attempt to provide ourselves with a formal reversion testing framework. Its a great product and certainly can manipulate al

RE: [DUG]: Actions, shortcuts and some keyboards misbehave

2001-11-11 Thread Max Nilson
Patrick Dunford commented: > I have seen something odd on a Compaq keyboard where pressing Page Down or > something would cause the Delphi editor to open a new editing > window for the > same unit. We assumed that the keyboard was sending extra keystrokes of a > different character for some reaso

RE: [DUG]: Setting Attributes in XML

2001-10-18 Thread Max Nilson
Nic Wise asked: > Well, yeah - but how compliant are the other parsers? the MS one and > especially the IBM one, is very compliant. Well, the OpenXML native Delphi parser is so compliant that the author has found several bugs in the actual XML standards that he had had to get resolved by the com

RE: [DUG]: Debugging Troubles

2001-10-18 Thread Max Nilson
Stacey asked about a nasty Windows event exception: > How do I go about debugging a problem like this? The best approach that I can think of, baring the Zen method of just fixing it 8-), is to do some serious event logging in your code. This kind of event being sent to a destroyed handle is ver

RE: [DUG]: Alpha Blend

2001-10-09 Thread Max Nilson
> Hi all. I take it the Alpha blend on the forms in D6 is only going to > work on Win2k and later (XP and ME also) ?? The new AlphaBlend GDI call was only added with Win2000 according to the MSDN, but you can do you own AlhpaBlends and such using the Grahpics32 library available from various plac

RE: [DUG]: Implmenting my own field type

2001-10-04 Thread Max Nilson
Nirav Kaku asked: > Thanks for eveything. Information was pretty useful. So I did > what you said. My field (TNKCryptField) basically is an auto > encryption/decryption field. That is, it expects data as string and > encrypts that string. That encrypted data (binary) is stored in the > tabl

RE: [DUG]: Implmenting my own field type

2001-10-01 Thread Max Nilson
Nirav Kaku said: > That's exactly what I need to do. That is to add extra > functionality to the field. But I am not too sure about how to go > about it. Not too difficult depending on exactly how much you want this integrated into the design time environment. Assuming Delphi 5+: Step 1.

RE: [DUG]: Implmenting my own field type

2001-10-01 Thread Max Nilson
Nirav Kaku asked: > Anyone here has written his own field type here? Basically I need to do > something with the field value before I post it to the table and > do something else when I retrieve it. Yes, we have written lots of new field types, in fact we have replaced the entire default set of

RE: [DUG]: [Q] Component Questions

2001-09-06 Thread Max Nilson
Donovan asked: > 1. Determine when MyProp is changed so that TMyDescendantComponent > can take some specialised action The main way to achieve this is to modify the base component to use a SetMyProp to stire the new value into the FMyProp, and either have this SetMyProp procedure virtual so that

RE: [DUG]: Lazarus

2001-08-27 Thread Max Nilson
Mark Derricutt > I'm not sure about Borlands extensions or objectization of > Pascal, I guess they have copyrights on it, what about the > original pascal implementation? Borland hasn't got a leg to stand on here, because the actual work of changing the original Pascal (with extentions) into Obj

RE: [DUG]: [Q] "Unable to expand" in object inspector....

2001-08-26 Thread Max Nilson
Donovan J. Edye asked: > However when I try and expand AttCountry in a TADSVenueEntity > component I get an "Unable to expand" error. Can someone > see what I am doing wrong here? Interesting problem, and I'm not sure what the error message is being caused by, but I do have some ideas where

RE: [DUG]: Duplicate an Object & Data

2001-08-14 Thread Max Nilson
One way of doing object cloning is to design your object so that all of the important values are exposed as properties, and to write a generic property copying method. Then you simply create a new object of the same class as the original object, and then copy over all of the properties. This provi

RE: [DUG]: Kylix now Free for Open Source Projects

2001-07-26 Thread Max Nilson
Corey Murtagh asked: > Even more importan question... if Kylix uses any GPLed code, then doesn't > the GPL require it to be open-source too? Just a thought :> As a veteran reader of IANAL discussions on slashdot about the GPL I think that I can clear up this issue. If Kylix depended on any GPL

RE: RE: RE: [DUG]: hrGetOneProp

2001-07-24 Thread Max Nilson
Jason Coley asks: > When I do this I get a Incopatible Types TTagArray and TSPropTagArray on > > Result := pmp.GetProps(@TagArray, 0, PropCount, Props); > > Any ideas? Yes, lie to the compiler with some casting 8-) Result := pmp.GetProps(PSPropTagArray(@TagArray), 0, PropCount, Props); What yo

RE: RE: [DUG]: hrGetOneProp

2001-07-24 Thread Max Nilson
Jason Coley asked me: > Do you know how to use the getProps to get more than one property, I > can't seem to get more than one, so I thought the code maybe faster if I > used the GetOneProp, but that may just use the GetProps as your code > does. So do you know how to get more than one at a time?

RE: [DUG]: hrGetOneProp

2001-07-24 Thread Max Nilson
Jason Coley asked: > Does anyone no of a delphi version of the MAPI hrGetOneProp function? The code I hacked up to get a single property is the following: function TFullMAPIManager.GetProperty(pmp: IMAPIProp; Tag: ULONG; var pprop: PSPropValue): HRESULT; var TagArray: TSPropTagArray; Prop

RE: [DUG]: Property Editor for an object

2001-07-22 Thread Max Nilson
Edward Huang asked: > In object inspector, we can expand properties like 'Font', 'Constraints' > etc, and set property for these objects. > > How can I let Delphi to expand my own object property like them? > At moment, a customised object property comes up a dropdown box > with no options to sel

RE: [DUG]: Cannot run Delphi 5 in Hi-Resolution

2001-07-12 Thread Max Nilson
Dedy Darmayanto asked: > But, why Delphi does not work with hardware graphic acceleration ? The problem is not so much Delphi as in the device drivers for the video card/integrated video you have in your machine. Apart from Matrox and nVidia drivers most of the others venders in the market provi

RE: [DUG]: If you had to choose (win98se or WinMe)

2001-07-05 Thread Max Nilson
> For development if you had to choose 98 or Me which one would it be. I > have a 2000 system > already but want to get another for games. I mean testing... For testing (I and I mean testing 8-) 98 on 2000 I use VMWare to book a 98 session inside 2000. All you need is a fast enough CPU (and lot

RE: [DUG]: PC Speaker

2001-07-01 Thread Max Nilson
David O'Brien asked: > Any ideas how to control the PC Speaker in D5? On WinNT you use Win32 API call Beep which driver the speaker for you. On Win9x you do it the old fashioned way by fiddling with the speaker IO port and timer to generate a tone. Check in an old DOS reference book, or check th

RE: [DUG]: if case else

2001-06-28 Thread Max Nilson
Dave asked: > I thought VB required a ';' to continue the same statement on a new line? > That sounds plenty weird to me. VB uses the _ character to mark a line continuation, and just for fun uses : to seperate statements on the same line. Most entertaining 8-) Cheers, Max. --

RE: [DUG]: if case else

2001-06-27 Thread Max Nilson
Ross Levis asked: > I have another beginners question. The following generates the compiler > error ' ; not allowed before ELSE'. The other posts have address the practical solutions to this problem, but there is a deeper issue here that should be mentioned for beginners to chew on. Nicholas W

RE: [DUG]: Blockwrite strings

2001-06-24 Thread Max Nilson
Ross Levis asks: > The on-line help suggests the buffer parameter can be any variable type > so why doesn't it work? BlockWrite is defined as follows: procedure BlockWrite(var f: File; var Buf; Count: Integer [; var AmtTransferred: Integer]); and the key things is the var Buf; parameter.

RE: [DUG]: Traps with MessDlg()

2001-06-20 Thread Max Nilson
Steve Peacocke commented: > I also suppose it depends on what you are trying to do - for example by > giving your application a unique interface you are giving it a brand and > therefore recognised against the competition. Oddly enough, now that we are 98% custom, in house written controls and g

RE: [DUG]: keypreview and trapping F1

2001-06-18 Thread Max Nilson
Peter Hyde asked: > In a D5 project I'm not finding it possible to trap the F1 key to give > context-sensitive help. Instead, it is always going to the form's > HelpContext. (I need to vary the help context according to which > tab of a PageControl is active). F1 is very special in its handli

RE: [DUG]: Messages

2001-06-17 Thread Max Nilson
Luke Pascoe asked: > How do you send/post a message to a component that doesn't have a handle > (Like a TGraphicControl)? BTW, The component will be sending the > message to itself, but it needs to go via the message queue so > DispatchMessage is no good. The way that our code does this at profa

RE: RE: [DUG]: Interfaces

2001-06-12 Thread Max Nilson
Sandeep asks: > If I have to redeclare all the methods in interface in the descended > class then why not get rid of interface and I still have the same > thing. What's wrong with that? Nothing, but if you want to have two seperate object hiearchies sharing the same interface you only have two c

RE: RE: [DUG]: Interfaces

2001-06-12 Thread Max Nilson
Neven MacEwan quite correctly points out: > You can also delegate the inplemenation of an interface in delphi > ie > > TClassC - class(TClassA, InterfaceB) > private > FClassB: TClassB > property > InstClassB read FClassB write FClassB implements InterfaceB > end But if you are doing any CO

RE: RE: [DUG]: Interfaces

2001-06-12 Thread Max Nilson
Colin Fraser asked: > Any disadvantages using Interfaces??? Not really. The main issue is designing your classes so that you can actually take advantage of interfaces, rather than deep inheritance. > Any slower performance??? No. Delphi interfaces are actually implemented as pointers to a part

RE: RE: [DUG]: Interfaces

2001-06-12 Thread Max Nilson
Sandeep asks: > How do interfaces help i n multiple inheritence? If > I have a ClassA and ClassB then if I want to inherit ClassC from > ClassA its simple. But if I want to inherit from ClassA and ClassB > then using interface I have to implement all the functions in ClassB > again in ClassC, so

RE: [DUG]: Interfaces

2001-06-12 Thread Max Nilson
Sandeep commented: > Only one reply so far, so should I assume that there are not many > people using Interfaces. Interfaces are useful for a variety of things. In object oriented programming terms that are used to implement the concept of generisity, and this complements polymorphism and inheri

RE: [DUG]: Listview combo problem

2001-06-12 Thread Max Nilson
Mark Derricutt asked: > I'm sure it'll prolly be something really simple that I've overlooked, > anyone wanna take a peek and see if they can spot anything? The only differences that I can see between what you are doing and what I do are, firstly, I turn of the WS_CHILD style bit so that the dro

RE: [DUG]: IB Downloads

2001-06-10 Thread Max Nilson
Mark Howard asked: > If I want to try Open Source IB (and I DON'T want to re-open the discussion! > - although there was some useful stuff in there) what version should I > download and from where - there seem to be several options. Not sure if I've > got the right one. http://www.ibphoenix.com

RE: Re: Re: [DUG]: Tuning SQL

2001-06-10 Thread Max Nilson
Corey Murtagh asked: > >Firebird <> IB - it might have at v6.0, but not beyond that - the code > >forked almost immediatly. > > Which was expected by a lot of people. Firebird is based on the > opensource IB6, but divergent from it. Wonder if the various IB6 ODBC > drivers and component sets ou

RE: [DUG]: F10 = alt key

2001-06-06 Thread Max Nilson
Wayne Roser asked: > However, in my application f10 seems to be equivalent to pressing the alt > key and it is a problem. I wanted to intercept f10 and use it for > navigation but every time I press it, I get a menu selected or deselected > whether or not I intercept the key press. F10 is a stan

RE: [DUG]: F12 - CPU debug window

2001-06-06 Thread Max Nilson
Paul Lowman asked: > I,ve always had CPU window enabled and I have never seen this before in > Win95. I'm running Delphi 4. My app uses F12 to perform a certain > task as a shortcut. What can I do to kill this behaviour ? Nothing that I know of 8-( We just try and avoid pressing F12 as it is a s

RE: [DUG]: F12 - CPU debug window

2001-06-06 Thread Max Nilson
Paul Lowman asked: > I've just set up a new PC with Windows 2000 and I find that if I > hit F12 in > an app running from the IDE the CPU debug windows pops up and the app > stops - why ? Because its always done that! This was available in Delphi 4 if you enabled the CPU window, and its always be

RE: [DUG]: Exe Size

2001-06-06 Thread Max Nilson
Corey Murtagh said of UPX: > When you > run a UPX (or ASPack, or...) packed executable it first unpacks it to > memory then runs it, so it actually requires a little more memory > initially. And as has been discussed here before, this is actually a bad idea. The normal behaviour for Windows (and

RE: [DUG]: popup window components and focus...

2001-05-30 Thread Max Nilson
Mark Derricutt asked: > I finally have my combo box type component working properly, its dropping > down and up and doing everything sweet, apart from one problem, once I've > selected an item in the embedded control, I can't click and give focus to > any other control on my form, unless I press

RE: RE: RE: Re: [DUG]: Delphi 3 & Delphi 5 differences with DLL's?

2001-05-23 Thread Max Nilson
Jason grumped: > I completed a search for these files and nothing was returned? The URL you need is http://www.microsoft.com/msdownload/ieplatform/ie/comctrlx86.asp and this contains the 4.01 and 5.0 ComCtrls updates. The only way to get the 5.5 commmon control update is to install IE 5.5 AFAIK.

RE: [DUG]: Mouse Capture

2001-05-17 Thread Max Nilson
Luke Pascoe asked about mouse capture: > What I want is to Capture any mouse click on the screen while the form is > visible and deal with it myself Have a look at the TControl.MouseCapture property and its implementation. This is a Delphi interface onto the Windows capture control facility, whi

RE: [DUG]: IDE Shortcut?

2001-05-01 Thread Max Nilson
James Low asked us: > While on this IDE thing, is there any way in delphi to block indent by > simply pushing the tab button when a block of text is selected (a > la, again, vb). Ctrl-K-I seems a bit clumsy for such an often used task? Try Ctrl+Shift+U and Ctrl+Shift+I. Same number of key presse

RE: [DUG]: IDE Shortcut?

2001-05-01 Thread Max Nilson
Mark Derricutt asked of us: > --On Friday, 20 April 2001 3:37 p.m. +1000 [EMAIL PROTECTED] wrote: > > > Ah, wouldn't have know because I use the ctrl + k + 0..9 shortcut. > > Incidently, why are there two shortcuts? FYI the answer to this is that there are the standard Delphi editor keys, plus a

RE: [DUG]: Accessing a form within a RLL

2001-04-29 Thread Max Nilson
Damien Long asked: > I am trying to access a form that is within a RLL. I can't change the RLL > but I need to be able to Show the form within that RLL as modeless. Its > currently being shown as modal by an exported procedure within the RLL. > > Thanks in advance. I don't think that the thanks

RE: [DUG]: Text capture

2001-04-29 Thread Max Nilson
> I am in the middle of writting a control to display Unicode. > I have had to in the end write my own control to do this, which > is ok, but, I have a question. Is there a way to get some text at > a point on the screen ? i.e. where the mouse is? > Its not important, but would be handy if I could

RE: [DUG]: Scripting Languages...

2001-04-25 Thread Max Nilson
> I was thinking along the lines of working with any registered > ActiveScript, but have no idea how to go about doing this. I > know Max wrote his own MaxBasic thing, but I fear thats beyond > me :P Its is a lot of work, and its still not done yet. Its amazing just how much is packed into the V

RE: [DUG]: COMmunication Breakdown

2001-03-28 Thread Max Nilson
Neven MacEwan asked a funkly COM question: > object COMa and COMb, COMb exposes a property a of 'type' COMa > > it works if I import the TL and use the CoClass create to > explicitly create an instance of COMa of the type interface > that COMb expects > but if I 'Late bind' ie let COM work it al

RE: [DUG]: Mapi...What is the most painless way to get started.

2001-03-26 Thread Max Nilson
Steve Aish asked the assembled notables: > Does anyone know of a sample application or something that > shows how Delphi deals with Mapi. (I am also reasonably new > at Delphi). Yikes, your diving into a deep pool here 8-) Raw Delphi only provides access to Simple MAPI, but the JEDI (http://www

RE: [DUG]: Number of lines in text file

2001-03-19 Thread Max Nilson
Neven MacEwan kindly said: > You are right (as usual) Probably from a considered effort to think hard then port if I know something relevant. You'll notice many time I say nothing in an attempt to conceal my ignorance of the topic under discussion 8-) > that the VM manager would be the best sol

RE: [DUG]: Number of lines in text file

2001-03-19 Thread Max Nilson
Sergei Stenkov asked of me: > Max Nilson wrote: > > > this works nicely for high speed data importing. Biggest file I have > > tested with was 10MB worth of stock item data, and that only > > took about three and four seconds to walk. > > I too believe that memory

  1   2   3   >