[DUG]: Two UPDATE statements in the ModifySQL property?

2002-11-20 Thread Zhi Liu (ASL)
Hello All, Can anyone tell me how to include two UPDATE statements in the ModifySQL property of TIBDataSet?? # This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal For more

[DUG]: [Q] Event Hooking.....

2002-11-20 Thread Donovan J. Edye
G'Day, I was just curious about some approaches to achieve responding to the event of an embedded component in my component. Clear as mud? An example: Lets say I have a component MyComponent that has a published property MyButton : TButton. Now I want to take some action when the user clicks the

Re: RE: [DUG]: what will be the best technology?

2002-11-20 Thread Donovan J. Edye
J, Not sure what DB you are using, but what about using any replication features of the DBMS? At 16:52 19/11/2002 +1300, you wrote: J Have you looked at kbmMW? might do a lot of what you want with little heartache HTH N - Original Message - From: vss [EMAIL PROTECTED] To: Multiple

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Phil Middlemiss
At runtime, you can check to see if the user has assigned an event handler to the button and then internally store their handler and call after your code. Phil. - Original Message - From: Donovan J. Edye To: Multiple recipients of list delphi Sent: Thursday,

RE: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Conor Boyd
Donovan, Would it not be better to expose an OnClick event on your component itself instead of exposing your internal button? You could call it OnButtonClick to differentiate it from any other internal control event. This way, you can perform any code you want before/after you internally

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Donovan J. Edye
P, And what happens when the user has no event assigned when the app starts and then during program operation sets an event handler in code? At 11:54 21/11/2002 +1300, you wrote: At runtime, you can check to see if the user has assigned an event handler to the button and then internally store

[DUG]: Disabling shortcuts

2002-11-20 Thread Graham Mayes
I am trying to prevent users 'escaping' using shortcut keys. All OK for win 95 98 etc SystemParametersInfo(SPI_SETFASTTASKSWITCH,1,@Dummy,0);//Disable Alt-Tab SystemParametersInfo(SPI_SCREENSAVERRUNNING,1,@Dummy,0);//Disable Ctrl-Alt-Del ShowWindow((FindWindowEx(0, 0, PChar('Shell_TrayWnd'),

[DUG]: Indy Client/Server

2002-11-20 Thread David O'Brien
Newby to Indy. I am having some problems with the Indy TidTCPClient component. Apart from trying to get my head around having no events fire when data comes in. I have a routine that sends data to a TidTCPServer, which then sends results back to the client. This seems to work fine. I

[DUG]: Queer IDE behaviour Shift-Ctrl-C

2002-11-20 Thread James Low
I'm stumped. Using D5, Win 2000. Normally when I declare a class and type Shift-Ctrl-C, the class implementation stub is inserted by Delphi. But all of a sudden without me doing anything (as far as I can see) I get the following: Class Declaration: TVisStdFee_Create = class(

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Neven MacEwan
D You can you it with RTTI, Hope this helps FControlEvent: TMethod; FNewOnControlEvent: TMethod; procedure TControlLink.SetOnControlEvent; begin if not (csDesigning in ComponentState) and (FControl nil) and (FEventName '') then if

Re: [DUG]: Disabling shortcuts

2002-11-20 Thread Dion Mitchell
afaik you cant. for various security related reasons ( ever seen the press ctrl-alt-del to login screen? ) - Dion. - Original Message - From: Graham Mayes [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 12:16 PM Subject: [DUG]:

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Phil Middlemiss
You could handle that by having a Set procedure for your event field that holds on the users handler. Phil. - Original Message - From: Donovan J. Edye To: Multiple recipients of list delphi Sent: Thursday, November 21, 2002 11:57 AM Subject: Re: [DUG]: [Q]

Re: [DUG]: Disabling shortcuts

2002-11-20 Thread Jeremy North
Actually you can. You can create a customised version of the GINA dll. Implementing this new DLL naturally depends on how much control you have over users. If it is the general public I don't see it happening, although PC Anywhere software does. Also replacing it when another application

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Jeremy North
Don't publish the actual embedded TButton's OnClick event. Publish your own (EmbeddedBtnClick) and then in the setter of the property tie the event to the embedded comoponent. something like this (extremely rough example)... TMyPanel = class(TPanel) private FEmbeddedBtnClick:

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Donovan J. Edye
N, Thanks. However unless I am still missing something here then this is still a problem: EmbeddedComponent.OnEvent := nil; TControlLink.Active := TRUE; EmbeddedComponent..OnEvent := MyEventAssignedAtRunTimeBecauseICan; Dont see how MyEventAssignedAtRunTimeBecauseICan would ever be called. At

Re: [DUG]: Indy Client/Server

2002-11-20 Thread Donovan J. Edye
D, If you have simple requirements then consider having a look at TClientSocket, TServerSocket on Internet tab. They can be used in Non Blocking or Blocking (Requires thread) modes. They are heaps easier to use than Indy and work well. At 12:23 21/11/2002 +1300, you wrote: Newby to Indy. I am

RE: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Donovan J. Edye
C, My example was simple to illustrate the concept. I agree with what you have said however what I have to do in practice is a bit more complex. I'll explain here: - A windows message arrives from a C++ DLL to an already existing component we use internally - The above message will generate an

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Phil Middlemiss
I've successfully used this method myself at times. eg: TMyClass = class(TAnAncestor) private FAnEventHandler : TMyEvent; protected procedure SetAnEvent(UsersEvent : TMyEvent); function GetAnEvent: TMyEvent; procedure TheRealButtonEvent(Sender : TObject); public property OnAnEvent :

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Neven MacEwan
D I Don't really understand, You are truing to hook a TNotifyEvent The methods were example of how to use RTTI to hook them... Please Elucidate Neven - Original Message - From: Donovan J. Edye [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Thursday,

RE: RE: RE: [DUG]: Check if file is locked?

2002-11-20 Thread Myles Penlington
I have just found this (Win2K)... (From command line) net session /delete /y This closes all connected sessions and hence all files in use from remote computers. Very helpful. Myles. -Original Message-From: Jason Coley [mailto:[EMAIL PROTECTED]]Sent: Monday, 18 November

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Phil Middlemiss
Reading back, I realised I missed a step. You would have to be working withyour own inherited versionof TButton. Do you have that much control over it or is this someone elses control? Phil. - Original Message - From: Phil Middlemiss To: Multiple recipients of list

Re: [DUG]: Queer IDE behaviour Shift-Ctrl-C

2002-11-20 Thread Chris Reynolds
Wild stab - something to do with Unicode? I'm stumped. Using D5, Win 2000. Normally when I declare a class and type Shift-Ctrl-C, the class implementation stub is inserted by Delphi. But all of a sudden without me doing anything (as far as I can see) I get the following: Class

[DUG]: Thank you

2002-11-20 Thread Gary T. Benner
Title: myOffice Email Message HI All, For the record: regards Gary To : [EMAIL PROTECTED] CC : From: Sergei Stenkov, [EMAIL PROTECTED] Content Type: text/html Attached:

RE: [DUG]: Indy Client/Server

2002-11-20 Thread David O'Brien
Any other thoughts? I started with Indy because everyone said it was the thing to use. I have used F.Piettes stuff before without probs but because Indy came with D7, thought I'd try that. Dave. -Original Message-From: Donovan J. Edye [mailto:[EMAIL PROTECTED]]Sent:

[DUG]: DBGRid ... which Cell is Active

2002-11-20 Thread James Low
I am using a DBGrid and need to pop up a listbox in the correct location on the OnEditButtonClick event. How do I get an X Y coordinate from which to work out where my List displays. Help suggests use the SelectedField which has an index ... but I am sure there must be an easier way of working

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Donovan J. Edye
P, No I don't have control over that button (class). If was able to subclass then things would be no problem. At 14:31 21/11/2002 +1300, you wrote: Reading back, I realised I missed a step. You would have to be working with your own inherited version of TButton. Do you have that much control over

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Donovan J. Edye
N, OK. Pseudo code. User Drops TButton On Form User assigns TButton to MyComponent User Runs Application As app runs up I get a reference to TButton click event User double clicks the form which causes them to assign a custom method to the onclick event for the TButton (This overwrites the

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Neven MacEwan
D, User Drops TButton On Form OK, in some sort of design mode? or are they a delphi programmer? User assigns TButton to MyComponent So you get a reference to the Button and persist the ref to TButton User Runs Application Yup, As app runs up I get a reference to TButton click event

Re: [DUG]: [Q] Event Hooking.....

2002-11-20 Thread Jeremy North
Solution 5: Make the hooking possible at runtime only. (Don't publish the button property for your component, just have it as public). JED === Solution 1: Also hook the double click event so that you can check your hook after the double click Solution 2:

Re: [DUG]: DBGRid ... which Cell is Active

2002-11-20 Thread Moises Lopez
howdy there... you could get the coordinates on the OnCellClick event sth. like x := Mouse.CursorPos.X;y := Mouse.CursorPos.Y; as for detecting which column.. uhh the OnCellClick event has a Column parameter.. guess that works hthmoisesDo you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign