[DUG]: UML Tools

2001-06-12 Thread Neven MacEwan
OK Guys CodeRush V ModelMaker v [Other suggestions] What is the best UML tool for Delphi Regards Neven N.K. MacEwan B.E. EE Ph 649 574 0027 Fax 649 570 2706 [EMAIL PROTECTED] A truth denied the light of action will wither to a promise, propaganda and then a lie

[DUG]: TToolbar button resize glitch

2001-06-12 Thread James Low
When I add a button (right mouse, add button) to a ttoolbar and resize it, all the other buttons resize also. Is this a known problem or is there a magic property on the toolbar I need to set to stop this spectacularly useless behaviour. This is all design time, Win98 2ed, D5 PRO (latest sp). In

RE: [DUG]: TToolbar button resize glitch - clarification

2001-06-12 Thread Alan Rose
That's the toolbars normal behaviour with a ttoolbutton. For unique button sizes try using tspeedbuttons instead -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of James Low Sent: Wednesday, June 13, 2001 9:00 AM To: Multiple recipients of list delphi

RE: [DUG]: TToolbar button resize glitch - clarification

2001-06-12 Thread James Low
Thanks. I can see now that VB does the same thing and that the menus I am used to looking at are probably coolbars. -Original Message- From: Alan Rose [mailto:[EMAIL PROTECTED]] Sent: 13 June 2001 09:07 To: Multiple recipients of list delphi Subject: RE: [DUG]: TToolbar button resize

[DUG]: Listview combo problem

2001-06-12 Thread Mark Derricutt
Hi guys, finally getting back to my combo/listview component problem (sigh, I hate jumping between jobs at times)... Anyway, I've attached the component source, although I'm not sure if the list will accept the message with it... Anyway, once the listview has been clicked on, nothing else

RE: [DUG]: ADO components and SQL 2K

2001-06-12 Thread Paul Ritchie
MSDN says 0x80040E37 is The specified table does not exist. http://support.microsoft.com/support/kb/articles/Q168/3/54.asp Paul Ritchie Radio Computing Services Ltd. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 9:47 PM To:

[DUG]: ADO components and SQL 2K

2001-06-12 Thread vss
Hi all. I just went to use the ADO components in Delphi 5 with SQL 2K server, and got an OLE error when I tried to connect. I am ruunin gth update for MDAC 2.6 or whatever that is on the Borland website, but still no luck. The error is OLE Error 80040E37 Has anyone seen this problem ? is

[DUG]: Interfaces

2001-06-12 Thread Sandeep
Is there any advantage of using interfaces? Sandeep Software Developer CFL [EMAIL PROTECTED] http://www.cfl.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website:

Re: [DUG]: Interfaces

2001-06-12 Thread Neven MacEwan
Sandeep Simple Answer - HUGE Neven - Original Message - From: Sandeep [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Wednesday, 13 June 2001 10:27 Subject: [DUG]: Interfaces Is there any advantage of using interfaces? Sandeep Software Developer

RE: [DUG]: Listview combo problem

2001-06-12 Thread Mark Derricutt
Hi Max, thanks for the pointers, if I use a TSpeedButton inside the droppanel, it works fine, but if I use a TEdit, or TButton, I get the original behaviour again. Its as thou the WMMouseActivate is not being set, although I'm wathcing it do just that... In Delphi 4 - MA_NOACTIVATE = 3, is

RE: [DUG]: Listview combo problem

2001-06-12 Thread Mark Derricutt
An interesting twist code is back to how it was If in the onchange event for my comp, I look at the forms ActiveControl - its not assigned, so nothing is active, I also noticed that my form isn't activated (noticable by the title bar being grey)... In my on change, I did a

Re: [DUG]: Interfaces

2001-06-12 Thread Sandeep
On 13 Jun 2001, at 10:46, Neven MacEwan wrote: Sandeep Simple Answer - HUGE I haven't used them yet. And if it is used for automatic garbage cleaning (I think I'm right here) then it may not be a good programming practice, or it may be a lazy way of programming. Sandeep Software

Re: [DUG]: Interfaces

2001-06-12 Thread Sandeep
On 13 Jun 2001, at 10:46, Neven MacEwan wrote: Sandeep Simple Answer - HUGE Only one reply so far, so should I assume that there are not many people using Interfaces. Sandeep Software Developer CFL [EMAIL PROTECTED] http://www.cfl.co.nz

RE: [DUG]: Interfaces

2001-06-12 Thread Nahum Wild
You can get around the auto garbage collection easily enough. Neven's simple answer is a good one. They have a huge impact on how you design apps etc... - for the better. Yes I use interfaces. Learning about them was a oh, why didn't I learn about these ages ago type experience, a bit like

Re[2]: [DUG]: Interfaces

2001-06-12 Thread paul . mckenzie
They are an extra layer of complexity (IMHO) a lot of extra complexity. Regards Paul McKenzie = Paul McKenzie Jetbet II Developer = [EMAIL PROTECTED] Ph: (04) 576-6822 T.A.B. National Office 106-110 Jackson Street Petone New Zealand

Re: RE: [DUG]: Interfaces

2001-06-12 Thread Corey Murtagh
Nahum Wild [EMAIL PROTECTED] wrote on 13/06/2001 11:53:45: You can get around the auto garbage collection easily enough. Neven's simple answer is a good one. They have a huge impact on how you design apps etc... - for the better. Yes I use interfaces. Learning about them was a oh, why

Re: [DUG]: Interfaces

2001-06-12 Thread Nic Wise
I design with them now - much easier, from my POV. They are used extensivly in Java as well, so its good practice if you are ever going to move. Nic. On 13 Jun 2001, at 10:46, Neven MacEwan wrote: Sandeep Simple Answer - HUGE Only one reply so far, so should I assume that there

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

Re: RE: [DUG]: Interfaces

2001-06-12 Thread Nic Wise
Ok, give a poor C++ programmer a hint... what are we talking about here? G I think you lot call them pure virtual classes - ie a class with no implementation. In Delphi, you can inherit from more than one of them, which is a big advantage. Specifically, I've seen many definitions for

Re: [DUG]: Interfaces

2001-06-12 Thread Neven MacEwan
Sandeep Firstly separate the concept of Interfaces from the COM et al implementation (that uses interfaces) and does reference counting etc (ie your comments re garbage collection) Interfaces address the major limitation of the single inheritance model, ie polymorhism. The are simply a

Re: [DUG]: Interfaces

2001-06-12 Thread Neven MacEwan
Nic I design with them now - much easier, from my POV. They are used extensivly in Java as well, so its good practice if you are ever going to move. Also good practive if your not, A lot of the OO Technology is centred around the concept of interfaces (since I think multiple inheritance has

Re: RE: [DUG]: Interfaces

2001-06-12 Thread Nello Sestini
Ok, give a poor C++ programmer a hint... what are we talking about here? G interfaces are another way representing what multiple inheritance (I think poorly) attempts to represent in C++ Specifically, I've seen many definitions for 'interfaces', but none of them seems to quite fit the

RE: RE: [DUG]: Interfaces

2001-06-12 Thread Colin Fraser
Any disadvantages using Interfaces??? Any slower performance??? Anything to look out for??? Regards Colin ## Attention: The information in this email and in any attachments is confidential. If you are not the intended

Re: RE: [DUG]: Interfaces

2001-06-12 Thread Sandeep
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 how does it makes

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 how

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

[DUG]: [DUB-DB] trigger with parameter

2001-06-12 Thread Jim Zheng
Hi all, Does anyone know how to pass a value ( not a field in the update table) into a trigger? I am trying to build a MS SQL server version of our product. Cheers, Jim --- New Zealand Delphi Users group - Delphi List

Re: RE: [DUG]: Interfaces

2001-06-12 Thread Neven MacEwan
Sandeep You can also delegate the inplemenation of an interface in delphi So in your case ClassC inherits from ClassA and implements InterfaceB (defined alongside ClassB) ClassC has a subject of Class B which it delegates its implementation of InterfaceB to ie TClassC - class(TClassA,

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 snippage ie TClassC - class(TClassA, InterfaceB) private FClassB: TClassB property InstClassB read FClassB write FClassB implements InterfaceB end But if you are doing any

Re: [DUG]: [DUB-DB] trigger with parameter

2001-06-12 Thread Neven MacEwan
Jim A trigger is internal (fired by an event on the table) so what do you mean by pass a value to it? Neven - Original Message - From: Jim Zheng [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Wednesday, 13 June 2001 15:10 Subject: [DUG]: [DUB-DB]

RE: [DUG]: [DUB-DB] trigger with parameter

2001-06-12 Thread James Low
If you mean stored procedure then I think you will find an example in the help for CreateParam. Basically - Clear preexisting parameters, Create a parameter, with Param[0] set its value. -Original Message- From: Jim Zheng [mailto:[EMAIL PROTECTED]] Sent: 13 June 2001 15:11 To: Multiple

Re: RE: [DUG]: Interfaces

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

[DUG]: I don't recall if I already asked this but...

2001-06-12 Thread Luke Pascoe
...How do you trap the tab key in a TEdit and stop it moving focus to the next component? I want to trigger an event on tab. OnKeyDown/Press doesn't work, and OnKeyUp is too late :-( Luke Pascoe Delphi Programmer

RE: [DUG]: ADO components and SQL 2K

2001-06-12 Thread Dennis Chuah
Prefix your table with the name of the table owner, eg. select * from [dbo].[sometable] SQL Server 2K has slightly different interpretation of security, especially when it comes to creating objects. Regards, Dennis. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: [DUG]: I don't recall if I already asked this but...

2001-06-12 Thread Marshall, Paul
Luke, Here's a component I've used for this: type TTabEdit = class(TEdit) private FAcceptTabs:Boolean; procedure WMGetDlgCode(var message: TMessage); message WM_GETDLGCODE; public property AcceptTabs : Boolean read FAcceptTabs write FAcceptTabs; end; { TTabEdit } procedure

RE: [DUG]: I don't recall if I already asked this but...

2001-06-12 Thread Luke Pascoe
Thanks :-) Luke Pascoe Delphi Programmer enSynergy Consulting LTD [EMAIL PROTECTED] +64-9-3551593 fax +64-9-3551590 Level 4, 10-12 Federal St, Auckland, New Zealand PO Box 32521,

Re: RE: [DUG]: Interfaces

2001-06-12 Thread Nello Sestini
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. It's not the same thing. Just because you have implemented methods Quack(), and Walk() doesn't mean that a client application expecting to use your