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
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
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
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,
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
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
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'),
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
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(
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
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]:
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]
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
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:
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
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
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
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 :
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,
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
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
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
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:
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:
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
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
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
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
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:
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
30 matches
Mail list logo