Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2015, 08:54 AM
golden_eyes golden_eyes is offline
Senior Member
 
Join Date: Dec 2005
Posts: 382
Exclamation CTRL + In Twebbrowser Component?

Hello,

I'm using Twebbrowser component, i cannot use the CTRL + C to copy or CTRL + V to paste. I can't even copy text by right clicking and going copy.

Thanks in advance...

Regards
Reply With Quote
  #2  
Old 08-04-2015, 09:17 AM
Jasser Jasser is offline
Moderator
 
Join Date: Jan 2005
Location: Saudi Arabia
Posts: 5,059
Default

Hi goldn_eyes,

You can use the "OnKeyDown" or "OnKeyPress" events of the TForm to copy and paste things manually.

Example:
http://www.swissdelphicenter.ch/en/showcode.php?id=325
http://www.swissdelphicenter.ch/en/showcode.php?id=1391
__________________
Regards,
Abdulaziz Jasser
Reply With Quote
  #3  
Old 08-05-2015, 10:00 AM
golden_eyes golden_eyes is offline
Senior Member
 
Join Date: Dec 2005
Posts: 382
Default

I wanna activate the keyboard CTRL + C copy, select all, paste and cut. Not a button within the application.. In another word, I wanna highlight anything in the webbrowser then press CTRL + C to copy

Regards
Reply With Quote
  #4  
Old 08-05-2015, 12:30 PM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,333
Default

http://www.delphipages.com/forum/sho...d.php?t=186323
Combined with the tip from Jasser (use the Form Key events) should do the trick
Reply With Quote
  #5  
Old 08-10-2015, 09:50 AM
golden_eyes golden_eyes is offline
Senior Member
 
Join Date: Dec 2005
Posts: 382
Default

Thank you for all your replies, I added the following code to the end of the unit and it activated the CTRL + *

Quote:
Uses the ActiveX
....

// added to active the CTRL + *
initialization
OleInitialize(nil);

finalization
OleUninitialize;

end.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 02:03 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.