How to override OnFSCommand

F-IN-BOX for Delphi / Builder C++ / VCL
Donato
Posts: 3
Joined: Fri Sep 21, 2007 1:41 pm

How to override OnFSCommand

Postby Donato » Fri Sep 21, 2007 1:51 pm

I have created a new component based on yours with added functionalities common to all my applications. I am trying to override the OnFSCommand using the Delphi way:

procedure OnFSCommand(ASender: TObject;
const command, args: WideString); override;

I also tried:

procedure FSCommand(ASender: TObject;
const command, args: WideString); override;

in both cases I get the message:

method not found on base class. Could you help?

Thank you very much

Donato

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Fri Sep 21, 2007 5:04 pm

Thank you for your question.

Yes, really TFlashPlayerControl doesn't have FSCommand method that can be overriden in a derived class. TFlashPlayerControl calls fscommand event directly, not using an intermediate method.

You can handle fscommand event in your derived class to recived fscommand notification. Is it suitable for you?

Thank you.

PS I see your question in the ticket system, but it seems that you've entered invalid e-mail...
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

Donato
Posts: 3
Joined: Fri Sep 21, 2007 1:41 pm

Postby Donato » Wed Oct 17, 2007 11:18 am

hi Artem,

sorry to bother you I don't know how to handle fscommand event in my derived class to recived fscommand notification. Could you drop me some lines? I will really appreaciate

Regards

Donato

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Wed Oct 17, 2007 12:40 pm

Donato wrote:sorry to bother you I don't know how to handle fscommand event in my derived class to recived fscommand notification. Could you drop me some lines? I will really appreaciate


Something like that:

Code: Select all


procedure TDerivedClass.InternalFSCommandHandler(ASender: TObject; const command: WideString; const args: WideString);
begin
 ...
end;

procedure TDerivedClass.SetFSCommandHanler;
begin
   OnFSCommand := InternalFSCommandHandler;
end;


I haven't tested that but it should work well.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 16 guests